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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Willy Tarreau
Date: Wednesday, October 3, 2007 - 1:24 pm

On Wed, Oct 03, 2007 at 09:27:41PM +0200, Frans Pop wrote:

Let me guess... Dual core AMD64 ?

I'm 99.99% sure that if you boot with "notsc", the problem disappears. If
so, you have one of those wonderful AMD64 with unsynced clock and without
HPET to sync with. I wrote a simple program in the past to exhibit the
problem. It would bsimply run "date +%s" in a busy loops and display each
time it would change. Amazing. It could jump back and forth by up to 3
seconds!

Basically, it looked like this :

old=$(date +%s)
while : ; do
   x=$(date +%s)
   if [ $x != $old ]; then
      echo "$old -> $x"
      old=$x
   fi
done
 
Regards,
Willy

-
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 ..., Willy Tarreau, (Wed Oct 3, 1:24 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)