From: Jim Houston <jim.houston@attbi.com>
To: linux-kernel@vger.kernel.org,
high-res-timers-discourse@lists.sourceforge.net,
ltp-list@lists.sourceforge.net, jim.houston@ccur.com,
plars@linuxtestproject.org
Subject: Re: LTP - gettimeofday02 FAIL
Date: Mon, 18 Nov 2002 20:27:32 -0500 [thread overview]
Message-ID: <200211190127.gAJ1RWg11023@linux.local> (raw)
Hi Everyone,
I just tried gettimeofday02 on an old pentium-pro dual processor, and yes
the time goes backwards with a 2.5.48 kernel.
I believe that this is the result of lost ticks. It has gotten much
easier to lose a tick since HZ was changed to 1000. When the timer
interrupt is delayed, the other processors will continue to keep reasonable
time (based on the TSC), but when the timer interrupt eventually happens,
it will add one tick's worth of nanoseconds to xtime.tv_nsec and set
last_tsc_low to the current tsc value. The other processors now base
their time on this new last_tsc_low and will see time go backwards.
I accidentally configured in the ACPI power management code and was
disappointed to find that it routinely caused a 9 milli-second interrupt
lock-out (on my 1GHz Athlon). With the old 100 Hz clock, this delay would
be detected by reading the PIT timer. With 1000 Hz, the timer would reload
several times and all we see is a fraction of a tick.
I'm interested in this because I'm working on my "alternative Posix timers
patch". It gets confused when time backs up.
Jim Houston - Concurrent Computer Corp.
next reply other threads:[~2002-11-19 1:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-19 1:27 Jim Houston [this message]
2002-11-19 12:03 ` LTP - gettimeofday02 FAIL Andi Kleen
2002-11-19 13:37 ` [LTP] " Paul Larson
2002-11-19 14:02 ` Dave Jones
2002-11-19 14:50 ` Paul Larson
-- strict thread matches above, loose matches on Subject: below --
2002-11-12 22:11 Paul Larson
2002-11-14 21:52 ` Chris Wedgwood
2002-11-18 17:34 ` Paul Larson
2002-11-18 21:58 ` Chris Wedgwood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200211190127.gAJ1RWg11023@linux.local \
--to=jim.houston@attbi.com \
--cc=high-res-timers-discourse@lists.sourceforge.net \
--cc=jim.houston@ccur.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ltp-list@lists.sourceforge.net \
--cc=plars@linuxtestproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox