Skip to main content

Questions tagged [interrupt]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
15 views

Unknown column in /proc/interrupts for ARM

Understanding interrupt routing in ARM CPUs and GIC programming and can't find description for one column in /proc/interrupts file, the one in bold. What does this number mean? 11: 22049224 ...
Michael Roberts's user avatar
0 votes
0 answers
26 views

Is the first I/O apic in the MADT table special?

Is the first I/O APIC in the madt table special? Is it always supposed to contain all the ISA IRQs if there is no legacy PIC? I heard this is called the boot-APIC, do you have a reference?
caciquekampeon's user avatar
0 votes
0 answers
39 views

Problem writing custom PCI driver with QEMU

I want to write a Linux driver that allows me to allocate and handle MSI interrupts. At the moment, the nvec = pci_alloc_irq_vectors(pdev, 1, nvec, PCI_IRQ_ALL_TYPES) function is returning -22. In ...
carloscs11's user avatar
0 votes
0 answers
127 views

How to register an interrupt handler for the ARM Generic Timer from a kernel module?

I am currently trying to register a custom handler for one of the timers of the Generic Timer on my Raspberry Pi 5 and unfortunately cannot get it to work. So what I've done so far is to look into the ...
ObiBabobi's user avatar
0 votes
0 answers
187 views

How to fix Parrot OS Installation interrupt? - common_interrupt: 1.55 No irq handler for vector

I was trying to install Parrot OS installation. But it appears the interrupt message if I install and it will stuck on the terminal I already Flashed parrot os using balena etcher and after that I ...
Serella's user avatar
0 votes
0 answers
30 views

Linux socket modes of IO

There are three modes of i/o. They are Programmed IO, Interrupt IO and DMA. My understanding is, Programmed IO requires CPU to busy-wait while Interrupt IO by nature, is ansynchronous. Where can I ...
cpp's user avatar
  • 101
0 votes
0 answers
182 views

Any ready made script to pin the IRQ to the optimal CPU?

I'm not a expert by any means and I worry about doing wrong stuff... is there a standard / approved way to just run a script and have my interrupt tuned correctly on ubuntu 18.04 ? I also have ...
Freedo's user avatar
  • 1,285
1 vote
2 answers
243 views

How is the process programmatically connected to an interrupt?

I know that an interrupt is a signal sent to a kernel asking for handling. In some cases we have a physical device like a keyboard with a driver that connects a process with an interrupt(key pressed). ...
John Walker's user avatar
2 votes
1 answer
592 views

How does round-robin scheduling and context switching work from a low-level?

Using round-robin scheduling, the kernel provides time slices for different processes / tasks. It seems that the kernel will initialize a timer, and when the timer times out, this will cause the ...
Engineer999's user avatar
  • 1,171
2 votes
2 answers
539 views

How can the time command compute one millisecond from 4 ms timer ticks?

From the bash time command on different stock Ubuntu systems (both real hardware and VMs) all with CONFIG_HZ=250, I'm sometimes getting real 0m0.001s, user 0m0.001s or sys 0m0.001s as well ...
Juergen's user avatar
  • 702
1 vote
1 answer
1k views

How to get more details on irq process in top?

I have irq/21-xhci-hcd displayed as the process consuming 90% CPU on top. There was also a lot of CPU time spent on servicing software interrupts (si). This is on embedded Linux. Does this mean that ...
ruben2020's user avatar
  • 185
3 votes
1 answer
189 views

Writing a kernel driver - knowledge of specific interrupt pins

I don't have knowledge about writing Linux kernel modules / drivers. Let's take a basic example. I have an input device of my own which is connected to a microcontroller on one of the interrupt pins. ...
Engineer999's user avatar
  • 1,171
0 votes
0 answers
518 views

linux kernel freeze

I am using linux kernel 4.19 on intel (icelake) based server. Sometime immediately after linux boot (at the login prompt) it get stuck(once is 50 reboot or so). It is not responding to anything on ...
saurin's user avatar
  • 39
-1 votes
1 answer
272 views

Modify the number of interruption cat /proc/interruption

As you can see, when running the command cat /proc/interrupts, in the second column the number of interrupts delivered to each CPU per device driver. test@test:~$ cat /proc/interrupts CPU0 ...
Mahmoud Kallel's user avatar
0 votes
0 answers
432 views

Interpreting variations in LOCal timer interrupts number

Running a given workload in different CPU isolation (IRQs & processes) configurations, I do not observe significant differences among values (grand total) reported in /proc/interrupts & /proc/...
MC68020's user avatar
  • 8,241
0 votes
1 answer
446 views

how to interrupt command initramfs

I have made a huge mistake. I'm currently loaded into initramfs, trying to fix an error similar to this post. I decided to cat /dev/XXXX, where I'm pretty sure XXXX is the main partition where Ubuntu ...
tofer's user avatar
  • 3
1 vote
2 answers
997 views

Halt execution of pasted multiline commands

I pasted a long list of commands into Bash, and in the middle of execution, I decided I wanted it to stop. Ctrl+Z and Ctrl+C did nothing. It just continues executing line after line. In the end, the ...
mbomb007's user avatar
  • 123
1 vote
1 answer
854 views

Setting a trap for INT doesn't work in a subshell

$ bash -c "trap \"echo INT\" INT; sleep 3" & pid=$!; sleep 1; kill -INT $pid; wait [1] 27811 INT [1]+ Done bash -c "trap \"echo INT\" INT; ...
x-yuri's user avatar
  • 3,453
0 votes
0 answers
497 views

EXIT trap is ignored on Ctrl-C when PID == 1

a.sh: trap 'echo cleanup' EXIT sleep 3 To reproduce, press Ctrl-C before the script finishes: $ docker run --rm -itv $PWD:/app -w /app alpine:3.14 sh a.sh ^Ccleanup $ docker run --rm -itv $PWD:/app -...
x-yuri's user avatar
  • 3,453
0 votes
1 answer
13 views

Can APIC LVTERR on AMD be configured as NMI message type?

In fact, the message type / delivery mode of LVTERR on Intel is unconfigured. However, on AMD, it is presented as below. The problem is, when I configure the MT of LVTERR on AMD as NMI, it will keep ...
konguu's user avatar
  • 1
0 votes
0 answers
520 views

Does the worst PCIe MSI interrupt latency jitter over 100us normal?

I try to figure out the values of interrupt jitter in Linux, especially in the worst cases. Two testbeds are considered, one is Raspberry Pi 4B, the other is a high-end PC with an intel i9 CPU and ...
foool's user avatar
  • 111
3 votes
1 answer
1k views

Copying text with Ctrl + C when the Zsh line editor is active

I've added some keyboard shortcuts in my Zsh to enable selecting words. In order for the selection to do something, I would like to use Ctrl + C to copy it. However I would also like to use Ctrl + C ...
simonzack's user avatar
  • 733
0 votes
1 answer
112 views

Role of Advanced Programmable Interrupt controller in system?

I am trying to understand interrupts at both the hardware and OS level. Why exactly we need an APIC controller in a system. I understood that it is doing some multiplexing and only one line is going ...
vishnu's user avatar
  • 1
2 votes
2 answers
767 views

Why does a system call table exist and not just appended to the interrupt vector table?

Why does a system call table exist and not just appended to the interrupt vector table? I don't understand the design choice here. If it improves performance to differentiate events, why not system ...
Peter Wang's user avatar
1 vote
1 answer
168 views

infinite loop VS sheduler

From assembler point of view, when we make a code that just jumps a few commands back, does not jump to any control function that sheduler might use, how can unix interrupt such a code? I assume it is ...
Surprised Seagull's user avatar
1 vote
1 answer
2k views

Why does SIGINT not terminate a stopped process?

According to the POSIX standard regarding signals (see "Standard signals" section), both SIGKILL and SIGINT have as default action Term. However, this seems not to be the case when the ...
mateleco's user avatar
  • 210
0 votes
1 answer
45 views

How are big values stored in linux?

For example, cat /proc/interrupts. I see this value is constantly growing - 36: 10273035 IPIC 36 Level eth1_g0_rx What happens when it reaches its maximum value: that is the maximum ...
tannoy connect's user avatar
2 votes
1 answer
1k views

Is it safe to restart system calls?

I was reading a textbook which describes how to deal with system call when interrupted: System calls can be interrupted. System calls such as read, wait, and accept that can potentially block the ...
amjad's user avatar
  • 167
0 votes
1 answer
269 views

Ctrl + C Not terminating a process in Linux

I am building a custom Linux Image using Yocto Zeus (5.4 Kernel). On loading and checking the various functionalities of the Image, I am not able to exit some of the processes such as ping, tail -f in ...
Aashik Aswin's user avatar
14 votes
1 answer
2k views

Do system calls actually "interrupt" the CPU the same way that hardware interrupts do?

I'm trying to get a deeper understanding of how system calls and hardware interrupts are implemented, and something that keeps confusing me is how they differ with respect to how they're handled. For ...
rb612's user avatar
  • 307
3 votes
1 answer
750 views

Hardware timer , Real time clock, Jiffies in Linux context

I am trying to understand the Timer interrupts and the associated terms used in an x86_64 Linux machine. Hardware timer (External clock) is same as a Real Time Clock. The Real time clock runs even ...
Franc's user avatar
  • 299
0 votes
1 answer
566 views

Broken my pop-OS while upgrading

I mistakenly broke my pop-OS and when I restart it then I get an error window with **Error occured which system cannot restored. Contact administrator** I already tried apt-get dist-upgrade in ...
RONAK MANGAL's user avatar
0 votes
1 answer
298 views

__report_bad_irq not getting hit

I am stucked in one issue, in which i am getting __report_bad_irq callstack inconsistently. AFAIK, whenever we have 100000 unhandled interrupts this stack kicks in. Output from cat /proc/irq/128/...
Sneh Shikhar's user avatar
0 votes
1 answer
435 views

Handling an interrupt while being on kernel [closed]

I know how interrupt handling works (switching mode, saving registers, changing stack ...). However, I am curious, what if an interrupt happens while we are still in kernel mode, and not in user mode?
karism's user avatar
  • 3
0 votes
1 answer
182 views

redhat 7.7 nohz_full dynamic tickless behaviour

I'm trying to set dynamic tickless behaviour on certain cores (cores 2 - 11), moving all timekeeping to the only unspecified cores (cores 0-1). However, when I perform the instructions specified in: ...
user2635088's user avatar
5 votes
2 answers
3k views

How interrupt is queued up in linux?

In hardware and software interrupt flow how queue up is handled? more precisely I have following doubts Lets take a scenario I have a machine with 2 CPUs. CPU1 is processing process P1 and CPU2 is ...
Karthik Nedunchezhiyan's user avatar
2 votes
1 answer
448 views

Is it safe to use the .bss section as a static stack?

(This is in the context of x86-64 Linux.) I am trying to write a high-reliability userland executable, and I have total control over the generated assembly. I don't want to rely on automatic stack ...
Mario Carneiro's user avatar
1 vote
0 answers
555 views

Custom interrupt handler for the NMI hardware button

I'm trying to create a custom interrupt handler for the NMI hardware button which exists on my motherboard. To test this functionality I've created this simple module: #include <linux/init.h> #...
kostr22's user avatar
  • 216
0 votes
1 answer
63 views

Would an asynchronous interrupt context write to the page table in the Linux kernel?

Specifically, in the Linux kernel, is it possible that the page table (level3_kernel_pgt) can be overwritten when an asynchronous interrupt context happens (Local timer interrupts). I've been seeing ...
blacket's user avatar
0 votes
1 answer
2k views

System interrupts. When is it too much?

We're testing Linux Server as a VPN router. We have a quite good server and the interrupts we're experiencing right now are ~170k, but we're expecting more. CPU usage is OK. How to know when it's too ...
Edvinas's user avatar
  • 51
0 votes
1 answer
363 views

Why we have so many 0's in intr field of /proc/stat

I am looking into intr field of /proc/stat. # cat stat cpu 10438 2056 25767 10098612 2490 0 1846 0 0 0 cpu0 1768 260 4750 1681597 119 0 608 0 0 0 cpu1 1735 67 5119 1683444 342 0 280 0 0 0 cpu2 1908 ...
md.jamal's user avatar
  • 291
2 votes
0 answers
1k views

Notify user-space about interrupt, sleep otherwise

As a beginner, I want to know what people think would be the best course of action for the following scenario. I have a driver that handles a rising-edge interrupt on a gpio pin. The driver also has a ...
gabson's user avatar
  • 21
7 votes
2 answers
10k views

Linux timer interrupt

I have two questions about the Linux kernel. Specifically, does anybody know exactly, what Linux does in the timer interrupt? Is there some documentation about this? And what is affected when ...
SimonC's user avatar
  • 212
7 votes
1 answer
3k views

What is the hardware which the linux kernel uses for timer interrupt

I am reading about jiffies which will be updated for every timer interrupt. The frequency of the timer interrupt is determined by compile time constant HZ. We have lot of hardware devices present on ...
md.jamal's user avatar
  • 291
8 votes
1 answer
5k views

Interrupt child processes from bash script on Ctrl+C

I'm starting two child processes from bash script and waiting both for completion using wait command: ./proc1 & pid1=$! echo "started proc1: ${pid1}" ./proc2 & pid2=$! echo "started proc2: ${...
g4s8's user avatar
  • 498
8 votes
2 answers
7k views

How does a keyboard press get processed in the Linux Kernel?

I'm currently learning about the Linux Kernel and OSes in general, and while I have found many great resources concerning IRQs, Drivers, Scheduling and other important OS concepts, as well as keyboard-...
Sean's user avatar
  • 273
2 votes
0 answers
1k views

Manjaro/Arch: Disabling IRQ #31 on Thinkpad X1 7th

I've stumbled upon the beforementioned error during boot and have tried to resolve it by trying to find out what caused the interrupt. Sadly, lspci -v | grep 31 gives no result and a cat /proc/...
fieseler's user avatar
4 votes
1 answer
2k views

What are the non-numeric IRQs in /proc/interrupts?

cat /proc/interrupts shows a bunch of IRQs such as NMI and LOC. The per-line comments in the output give clear explanation, but if they do not have a numeric IRQ number, how does the x86 CPU respond ...
QnA's user avatar
  • 575
2 votes
3 answers
2k views

Dump contents of variable to file while script is running in bash

I have a lot of files in a directory: $ ls file000001 file000002 # ... truncated ... file999999 I am calculating the md5sum of the files like this and finally dumping it to a file: hashes='' for ...
GMaster's user avatar
  • 6,422
8 votes
1 answer
7k views

How to deduce the nature of an interrupt from its number?

I'm trying to boot/install Linux for learning purposes, using an older PC (HP Pavilion Elite m9660de). The following message is the first thing that shows up when booting (Ubuntu and Fedora, both from ...
Stefan's user avatar
  • 183