Re: Decreasing stime running confuses top (was: top displaying 9999% CPU usage)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Frans Pop
Date: Wednesday, October 3, 2007 - 4:32 pm

On Wednesday 03 October 2007, you wrote:

Nope: Intel(R) Pentium(R) D CPU 3.20GHz


Not really. With that first test I did have:
$ cat /sys/devices/system/clocksource/clocksource0/current_clocksource
tsc

If I boot with 'notsc', I get:
cat /sys/devices/system/clocksource/clocksource0/current_clocksource
hpet

But the problem is still exactly the same:
Oct 04 00:53:37 545 92
Oct 04 00:53:38 545 94
Oct 04 00:53:43 546 92  <--
Oct 04 00:53:49 547 94
Oct 04 00:53:54 549 93  <--
Oct 04 00:54:00 550 94

Some relevant lines from kernel log:
checking TSC synchronization [CPU#0 -> CPU#1]: passed  <--- Not there with 'notsc'
hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
hpet0: 3 64-bit timers, 14318180 Hz
ACPI: RTC can wake from S4
Time: hpet clocksource has been installed.
hpet_resources: 0xfed00000 is busy
Time: tsc clocksource has been installed.  <--- Not there with 'notsc'


I tried your script, but the clock runs perfectly. Never saw anything
other than a 1 second increment.


The following may well be relevant.
With 2.6.22 and early 2.6.23-rc kernels (rc3-rc6) I often had this in my
kernel log (see http://lkml.org/lkml/2007/9/16/45):
   checking TSC synchronization [CPU#0 -> CPU#1]:
   Measured 248 cycles TSC warp between CPUs, turning off TSC clock.
   Marking TSC unstable due to check_tsc_sync_source failed

Some boots the TSC synchronization would be OK, but I'd see ~2/3 failures.
Kernels before 2.6.22 did not have this problem.

However, checking my logs now I see that these messages have disappeared
since 2.6.23-rc7. Now the TSC synchronization check always passes.


I also tried with 2.6.22-6 and with that the jumping around is _not_
present. This was a boot where TSC synchronization failed, so with hpet
as clocksource.
Also, the numbers stay constant much longer and have bigger increments
(updates look to be once per minute?):
Oct 04 01:24:19 465 67
Oct 04 01:24:50 467 69
Oct 04 01:24:51 469 72
Oct 04 01:25:51 474 76
Oct 04 01:26:50 478 80

Cheers,
Frans Pop
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
top displaying 9999% CPU usage, Frans Pop, (Wed Oct 3, 5:33 am)
Re: top displaying 9999% CPU usage, Jan Engelhardt, (Wed Oct 3, 5:52 am)
Re: top displaying 9999% CPU usage, Alexander E. Patrakov, (Wed Oct 3, 6:03 am)
Re: top displaying 9999% CPU usage, Frans Pop, (Wed Oct 3, 7:04 am)
Re: top displaying 9999% CPU usage, Ilpo Järvinen, (Wed Oct 3, 7:43 am)
Re: top displaying 9999% CPU usage, Ilpo Järvinen, (Wed Oct 3, 7:51 am)
Re: Decreasing stime running confuses top (was: top displa ..., Frans Pop, (Wed Oct 3, 4:32 pm)
Re: Decreasing stime running confuses top, Chuck Ebbert, (Thu Oct 4, 12:32 pm)
Re: Decreasing stime running confuses top, Christian Borntraeger, (Thu Oct 4, 1:00 pm)
Re: Decreasing stime running confuses top, Chuck Ebbert, (Thu Oct 4, 1:21 pm)
[PATCH for testing] Re: Decreasing stime running confuses top, Christian Borntraeger, (Thu Oct 4, 2:10 pm)
Re: [PATCH for testing] Re: Decreasing stime running confu ..., Christian Borntraeger, (Thu Oct 4, 3:31 pm)
Re: [PATCH for testing] Re: Decreasing stime running confu ..., Christian Borntraeger, (Mon Oct 8, 9:49 am)