Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: acpi timer trouble



On Tue, Nov 26, 2013 at 05:37:54PM +0100, Christoph Egger wrote:
> On 26.11.13 13:25, Patrick Welche wrote:
> 
> >I started this as a thread on current-users:
> >
> >   http://mail-index.netbsd.org/current-users/2013/11/19/msg023704.html
> >
> >It turned out the "hanging" is actually more like playing roulette - 
> >sometimes
> >you do get through ->  timing?
> >
> >Stephen pointed out that "apm0 at mainbus0" does compile on NetBSD 
> >6.1.2/i386,
> >so I got a little further:
> >
> >apm0 at mainbus0 compiles, but doesn't attach, so running the laptop without
> >acpi doesn't seem to be an option. (Although boot -2 gives a working laptop
> >which can't power-off nor check its battery state.)
> >
> >I also enabled PCI_*_FIXUP just in case.
> >
> >I popped "vmstat -w 1" into /etc/rc.local based on the "interrupt storm"
> >theory. vmstat was printing much faster than every 1s (scrolling off
> >screen). This matches the -current/i386 observations of:
> >
> >- lots of hard disk timeouts
> >- external keyboard as a ridiculously high repeat rate
> >- logging in via ssh has to be rapid to beat the login timeout
> >- laptop keyboard doesn't work
> >
> >kern.timecounter.choice = TSC(q=-100, f=32248970 Hz) clockinterrupt(q=0, 
> >f=100 Hz) ichlpcib0(q=1000, f=3579545 Hz) ACPI-Fast(q=1000, f=3579545 Hz) 
> >lapic(q=-100, f=437599 Hz) i8254(q=100, f=1193182 Hz) dummy(q=-1000000, 
> >f=1000000 Hz)
> >kern.timecounter.hardware = ACPI-Fast
> >kern.timecounter.timestepwarnings = 0
> >
> >I tried
> >
> >kern.timecounter.hardware: ACPI-Fast ->  ichlpcib0
> >(and lapic, TSC)
> >
> >but the vmstat -w 1 test still runs too fast
> >
> >kern.timecounter.hardware = ichlpcib0
> >kern.clockrate: tick = 10000, tickadj = 40, hz = 100, profhz = 100, stathz = 
> >100
> >
> >
> >Any thoughts on what to try next?
> 
> 
> What does vmstat -i show?

interrupt                                     total     rate
cpu0 timer                                  1007499    23430
ioapic0 pin 9                                   393        9
ioapic0 pin 20                                    8        0
ioapic0 pin 21                                  279        6
ioapic0 pin 22                                    2        0
ioapic0 pin 14                                 4644      108
Total                                       1012825    23554


Cheers,

Patrick


Home | Main Index | Thread Index | Old Index