On Thursday 02 June 2005 22:32, Tony Lindgren wrote: > * Christian Hesse [050602 13:04]: > > On Thursday 02 June 2005 19:42, Tony Lindgren wrote: > > > * Christian Hesse [050602 01:31]: > > > > On Thursday 02 June 2005 03:36, Tony Lindgren wrote: > > > > > Hi all, > > > > > > > > > > Here's an updated version of the dynamic tick patch. > > > > > > > > > > It's mostly clean-up and it's now using the standard > > > > > monotonic_clock() functions as suggested by John Stultz. > > > > > > > > > > Please let me know of any issues with the patch. I'll continue to > > > > > do more clean-up on it, but I think the basic functionality is > > > > > done. > > > > > > > > I would like to test it, but have some trouble. The patch applies > > > > cleanly and everything compiles fine, but linking fails: > > > > > > > > [ linker errors ] > > > > > > Should be fixed now, the header was defining it as a function un UP > > > system with no local apic. Can you try the following version? > > > > This one compiles and links without problems. > > > > The reason I want to use this patch is that I hear a high pitched noise > > [1] when running with 1000Hz and the processor is idle. With this patch I > > could use 1000Hz without any noise. > > Heh! > > > But I found some problems on my system: > > > > - time does not run the correct speed, it was some minutes in future > > after I had compiled a new kernel > > Could you please post output of the following commands: > > $ dmesg | grep -i "time\|tick\|apic" The problems occured with enabled CONFIG_DYN_TICK_USE_APIC. As I recompiled the kernel the following is without the option. Everything looks good so far (except resume...), so I am not shure what caused the bad behavior. BTW, I can enable CONFIG_DYN_TICK_USE_APIC without CONFIG_X86_UP_APIC, is this intended? $ dmesg | grep -i "time\|tick\|apic" Using tsc for high-res timesource dyn-tick: Found suitable timer: tsc dyn-tick: Registering dynamic tick timer v050602-2 Real Time Clock Driver v1.12 PCI: Setting latency timer of device 0000:00:1d.7 to 64 PCI: Setting latency timer of device 0000:00:1d.0 to 64 PCI: Setting latency timer of device 0000:00:1f.5 to 64 dyn-tick: Maximum ticks to skip limited to 54 dyn-tick: Timer using dynamic tick > # for i in 1 2 3 4 5; do ntpdate -b someserver.somewhere && sleep 10; done root@logo:~# for i in `seq 1 5`; do ntpdate ntp.uni-trier.de; sleep 60; done 3 Jun 07:41:30 ntpdate[10348]: adjust time server 136.199.8.99 offset 0.000522 sec 3 Jun 07:42:30 ntpdate[10351]: adjust time server 136.199.8.99 offset 0.000467 sec 3 Jun 07:43:30 ntpdate[10374]: adjust time server 136.199.8.99 offset 0.000660 sec 3 Jun 07:44:31 ntpdate[10378]: adjust time server 136.199.8.99 offset 0.000907 sec 3 Jun 07:45:31 ntpdate[10406]: adjust time server 136.199.8.99 offset 0.000653 sec > Also, please attach your .config file too. > > > - pressing a key on the keyboard sometimes results in two or more > > characters, not only one > > > > - mouse misses some events, e.g. clicks are not recognized (synaptics > > touchpad) > > > > - using software suspend 2.1.8.10 I can suspend the system, but it hangs > > while resuming > > None of this should happen... Software suspend still does not work, it hangs on resume. Any ideas what could be the cause? I've applied these patches on top of 2.6.12-rc5: 2.6.12-rc4-ck1 software suspend 2.1.8.10 reiser from 2.6.12-rc5-mm1 ieee802.11 stack and ipw2100 1.1.0 hostap 0.3.7 shfs 0.35 fbsplash 0.9.2-r2 dyn-tick Regards, -- Christian