LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   A question with respect to IRQ distribution (https://www.linuxquestions.org/questions/linux-hardware-18/a-question-with-respect-to-irq-distribution-768939/)

sunnyhay 11-13-2009 11:19 AM

A question with respect to IRQ distribution
 
Hi all,

I am a Linux newbie in kernel development. In class I was asked a question about IRQ distribution as followed.
IRQs can be distributed among the available CPUs (in a multiple-CPU system) in two ways:
(1) Static distribution
The IRQ signal is delivered to the local APICs listed in the corresponding Redirection Table entry. The interrupt is delivered to one specific CPU, to a subset of CPUs, or to all CPUs at once (broadcast mode).
(2) Dynamic distribution
The IRQ signal is delivered to the local APIC of the processor that is executing the process with the lowest priority. Task Priority Register (TPR) is used to compute the priority of the currently running process.
So I wonder which one is used, or both (how if so) in Linux kernel 2.6 or higher. I know this is a silly question but I did not find out any clear indication of the IRQ load-balance problem.
Thank you very much!

Harry

xode 11-28-2009 10:36 PM

I suspect that this varies depending on what the linux distribution is and the specific motherboard it is running on. The following look interesting:

http://www.kernel.org/pub/linux/kern...rmirq/DocBook/

http://books.google.com/books?id=9yI...ed=0CBUQ6AEwBw


All times are GMT -5. The time now is 06:17 AM.