On Sunday 08 May 2005 15:40, Andi Kleen wrote:
Your system should be using the HPET timer to work exactly around this. AMD 8000 has HPET. Can you post a boot.log?
Ok, boot.log attached. The only entry with hpet seems to indicate some problems.
A common problem however is that the irq 0 is misrouted somehow, and gets broadcasted and processed on multiple CPUs. That results in the time running far too fast. You can check that by looking at /proc/interrupts.
After rebooting today (and doing basically nothing), things look like that: # while [ .T. ]; do sleep 1; echo -n $(date); grep timer /proc/interrupts; done Mo Mai 9 12:47:37 CEST 2005 0: 4156834 4466062 IO-APIC-edge timer Mo Mai 9 12:47:38 CEST 2005 0: 4157847 4466062 IO-APIC-edge timer Mo Mai 9 12:47:39 CEST 2005 0: 4158861 4466062 IO-APIC-edge timer Mo Mai 9 12:47:40 CEST 2005 0: 4159874 4466062 IO-APIC-edge timer Mo Mai 9 12:47:41 CEST 2005 0: 4160886 4466062 IO-APIC-edge timer Mo Mai 9 12:47:42 CEST 2005 0: 4161899 4466062 IO-APIC-edge timer Mo Mai 9 12:47:43 CEST 2005 0: 4162913 4466062 IO-APIC-edge timer Mo Mai 9 12:47:44 CEST 2005 0: 4163926 4466062 IO-APIC-edge timer Mo Mai 9 12:47:45 CEST 2005 0: 4164938 4466062 IO-APIC-edge timer Mo Mai 9 12:47:46 CEST 2005 0: 4165951 4466062 IO-APIC-edge timer Mo Mai 9 12:47:47 CEST 2005 0: 4166396 4466631 IO-APIC-edge timer Mo Mai 9 12:47:48 CEST 2005 0: 4166396 4467644 IO-APIC-edge timer Mo Mai 9 12:47:49 CEST 2005 0: 4166396 4468656 IO-APIC-edge timer Mo Mai 9 12:47:50 CEST 2005 0: 4166396 4469668 IO-APIC-edge timer Mo Mai 9 12:47:51 CEST 2005 0: 4166396 4470681 IO-APIC-edge timer Mo Mai 9 12:47:52 CEST 2005 0: 4166396 4471694 IO-APIC-edge timer Mo Mai 9 12:47:53 CEST 2005 0: 4166396 4472708 IO-APIC-edge timer Mo Mai 9 12:47:54 CEST 2005 0: 4166396 4473720 IO-APIC-edge timer Mo Mai 9 12:47:55 CEST 2005 0: 4166396 4474733 IO-APIC-edge timer Adding load to one CPU changes things: # cat /dev/zero >/dev/null & # speed 1000000 2000000 # while [ .T. ]; do sleep 1; echo -n $(date); grep timer /proc/interrupts; done Mo Mai 9 12:48:52 CEST 2005 0: 4195741 4500873 IO-APIC-edge timer Mo Mai 9 12:48:53 CEST 2005 0: 4195741 4501882 IO-APIC-edge timer Mo Mai 9 12:48:54 CEST 2005 0: 4195741 4502893 IO-APIC-edge timer Mo Mai 9 12:48:55 CEST 2005 0: 4195741 4503902 IO-APIC-edge timer Mo Mai 9 12:48:56 CEST 2005 0: 4195741 4504913 IO-APIC-edge timer Mo Mai 9 12:49:01 CEST 2005 0: 4195958 4505706 IO-APIC-edge timer Mo Mai 9 12:49:03 CEST 2005 0: 4196968 4505706 IO-APIC-edge timer Mo Mai 9 12:49:04 CEST 2005 0: 4197977 4505706 IO-APIC-edge timer Mo Mai 9 12:49:06 CEST 2005 0: 4198986 4505706 IO-APIC-edge timer Mo Mai 9 12:49:07 CEST 2005 0: 4199997 4505706 IO-APIC-edge timer Mo Mai 9 12:49:09 CEST 2005 0: 4201006 4505706 IO-APIC-edge timer Mo Mai 9 12:49:10 CEST 2005 0: 4202015 4505706 IO-APIC-edge timer Mo Mai 9 12:49:04 CEST 2005 0: 4202868 4505706 IO-APIC-edge timer Mo Mai 9 12:49:12 CEST 2005 0: 4203675 4505706 IO-APIC-edge timer Mo Mai 9 12:49:14 CEST 2005 0: 4204685 4505706 IO-APIC-edge timer Mo Mai 9 12:49:15 CEST 2005 0: 4205376 4505713 IO-APIC-edge timer Mo Mai 9 12:49:16 CEST 2005 0: 4205376 4506724 IO-APIC-edge timer Mo Mai 9 12:49:17 CEST 2005 0: 4205376 4507734 IO-APIC-edge timer Mo Mai 9 12:49:18 CEST 2005 0: 4205376 4508743 IO-APIC-edge timer Mo Mai 9 12:49:19 CEST 2005 0: 4205376 4509752 IO-APIC-edge timer Mo Mai 9 12:49:20 CEST 2005 0: 4205376 4510761 IO-APIC-edge timer After stopping the load, the hickups continue: Mo Mai 9 12:56:28 CEST 2005 0: 4312541 4585753 IO-APIC-edge timer Mo Mai 9 12:56:29 CEST 2005 0: 4313554 4585753 IO-APIC-edge timer Mo Mai 9 12:56:30 CEST 2005 0: 4314568 4585753 IO-APIC-edge timer Mo Mai 9 12:57:20 CEST 2005 0: 4315424 4585756 IO-APIC-edge timer Mo Mai 9 12:57:21 CEST 2005 0: 4316437 4585756 IO-APIC-edge timer Mo Mai 9 12:57:22 CEST 2005 0: 4317449 4585756 IO-APIC-edge timer Mo Mai 9 12:57:23 CEST 2005 0: 4318461 4585756 IO-APIC-edge timer Mo Mai 9 12:57:24 CEST 2005 0: 4319474 4585756 IO-APIC-edge timer -- Bernd Paysan "If you want it done right, you have to do it yourself" http://www.jwdt.com/~paysan/