From: "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de>
To: linux-kernel@vger.kernel.org
Subject: RFD(time): squeezing and stretching the tick
Date: Thu, 10 May 2001 16:32:19 +0200 [thread overview]
Message-ID: <3AFAC290.22797.1D8AA82@localhost> (raw)
For i386 with TSC, the kernel calibrates how much CPU cycles will fit
between two timer interrupts. That value corresponds to 10000
microseconds. Ideally.
In practice however the timer interrupts do not happen exactly every
10000 us (for hardware reasons). When interpolating time between ticks
that calibration value is used.
When using NTP (or adjusting tick manually) the value added every tick
may be different from 10000us.
If that value is larger, the time seems to jump ahead at the beginning
of each tick; if the value is smaller, the time may seem to get stuck,
get slow, or jump back at the beginning of a new tick.
Therefore I added experimental code to scale the value used for tick
interpolation according to these corrections. As it seems to me, the
clock quality improves, and the performance penalty only appears when
the correction value changes.
I haven't done the non-TSC case or other architectures. For
microseconds it may seem neglectible, but not for nanoseconds.
If anybody has an interesting opinion on this, please Mail.
Regards,
Ulrich
P.S. Not subscribed here.
reply other threads:[~2001-05-10 14:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3AFAC290.22797.1D8AA82@localhost \
--to=ulrich.windl@rz.uni-regensburg.de \
--cc=linux-kernel@vger.kernel.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