More than 2300 wakeup cycles per second
Posted Apr 4, 2012 6:58 UTC (Wed) by
jzbiciak (
✭ supporter ✭, #5246)
In reply to:
More than 2300 wakeup cycles per second by pr1268
Parent article:
OSADL on realtime Linux determinism
Well, if I'm not misreading this output from vmstat 1, I have a similar interrupt rate on my quad Phenom box:
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
1 0 32100 3506424 365440 2979380 0 0 1 10 1 0 11 2 87 0
0 0 32100 3505704 365440 2979384 0 0 0 0 2543 3229 5 1 94 0
1 0 32100 3504960 365440 2979388 0 0 0 0 2349 3042 15 2 83 0
1 0 32100 3481244 365440 2979388 0 0 0 164 2201 2963 28 2 68 1
0 0 32100 3517948 365440 2979388 0 0 0 144 2240 2933 14 2 84 0
I'm in the 2300 interrupts/sec category myself, and about 3000+ context switches. The interrupts seem evenly split between timer interrupts and "rescheduling" interrupts. I must admit ignorance: What are those? Here's what /proc/interrupts has to say:
$ cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
0: 3041 118260 9853911 1682455038 IO-APIC-edge timer
1: 0 0 0 2 IO-APIC-edge i8042
4: 0 0 0 4 IO-APIC-edge
7: 1 0 0 0 IO-APIC-edge
8: 0 0 0 1 IO-APIC-edge rtc0
9: 0 0 0 0 IO-APIC-fasteoi acpi
14: 0 0 0 0 IO-APIC-edge pata_atiixp
15: 0 0 0 0 IO-APIC-edge pata_atiixp
16: 44415 49328 7067183 155730 IO-APIC-fasteoi hda_intel
17: 0 0 1753147 24 IO-APIC-fasteoi ehci_hcd:usb1, ehci_hcd:usb2, ehci_hcd:usb3, xhci_hcd:usb8, pata_jmicron, ahci
18: 1613 39448 341649 22745885 IO-APIC-fasteoi ohci_hcd:usb4, ohci_hcd:usb5, ohci_hcd:usb6, ohci_hcd:usb7, fglrx[0]@PCI:1:5:0
19: 1 3 0 60 IO-APIC-fasteoi hda_intel
22: 0 0 0 2 IO-APIC-fasteoi firewire_ohci
44: 100096614 0 0 98 PCI-MSI-edge eth0
45: 0 37256958 58 30995 PCI-MSI-edge ahci
NMI: 0 0 0 0 Non-maskable interrupts
LOC: 2068147993 2377844402 1668359324 239470048 Local timer interrupts
SPU: 0 0 0 0 Spurious interrupts
PMI: 0 0 0 0 Performance monitoring interrupts
PND: 0 0 0 0 Performance pending work
RES: 2555648191 2131761062 860328033 353027675 Rescheduling interrupts
CAL: 6867 5608 6269 8570 Function call interrupts
TLB: 24121576 19609582 18233777 16129012 TLB shootdowns
TRM: 0 0 0 0 Thermal event interrupts
THR: 0 0 0 0 Threshold APIC interrupts
MCE: 0 0 0 0 Machine check exceptions
MCP: 29480 29480 29480 29480 Machine check polls
ERR: 1
MIS: 0
At any rate, the kernel config claims HZ=100. I wonder what's causing this spastic interrupt rate. Firefox maybe? With eleventy billion tabs open, it never gets down to a CPU usage of 0. It always has something going on.
In any case, 2300 wakeups / second isn't too unusual, unless my box also is unusual. (I'm willing to grant that...)
(
Log in to post comments)