lkml.org 
[lkml]   [2010]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [2.6.33-rc1] System timer flooding bus on Lenovo Thinkpad W500 laptop in x86_64 - update
Date
On Wednesday 06 January 2010 14:28:04 Shawn Starr wrote:

2.6.33-rc4 (Sun Jan 17 04:26:20 EST 2010 git snapshot) has different behavour.
I cannot enable dynamic ticks. Must boot with nohz=off.

The rescheduling interrupts no longer is increasing rapidly, seems to be a
normal rescheduling period. However, enabling dynamic ticks will cause the
system timer on irq 0 to fire too often and then cause the CPUs to reschedule
interrupts too much.

Powertop shows the following with A/C plugged in.

Cn Avg residency P-states (frequencies)
C0 (cpu running) ( 6.7%) 2.54 Ghz 0.7%
polling 6.4ms (93.3%) 2.54 Ghz 0.4%
C1 mwait 0.0ms ( 0.0%) 1.60 Ghz 0.2%
C2 mwait 0.0ms ( 0.0%) 800 Mhz 98.7%
C3 mwait 0.0ms ( 0.0%)

CPU0 CPU1
0: 46 1 IO-APIC-edge timer
1: 268 258 IO-APIC-edge i8042
8: 0 1 IO-APIC-edge rtc0
9: 255 257 IO-APIC-fasteoi acpi
12: 1433 1445 IO-APIC-edge i8042
16: 0 0 IO-APIC-fasteoi uhci_hcd:usb6
17: 5 2 IO-APIC-fasteoi firewire_ohci, uhci_hcd:usb7
18: 0 0 IO-APIC-fasteoi mmc0, uhci_hcd:usb8
19: 6851 6829 IO-APIC-fasteoi ehci_hcd:usb2
20: 2119 2121 IO-APIC-fasteoi uhci_hcd:usb3
21: 0 0 IO-APIC-fasteoi uhci_hcd:usb4
22: 0 0 IO-APIC-fasteoi uhci_hcd:usb5
23: 1 1 IO-APIC-fasteoi ehci_hcd:usb1
28: 78 80 PCI-MSI-edge eth0
29: 5304 5294 PCI-MSI-edge ahci
30: 5587 5613 PCI-MSI-edge iwlagn
31: 362 391 PCI-MSI-edge HDA Intel
32: 1202 1152 PCI-MSI-edge i915
NMI: 0 0 Non-maskable interrupts
LOC: 85428 86232 Local timer interrupts
SPU: 0 0 Spurious interrupts
PMI: 0 0 Performance monitoring interrupts
PND: 0 0 Performance pending work
RES: 2018 1632 Rescheduling interrupts
CAL: 70 67 Function call interrupts
TLB: 102 199 TLB shootdowns
TRM: 0 0 Thermal event interrupts
THR: 0 0 Threshold APIC interrupts
MCE: 0 0 Machine check exceptions
MCP: 2 2 Machine check polls
ERR: 1
MIS: 0

> On December 21, 2009 01:12:52 pm Shawn Starr wrote:
> > Hello kernel devs,
> >
> > I am noticing a serious problem with the system timer flooding the bus
> > with many interrupts for no reason. I have compiled the kernel with
> > tickless enabled.
>
> This is still happening in 2.6.33-rc2, 2.6.33-rc3 (just built). Setting
> nohz=off stops the system timer from incrementing so rapidly.
>
> 0: 47 1 IO-APIC-edge timer
>
> This issue is being tracked from
> http://bugzilla.kernel.org/show_bug.cgi?id=14859
>
> However, there are a high number of Rescheduling interrupts occurring.
> There are still generic IRQ issues.
>
> If the timer/irq folks have any patches for me to test, I'd be glad to try
> them.
>
> Thanks,
> Shawn.
>
> > Can someone provide me some debugging to find out why this is happening?
> >
> > As a comparsion my quad core box has no such issue: (Running 2.6.32-rc7)
> > x86_64
> >
> > 0: 42 4 1 1 IO-APIC-edge
> > timer
> >
> > my Lenovo ThinkPad W500 (latest BIOS 3.11) laptop shows the system timer
> > flooding the bus (Running 2.6.33-rc1) x86_64
> >
> > 0: 66775 70429 IO-APIC-edge timer <-- keeps rising,
> >
> > rapidly
> >
> > and afew minutes ...
> >
> > 0: 119849 124505 IO-APIC-edge timer
> >
> > Same for Rescheduling interrupts rising just as fast with the timer.
> >
> > This does not look right, powertop shows:
> >
> > 40.0% ( 62.1) <kernel IPI> : Rescheduling interrupts
> > 22.9% ( 35.6) <interrupt> : extra timer interrupt
> > 17.0% ( 26.4) <interrupt> : iwlagn
> >
> > and another sample...
> >
> > 54.6% (144.8) <kernel IPI> : Rescheduling interrupts
> > 14.6% ( 38.8) <interrupt> : extra timer interrupt
> >
> > 8.5% ( 22.6) <interrupt> : iwlagn
> > 6.5% ( 17.2) <interrupt> : uhci_hcd:usb6,
> > radeon@pci:0000:01:00.0 6.5% ( 17.2) USB device 6-1 : Microsoft
> > Basic Optical Mouse v2.0
> >
> > (Microsoft )
> >
> > There is no cause for the rescheduling interrupts and extra timer
> > interrupt to wakeup the CPUs so much? Are there any timer issues?
> >
> > cpuinfo:
> >
> > processor : 0
> > vendor_id : GenuineIntel
> > cpu family : 6
> > model : 23
> > model name : Intel(R) Core(TM)2 Duo CPU T9400 @ 2.53GHz
> > stepping : 10
> > cpu MHz : 800.000
> > cache size : 6144 KB
> > physical id : 0
> > siblings : 2
> > core id : 0
> > cpu cores : 2
> > apicid : 0
> > initial apicid : 0
> > fpu : yes
> > fpu_exception : yes
> > cpuid level : 13
> > wp : yes
> > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
> > mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe
> > syscall nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni
> > dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave
> > lahf_lm ida tpr_shadow vnmi flexpriority
> > bogomips : 5054.98
> > clflush size : 64
> > cache_alignment : 64
> > address sizes : 36 bits physical, 48 bits virtual
> > power management:
> >
> >
> > Below is lspci information:
> >
> > 00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory
> > Controller Hub (rev 07)
> >
> > Subsystem: Lenovo Device 20e0
> > Flags: bus master, fast devsel, latency 0
> > Capabilities: [e0] Vendor Specific Information <?>
> >
> > 00:01.0 PCI bridge: Intel Corporation Mobile 4 Series Chipset PCI Express
> > Graphics Port (rev 07) (prog-if 00 [Normal decode])
> >
> > Flags: bus master, fast devsel, latency 0
> > Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
> > I/O behind bridge: 00002000-00002fff
> > Memory behind bridge: cff00000-cfffffff
> >
> > Prefetchable memory behind bridge:
> > 00000000d0000000-00000000dfffffff Capabilities: [88] Subsystem: Lenovo
> > Device 20e2
> >
> > Capabilities: [80] Power Management version 3
> > Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
> > Capabilities: [a0] Express Root Port (Slot+), MSI 00
> > Capabilities: [100] Virtual Channel <?>
> > Capabilities: [140] Root Complex Link <?>
> > Kernel driver in use: pcieport
> >
> > 00:03.0 Communication controller: Intel Corporation Mobile 4 Series
> > Chipset MEI Controller (rev 07)
> >
> > Subsystem: Lenovo Device 20e6
> > Flags: bus master, fast devsel, latency 0, IRQ 11
> > Memory at fc226800 (64-bit, non-prefetchable) [size=16]
> > Capabilities: [50] Power Management version 3
> > Capabilities: [8c] MSI: Enable- Count=1/1 Maskable- 64bit+
> >
> > 00:19.0 Ethernet controller: Intel Corporation 82567LM Gigabit Network
> > Connection (rev 03)
> >
> > Subsystem: Lenovo Device 20ee
> > Flags: bus master, fast devsel, latency 0, IRQ 29
> > Memory at fc200000 (32-bit, non-prefetchable) [size=128K]
> > Memory at fc225000 (32-bit, non-prefetchable) [size=4K]
> > I/O ports at 1840 [size=32]
> > Capabilities: [c8] Power Management version 2
> > Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
> > Capabilities: [e0] PCI Advanced Features
> > Kernel driver in use: e1000e
> >
> > 00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI
> > Controller #4 (rev 03) (prog-if 00 [UHCI])
> >
> > Subsystem: Lenovo Device 20f0
> > Flags: bus master, medium devsel, latency 0, IRQ 20
> > I/O ports at 1860 [size=32]
> > Capabilities: [50] PCI Advanced Features
> > Kernel driver in use: uhci_hcd
> >
> > 00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI
> > Controller #5 (rev 03) (prog-if 00 [UHCI])
> >
> > Subsystem: Lenovo Device 20f0
> > Flags: bus master, medium devsel, latency 0, IRQ 21
> > I/O ports at 1880 [size=32]
> > Capabilities: [50] PCI Advanced Features
> > Kernel driver in use: uhci_hcd
> >
> > 00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI
> > Controller #6 (rev 03) (prog-if 00 [UHCI])
> >
> > Subsystem: Lenovo Device 20f0
> > Flags: bus master, medium devsel, latency 0, IRQ 22
> > I/O ports at 18a0 [size=32]
> > Capabilities: [50] PCI Advanced Features
> > Kernel driver in use: uhci_hcd
> >
> > 00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI
> > Controller #2 (rev 03) (prog-if 20 [EHCI])
> >
> > Subsystem: Lenovo Device 20f1
> > Flags: bus master, medium devsel, latency 0, IRQ 23
> > Memory at fc226c00 (32-bit, non-prefetchable) [size=1K]
> > Capabilities: [50] Power Management version 2
> > Capabilities: [58] Debug port: BAR=1 offset=00a0
> > Capabilities: [98] PCI Advanced Features
> > Kernel driver in use: ehci_hcd
> >
> > 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio
> > Controller (rev 03)
> >
> > Subsystem: Lenovo Device 20f2
> > Flags: bus master, fast devsel, latency 0, IRQ 32
> > Memory at fc220000 (64-bit, non-prefetchable) [size=16K]
> > Capabilities: [50] Power Management version 2
> > Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
> > Capabilities: [70] Express Root Complex Integrated Endpoint, MSI
> > 00 Capabilities: [100] Virtual Channel <?>
> > Capabilities: [130] Root Complex Link <?>
> > Kernel driver in use: HDA Intel
> >
> > 00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express
> > Port 1 (rev 03) (prog-if 00 [Normal decode])
> >
> > Flags: bus master, fast devsel, latency 0
> > Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
> > I/O behind bridge: 00009000-00009fff
> > Memory behind bridge: c0000000-c01fffff
> >
> > Prefetchable memory behind bridge:
> > 00000000c0200000-00000000c03fffff Capabilities: [40] Express Root Port
> > (Slot+), MSI 00
> >
> > Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
> > Capabilities: [90] Subsystem: Lenovo Device 20f3
> > Capabilities: [a0] Power Management version 2
> > Capabilities: [100] Virtual Channel <?>
> > Capabilities: [180] Root Complex Link <?>
> > Kernel driver in use: pcieport
> >
> > 00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express
> > Port 2 (rev 03) (prog-if 00 [Normal decode])
> >
> > Flags: bus master, fast devsel, latency 0
> > Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
> > I/O behind bridge: 0000a000-0000afff
> > Memory behind bridge: f4200000-f42fffff
> >
> > Prefetchable memory behind bridge:
> > 00000000c0400000-00000000c05fffff Capabilities: [40] Express Root Port
> > (Slot+), MSI 00
> >
> > Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
> > Capabilities: [90] Subsystem: Lenovo Device 20f3
> > Capabilities: [a0] Power Management version 2
> > Capabilities: [100] Virtual Channel <?>
> > Capabilities: [180] Root Complex Link <?>
> > Kernel driver in use: pcieport
> >
> > 00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express
> > Port 4 (rev 03) (prog-if 00 [Normal decode])
> >
> > Flags: bus master, fast devsel, latency 0
> > Bus: primary=00, secondary=05, subordinate=0c, sec-latency=0
> > I/O behind bridge: 00003000-00003fff
> > Memory behind bridge: f8000000-f9ffffff
> >
> > Prefetchable memory behind bridge:
> > 00000000f4000000-00000000f40fffff Capabilities: [40] Express Root Port
> > (Slot+), MSI 00
> >
> > Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
> > Capabilities: [90] Subsystem: Lenovo Device 20f3
> > Capabilities: [a0] Power Management version 2
> > Capabilities: [100] Virtual Channel <?>
> > Capabilities: [180] Root Complex Link <?>
> > Kernel driver in use: pcieport
> >
> > 00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express
> > Port 5 (rev 03) (prog-if 00 [Normal decode])
> >
> > Flags: bus master, fast devsel, latency 0
> > Bus: primary=00, secondary=0d, subordinate=14, sec-latency=0
> > I/O behind bridge: 00004000-00004fff
> > Memory behind bridge: fa000000-fbffffff
> >
> > Prefetchable memory behind bridge:
> > 00000000f4100000-00000000f41fffff Capabilities: [40] Express Root Port
> > (Slot+), MSI 00
> >
> > Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
> > Capabilities: [90] Subsystem: Lenovo Device 20f3
> > Capabilities: [a0] Power Management version 2
> > Capabilities: [100] Virtual Channel <?>
> > Capabilities: [180] Root Complex Link <?>
> > Kernel driver in use: pcieport
> >
> > 00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI
> > Controller #1 (rev 03) (prog-if 00 [UHCI])
> >
> > Subsystem: Lenovo Device 20f0
> > Flags: bus master, medium devsel, latency 0, IRQ 16
> > I/O ports at 18c0 [size=32]
> > Capabilities: [50] PCI Advanced Features
> > Kernel driver in use: uhci_hcd
> >
> > 00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI
> > Controller #2 (rev 03) (prog-if 00 [UHCI])
> >
> > Subsystem: Lenovo Device 20f0
> > Flags: bus master, medium devsel, latency 0, IRQ 17
> > I/O ports at 18e0 [size=32]
> > Capabilities: [50] PCI Advanced Features
> > Kernel driver in use: uhci_hcd
> >
> > 00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI
> > Controller #3 (rev 03) (prog-if 00 [UHCI])
> >
> > Subsystem: Lenovo Device 20f0
> > Flags: bus master, medium devsel, latency 0, IRQ 18
> > I/O ports at 1c00 [size=32]
> > Capabilities: [50] PCI Advanced Features
> > Kernel driver in use: uhci_hcd
> >
> > 00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI
> > Controller #1 (rev 03) (prog-if 20 [EHCI])
> >
> > Subsystem: Lenovo Device 20f1
> > Flags: bus master, medium devsel, latency 0, IRQ 19
> > Memory at fc227000 (32-bit, non-prefetchable) [size=1K]
> > Capabilities: [50] Power Management version 2
> > Capabilities: [58] Debug port: BAR=1 offset=00a0
> > Capabilities: [98] PCI Advanced Features
> > Kernel driver in use: ehci_hcd
> >
> > 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
> > (prog- if 01 [Subtractive decode])
> >
> > Flags: bus master, fast devsel, latency 0
> > Bus: primary=00, secondary=15, subordinate=18, sec-latency=32
> > I/O behind bridge: 00005000-00008fff
> > Memory behind bridge: f4300000-f7ffffff
> >
> > Prefetchable memory behind bridge:
> > 00000000f0000000-00000000f3ffffff Capabilities: [50] Subsystem: Lenovo
> > Device 20f4
> >
> > 00:1f.0 ISA bridge: Intel Corporation ICH9M-E LPC Interface Controller
> > (rev 03)
> >
> > Subsystem: Lenovo Device 20f5
> > Flags: bus master, medium devsel, latency 0
> > Capabilities: [e0] Vendor Specific Information <?>
> >
> > 00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI Controller
> > (rev 03) (prog-if 01 [AHCI 1.0])
> >
> > Subsystem: Lenovo Device 20f8
> > Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 30
> > I/O ports at 1c40 [size=8]
> > I/O ports at 1834 [size=4]
> > I/O ports at 1838 [size=8]
> > I/O ports at 1830 [size=4]
> > I/O ports at 1c20 [size=32]
> > Memory at fc226000 (32-bit, non-prefetchable) [size=2K]
> > Capabilities: [80] MSI: Enable+ Count=1/16 Maskable- 64bit-
> > Capabilities: [70] Power Management version 3
> > Capabilities: [a8] SATA HBA <?>
> > Capabilities: [b0] PCI Advanced Features
> > Kernel driver in use: ahci
> >
> > 00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller
> > (rev 03)
> >
> > Subsystem: Lenovo Device 20f9
> > Flags: medium devsel, IRQ 23
> > Memory at fc227400 (64-bit, non-prefetchable) [size=256]
> > I/O ports at 1c60 [size=32]
> > Kernel driver in use: i801_smbus
> >
> > 01:00.0 VGA compatible controller: ATI Technologies Inc Mobility Radeon
> > HD 3650 (prog-if 00 [VGA controller])
> >
> > Subsystem: Lenovo Device 2127
> > Flags: bus master, fast devsel, latency 0, IRQ 16
> > Memory at d0000000 (32-bit, prefetchable) [size=256M]
> > I/O ports at 2000 [size=256]
> > Memory at cfff0000 (32-bit, non-prefetchable) [size=64K]
> > [virtual] Expansion ROM at cff00000 [disabled] [size=128K]
> > Capabilities: [50] Power Management version 3
> > Capabilities: [58] Express Legacy Endpoint, MSI 00
> > Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
> > Capabilities: [100] Vendor Specific Information <?>
> >
> > 03:00.0 Network controller: Intel Corporation PRO/Wireless 5100 AGN
> > [Shiloh] Network Connection
> >
> > Subsystem: Intel Corporation Device 1211
> > Flags: bus master, fast devsel, latency 0, IRQ 31
> > Memory at f4200000 (64-bit, non-prefetchable) [size=8K]
> > Capabilities: [c8] Power Management version 3
> > Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
> > Capabilities: [e0] Express Endpoint, MSI 00
> > Capabilities: [100] Advanced Error Reporting
> > Capabilities: [140] Device Serial Number 00-22-fa-ff-ff-c8-53-ce
> > Kernel driver in use: iwlagn
> >
> > 15:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ba)
> >
> > Subsystem: Lenovo Device 20c6
> > Flags: bus master, medium devsel, latency 168, IRQ 16
> > Memory at f4300000 (32-bit, non-prefetchable) [size=4K]
> > Bus: primary=15, secondary=16, subordinate=17, sec-latency=176
> > Memory window 0: f0000000-f3fff000 (prefetchable)
> > Memory window 1: c4000000-c7fff000
> > I/O window 0: 00005000-000050ff
> > I/O window 1: 00005100-000051ff
> > 16-bit legacy interface ports at 0001
> >
> > 15:00.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller
> > (rev 04) (prog-if 10 [OHCI])
> >
> > Subsystem: Lenovo Device 20c7
> > Flags: bus master, medium devsel, latency 32, IRQ 17
> > Memory at f4301000 (32-bit, non-prefetchable) [size=2K]
> > Capabilities: [dc] Power Management version 2
> > Kernel driver in use: firewire_ohci
> >
> > 15:00.2 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host
> > Adapter (rev 21)
> >
> > Subsystem: Lenovo Device 20c8
> > Flags: bus master, medium devsel, latency 32, IRQ 18
> > Memory at f4301800 (32-bit, non-prefetchable) [size=256]
> > Capabilities: [80] Power Management version 2
> > Kernel driver in use: sdhci-pci
> >
> > 15:00.3 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev
> > ff) (prog-if ff)
> >
> > !!! Unknown header type 7f
> > Kernel driver in use: ricoh-mmc
> >
> > 15:00.4 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host
> > Adapter (rev 11)
> >
> > Subsystem: Lenovo ThinkPad T61
> > Flags: bus master, medium devsel, latency 32, IRQ 11
> > Memory at f4302000 (32-bit, non-prefetchable) [size=256]
> > Capabilities: [80] Power Management version 2
> >
> > 15:00.5 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev
> > 11)
> >
> > Subsystem: Lenovo Device 20cb
> > Flags: bus master, medium devsel, latency 32, IRQ 11
> > Memory at f4302400 (32-bit, non-prefetchable) [size=256]
> > Capabilities: [80] Power Management version 2


\
 
 \ /
  Last update: 2010-01-17 21:51    [W:0.073 / U:0.668 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site