The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
2answers
83 views

Main stacks in Linux

What are the main stacks in Linux? What I mean is, for example when an interrupt occurs what stack will be used for it, and what is the difference between user process and kernel process stacks?
1
vote
0answers
38 views

kernel: hpet1: lost 19 rtc interrupts

I have this error that flooding my syslog every day. As a solution on arch linux forum is hpet=disable in kernel command line, but I think it is a bad idea and I searching for another solution. Is ...
1
vote
1answer
29 views

Programmatically determine the IRQs associated with a network interface

What is the most reliable way to programmatically determine the IRQs associated with a network interface, given the name of the interface (e.g. eth0)? I'm okay with a best-effort approach, but I'd ...
-1
votes
0answers
10 views

How Linux handles mouse events at kernel level [duplicate]

I am interested to know how Linux handles mouse events such as movements and pressing a mousebutton. Could one say generally - when the mousebutton is pressed the following happends: just guessing ...
0
votes
0answers
66 views

Custom interrupt handler for bash scripts [duplicate]

I'm writing a script that needs to keep track of all backgrounded processes it launches: index=0 for i in `ls $TOPOLOGY_FILE_PREFIX*` do if [ ! -z "$11" ]; then ./noc_sim.sh ...
1
vote
0answers
23 views

Why do interrupted processes show up in nvidia-smi?

When ​I kill processes in terminal using C-c and run nvidia-smi, the process are still shown as "compute processes". These processes are no longer in the top resu​lts. I have to kill -9 to clean them ...
0
votes
0answers
10 views

How do I write to a __user memory from within the top half of an interrupt handler? [migrated]

I am working on a proprietary device driver. The driver is implemented as a kernel module. This module is then coupled with an user-space process. It is essential that each time the device generates ...
0
votes
0answers
12 views

Multiple interrupt: while an interrupt handler is saving register values, can it be further interrupted?

I am new to learning operating system and I have a problem understanding multiple interrupt. My question is: At step 6, can the interrupt routine be further interrupted? Please refer to the images I ...
1
vote
1answer
632 views

How to troubleshoot high kernel time (high network usage; high interrupts)

I've noticed that I have high kernel time when doing a lot of network traffic in Linux. I also noticed that 45% of my CPU is spent doing interrupts. How can I further troubleshoot this?
0
votes
2answers
55 views

The interrupt timeline for a single process doing output

I'm studying the book 'Operating System Concepts' 9th edition. In the first chapter, part 1.2.1 computer system operation, I can't understand the figure 1.3: Can any one make a quick interpretation ...
2
votes
1answer
167 views

When is `irqbalance` needed in a Linux VM under VMware?

I have a Linux farm in VMware Enterprise 5.5. The VMs are (mostly) 64-bit amd64 Debian Jessie servers with SysVinit and not systemd. The VMs have open-vm-tools installed. I paravirtualized their ...
5
votes
1answer
59 views

Ctrl+c and Ctrl+z to interrupt/suspend jobs

To kill a hanging job, I use Ctrl+c, to send an interrupt signal to the hanging job. Sometimes this wouldn't stop the job, at least not immediately. I can then use Ctrl+z to suspend the job and then ...
10
votes
3answers
12k views

How does the Linux kernel handle shared IRQs?

According to what I've read so far, "when the kernel receives an interrupt, all the registered handlers are invoked." I understand that the registered handlers for each IRQ can be viewed via ...
1
vote
0answers
31 views

Why I am not able to bind the interrupts with code LOC, IWI, RES when irqbalance is disabled?

On Ubuntu 14.04, I am trying to bind all the interrupts to core 0 and 1 out of 4 cores. I have disabled the irqbalance daemon via file /etc/init/irqbalance.override. Then I went to every interrupt in ...
0
votes
0answers
15 views

This name appears in multiple /proc/interrupts

The name of the interrupt appears as follows: Multiple.. (85:exynos4210-uart) root@test:~# cat /proc/interrupts CPU0 CPU1 CPU2 CPU3 28: 3543629726 1086578047 3268216812 ...
1
vote
0answers
20 views

Interrupt kernel process or another interrupt

How ISR knows that it interrupts process in kernel mode or another interrupt (which enables further interrupts) - of course in kernel mode too. If this question is very wide, please aim to Linux on ...
5
votes
3answers
3k views

Making a IRQ SMP Affinity change permanent

I have to change the smp_affinity of a interrupt permanently. The following code needs to be executed when the server reboots: echo "1" > /proc/irq/152/smp_affinity_list echo "2" > ...
21
votes
1answer
31k views

What are software and hardware interrupts, and how are they processed?

I am not sure if I understand the concept of hardware and software interrupts. If I understand correctly, the purpose of a hardware interrupt is to get some attention of the CPU, part of implementing ...
1
vote
0answers
18 views

What can interrupt execution of threads which are pinned to cores?

I do low-latency application development and I use isocpu and set thread affinity to reduce (eliminate?) context switching during my critical threads. However, I am unsure what other types of ...
2
votes
0answers
42 views

Is “top” accounting for Kernel Interrupts?

I have a simple interrupt that is triggered by a GPIO-input. The IRQ only increments a variable and returns. When I turn the frequency of the interrupts up to somewhere around 10-20 kHz, the system ...
6
votes
4answers
404 views

How can I handle SIGINT trap with a user prompt in shell script?

I am trying to handle SIGINT/CTRL+C interrupt in such a way that if a user accidentally presses ctrl-c, he is prompted with a message, "Do you wish to quit?(y/n)". If he enters yes, then exit the ...
2
votes
1answer
2k views

How to debug causes of excessive ksoftirqd resource usage?

man ksoftirqd indicates that: If ksoftirqd is taking more than a tiny percentage of CPU time, this indicates the machine is under heavy soft interrupt load. I'm working with a Debian Wheezy ...
0
votes
0answers
25 views

GPIO edge-file missing

I have exported some GPIOs in sys/class/gpio but when I look into the GPIO directories i cant find the edge file. I only see value, direction and a few other files. what does that mean. Is it in any ...
4
votes
3answers
3k views

'fast interrupts' in Linux

as far as I know, Linux has 'fast interrupts', those that were requested with SA_INTERRUPT flag; fast interrupts are executed with all other interrupts disabled on the current CPU. But how does it ...
7
votes
4answers
5k views

Ctrl + c will not kill process

I have looked for answers and so far have found nothing to answer my question. I am currently logging in to my Ubuntu server and upon running a process I can not run any of the interrupts on it. Here ...
1
vote
1answer
1k views

What happens after a page fault?

When a page fault occurs in a Linux system, the interrupt-handler has to figure out the reason why the page fault happened. But how ? Is there anywhere a special number for that !? If yes, where is ...
1
vote
2answers
92 views

How to interrupt uninterruptible program?

If I run mysqld from the command line, it displays some startup messages, and then stops responding. It doesn't produce output, and ignores any input, and there seems to be no way to get rid of it. ...
0
votes
0answers
75 views

Stack pointer of the interrupt stack

Linux kernel has separate stacks for user mode and kernel mode process and also some special stacks. One of this special stacks is interrupt stack with the size 16 kilobytes placed in the ...
1
vote
1answer
91 views

Threads vs interrupts

What does it mean when threads are time-sliced? Does that mean they work as interrupts, don't exit while routine is not finished? Or it executes one instruction from one thread then one instruction ...
0
votes
1answer
168 views

Cannot compile device tree blob due to missing node/label

I'm trying to create a petalinux image using the petalinux SDK. After I start a build I get an error when the process tries to build the system.dtb The error is "(phandle references): Reference to ...
2
votes
0answers
646 views

How to configure FreeBSD to run headless without hitting high interrupt rates?

When running headless (without monitor, keyboard, mouse attached) FreeBSD versions 8.2, 8.3, 9.0 and NetBSD version 5.0 has known issues (FreeBSD PR 156596, NetBSD 46596) to generate extremely high ...
0
votes
0answers
235 views

default cpu affinity

On a CentOS 6 system with 32 cores, what could make all processes run under core 0 only? This is a system running nothing but a few stunnel processes actively. This is not a system we would set IRQ ...
1
vote
0answers
372 views

What is the difference between Local timer interrupts and the timer?

When I do cat /proc/interrupts on my multicore x86_64 desktop PC (kernel 3.16) I see this: 0: 16 0 IO-APIC-edge timer LOC: 529283 401319 Local timer interrupts ...
1
vote
2answers
113 views

Triggering hardware interrupts by connecting parallel port pins 9 and 10 does not work

I want to trigger hardware interrupts as described in the book Linux Device Drivers by connecting pins 9 and 10 with a wire. I tried that but apparently there's no interrupt beeing triggered: cat ...
2
votes
2answers
141 views

Is there any Syscall table just like Interrupt Table?

Are the system calls like fork(), exit() saved in some kind of function pointer table , just like the Interrupt Descriptor Table ? where does my OS go when I call my fork() or exit() ? I guess this ...
1
vote
1answer
205 views

What is the functionality of SCHED_SOFTIRQ in linux?

Who raises this softirq? Is it raised on every time tick( based on timer interrupt?) Does this make the kernel to shedule a runnable process? If yes, how does the handlers of lower priority softirqs ...
0
votes
0answers
109 views

keyboard still working after calling free_irq(1, NULL);

I'm developing a kernel module which free the IRQ number 1 in order to disable the keyboard in Intel architectures. according to wikipedia the IRQ 1 is used for keyboard. but after building and ...
4
votes
2answers
3k views

What determines whether an interrupt is IO-APIC-edge or IO-APIC-level?

Looking at the contents of /proc/interrupts on an x86 Linux, I see that some of the interrupts are IO-APIC-edge while others are IO-APIC-level. I wonder what determines the interrupt type, is it the ...
0
votes
1answer
120 views

Force ping to write before interrupt

I am trying to get ping to continuously write some times to a file. When I run $ ping 10 10.1.10.28 | perl -ne '/time=(\d+\.\d+)/ && print "$1\n"' It returns one number every several ...
2
votes
1answer
411 views

Does each network packet cause an interrupt to CPU?

While I know that lot of packet processing(CRC calculations, packet segmentation handling, etc) can be offloaded to NIC, then does each packet still cause an interrupt to CPU? Is there a difference if ...
0
votes
1answer
33 views

Changing touchpad interrupt

I'm using Arch Linux. Before Arch, I was using Kubuntu. I have a Intel i7 processor with 7200 RPM hard drive. When I'm installing software (not from package managers, but a big proprietary one such as ...
5
votes
3answers
2k views

Why can't ed be exited with C-c?

The program ed, a minimal text editor, cannot be exited by sending it an interrupt through using Ctrl-C, instead printing the error message "?" to the console. Why doesn't ed just exit when it ...
1
vote
2answers
198 views

What happens to the signals requested recursively?

People often hit Ctrl + c or Ctrl + z to cancel or abandon the job if the process gets sluggish, in this case which of these signals get processed, the first one or the last one? is each signal ...
4
votes
2answers
347 views

How to programatically detect when a device raises an interrupt?

How to programatically detect when a device raises an interrupt? This can be when a device is connected or disconnected. And also this case: for example: when a finger is held over a fingerprint ...
9
votes
3answers
973 views

How does make continue compilation?

I know that I can interrupt a make process anytime without having to recompile the entire source tree again. As I know, make only compiles a target if it's not compiled yet, or the source code is ...
2
votes
0answers
91 views

How does an X86 Linux system maintain the system time, when no NTP etc. is in play?

When an x86 Linux system is powered up and running, how does it keep track of software time? E.g. is it incrementing a software counter based on hardware interrupts from the RTC, or is there some ...
0
votes
0answers
34 views

Execute snippet of code when key is pressed [duplicate]

I want to create a process in Linux which waits for some particular keys to be pressed and executes a snippet of code and goes back to sleep. How can I achieve this? Initially a process will be in ...
3
votes
1answer
602 views

Why EC2 instance spends all its time in “IRQ” and what to do about it?

I have an m1.small EC2 instance that is mostly just running Apache as a web server for several simple PHP web sites (that use RDS as a database). The server is constantly with a very high load average ...
2
votes
1answer
266 views

How to know if an IRQ value is free to use

If we add a device that does not support PNP (Plug-an Play), the manufacturer will hopefully provide explicit directions on how to assign IRQ values for it. However, if we don't know what IRQ value ...
2
votes
1answer
143 views

Minimizing hardware interrupts

I am using a modified Linux kernel as a soft real-time OS, on a system that has an architecture like this: CPU1 and CPU2 have 8 cores each. I have 4 processes that need to be run with minimum ...