Skip to contentSkip to conversation

Hardware Interrupt Balancing

DISCUSSION James Lamanna 2 participants 3 messages Mar 25, 2010 – Mar 29, 2010

lore
Share & tools
lore
#0 lore raw

Hi,
I have a Dual Xeon (single core each w/HT) machine and I noticed the other day that interrupts are not
being balanced across the 2 processors:

CPU0 CPU1 CPU2 CPU3

  0:        306          0          0 3254413993    IO-APIC-edge  timer
  1:          0          0          0      13468    IO-APIC-edge  i8042
  8:          0          0          0          3    IO-APIC-edge  rtc
  9:          0          0          0          0   IO-APIC-level  acpi
 12:          0          0          0          4    IO-APIC-edge  i8042
169:          0          0          0          0   IO-APIC-level  uhci_hcd:usb2
177:          0          0          0   16743166   IO-APIC-level  ata_piix
185:          0          0          0          1   IO-APIC-level  ehci_hcd:usb1
193:          0          0          0          0   IO-APIC-level  uhci_hcd:usb3
201:          0          0          0 1867922172   IO-APIC-level  eth0
209:          0          0          0 3254690559   IO-APIC-level  wct4xxp
NMI:          1          0          0          0
LOC: 3255261535 3255261540 3255261549 3255220504
ERR:          0
MIS:          0

However the cpu_affinity of say, wct4xxp is:

# cat /proc/irq/209/smp_affinity
0000000f

Is there something (CPU Hotplug?) preventing the hardware interrupts from being balanced across both CPUs?
The kernel version is 2.6.18 (i686) (this is an older machine that is a PSTN<->SIP gateway).

Thanks.

-- James

Please CC me for I am not subscribed.

#1 lore raw
Quoted 22 lines · El Wed, 24 Mar 2010 18:11:36 -0700 James Lamanna <[email protected]> escribió:

Hi,
I have a Dual Xeon (single core each w/HT) machine and I noticed the other day that interrupts are not
being balanced across the 2 processors:

CPU0 CPU1 CPU2 CPU3

  0:        306          0          0 3254413993    IO-APIC-edge  timer
  1:          0          0          0      13468    IO-APIC-edge  i8042
  8:          0          0          0          3    IO-APIC-edge  rtc
  9:          0          0          0          0   IO-APIC-level  acpi
 12:          0          0          0          4    IO-APIC-edge  i8042
169:          0          0          0          0   IO-APIC-level  uhci_hcd:usb2
177:          0          0          0   16743166   IO-APIC-level  ata_piix
185:          0          0          0          1   IO-APIC-level  ehci_hcd:usb1
193:          0          0          0          0   IO-APIC-level  uhci_hcd:usb3
201:          0          0          0 1867922172   IO-APIC-level  eth0
209:          0          0          0 3254690559   IO-APIC-level  wct4xxp
NMI:          1          0          0          0
LOC: 3255261535 3255261540 3255261549 3255220504
ERR:          0
MIS:          0
Quoted 3 lines

However the cpu_affinity of say, wct4xxp is:

# cat /proc/irq/209/smp_affinity
0000000f

Maybe you just need to run irqbalance http://www.irqbalance.org/
« sudo aptitude install irqbalance » in Debian system

Quoted 16 lines

Is there something (CPU Hotplug?) preventing the hardware interrupts from being balanced across both CPUs?
The kernel version is 2.6.18 (i686) (this is an older machine that is a PSTN<->SIP gateway).

Thanks.

-- James

Please CC me for I am not subscribed.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#2 lore raw

--James

Quoted 27 lines · Alejandro Riveira Fernández
Quoted 24 lines · El Wed, 24 Mar 2010 18:11:36 -0700 James Lamanna <[email protected]> escribió:

Hi,
I have a Dual Xeon (single core each w/HT) machine and I noticed the other day that interrupts are not
being balanced across the 2 processors:

CPU0 CPU1 CPU2 CPU3
0: 306 0 0 3254413993 IO-APIC-edge
timer
1: 0 0 0 13468 IO-APIC-edge
i8042

 8:          0          0          0          3    IO-APIC-edge  rtc
 9:          0          0          0          0   IO-APIC-level  acpi
12:          0          0          0          4    IO-APIC-edge  i8042
169:          0          0          0          0   IO-APIC-level  uhci_hcd:usb2
177:          0          0          0   16743166   IO-APIC-level  ata_piix
185:          0          0          0          1   IO-APIC-level  ehci_hcd:usb1
193:          0          0          0          0   IO-APIC-level  uhci_hcd:usb3
201:          0          0          0 1867922172   IO-APIC-level  eth0
209:          0          0          0 3254690559   IO-APIC-level  wct4xxp
NMI:          1          0          0          0
LOC: 3255261535 3255261540 3255261549 3255220504
ERR:          0
MIS:          0
Quoted 6 lines
Quoted 3 lines

However the cpu_affinity of say, wct4xxp is:

# cat /proc/irq/209/smp_affinity
0000000f

Maybe you just need to run irqbalance http://www.irqbalance.org/
« sudo aptitude install irqbalance » in Debian system

I do not want to use irq balance because everytime irqbalance moves the CPU of my PRI card, there is a hiccup in voice calls. I manually moved the interrupts for the wct4xxp to CPU0 using smp_affinity = 1.

However today I got a lot of soft lockups on CPU0 due to asterisk in udp_sendmsg() - unsure if moving the interrupt caused this...could it?

Thanks.

-- James

Quoted 1 line