mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vojtech Pavlik <vojtech@suse.cz>
To: Rolf Fokkens <fokkensr@fokkensr.vertis.nl>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] USER_HZ & NTP problems
Date: Tue, 10 Sep 2002 08:09:41 +0200	[thread overview]
Message-ID: <20020910080941.A6298@ucw.cz> (raw)
In-Reply-To: <200209092314.g89NEnA05992@fokkensr.vertis.nl>; from fokkensr@fokkensr.vertis.nl on Tue, Sep 10, 2002 at 01:14:49AM +0200

On Tue, Sep 10, 2002 at 01:14:49AM +0200, Rolf Fokkens wrote:

> I've been playing with different HZ values in the 2.4 kernel for a while now,
> and apparantly Linus also has decided to introduce a USER_HZ constant (I used
> CLOCKS_PER_SEC) while raising the HZ value on x86 to 1000.
> 
> On x86 timekeeping has shown to be relative fragile when raising HZ (OK, I
> tried HZ=2048 which is quite high) because of the way the interrupt timer is
> configured to fire HZ times each second. This is done by configuring a divisor
> in the timer chip (LATCH) which divides a certain clock (1193180) and

Actually, the clock true frequency is 1193181.8 Hz, although most
manuals say 1.19318 MHz, which, because truncating more digits, also
correct. But 1193180 Hz isn't. If you're trying to count the time
correctly, you should better use 1193182 Hz if staying in integers.

-- 
Vojtech Pavlik
SuSE Labs

  reply	other threads:[~2002-09-10  6:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-09 23:14 Rolf Fokkens
2002-09-10  6:09 ` Vojtech Pavlik [this message]
2002-09-10  6:37   ` Rolf Fokkens
2002-09-10  6:48     ` Vojtech Pavlik
2002-09-11 22:36     ` Horst von Brand
2002-09-11 22:56       ` george anzinger
2002-09-12  6:27         ` Vojtech Pavlik
2002-09-12  6:23       ` Vojtech Pavlik

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=20020910080941.A6298@ucw.cz \
    --to=vojtech@suse.cz \
    --cc=fokkensr@fokkensr.vertis.nl \
    --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

all inboxes | Powered by JetHome®