Linux IA64 platform development
 help / color / mirror / Atom feed
From: john stultz <johnstul@us.ibm.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [PATCH] minor cyclone cleanup
Date: Thu, 29 Jul 2004 18:37:51 +0000	[thread overview]
Message-ID: <1091126270.1388.622.camel@cog.beaverton.ibm.com> (raw)
In-Reply-To: <200407291054.05720.bjorn.helgaas@hp.com>

On Thu, 2004-07-29 at 10:13, Bjorn Helgaas wrote:
> On Thursday 29 July 2004 11:02 am, john stultz wrote:
> > Stay tuned! As soon as I finish reworking the NTP code bI'll be mailing
> > out code. 
> 
> Ah, an NTP expert :-)  

Ha! Hardly. Although after looking at the kernel code, I'm starting to
wonder if anyone was ever. And even if I learn a thing or two about the
topic, I'm sure to disavow all knowledge for fear of being pigeon-holed
for the rest of my life ;)

> What do you think about adding an RTC driver
> to NTP?  On our boxes (and I suspect many others), the system clock
> is driven by  the interval timer.  But the RTC is much more accurate,
> so it'd be nice if NTP knew how to use it.

With my re-work, the system clock is driven from a time-source, not the
interval timer. That time-source is the only semi-arch-specific bit in
the code, so it can be the ITC, the cyclone counter, HPET, or even the
RTC. Its not all that different then ia64's time_interpolator
infrastructure, just cleaned up and simplified a bit. 

> The RTC is terribly slow and has low resolution, but in the absence of
> anything better, it'd be nice if we could use it.

Indeed, using the RTC for gettimeofday and friends would be quite
painful, and almost so low res as to be worthless, so I doubt you'd
really want to use it. 

> Is this possible?  Feasible?  I know the NTP guys would probably
> laugh us out of the room, but not everybody has a fancy clock
> attached to their box.

Another idea would be to make a userspace daemon who would read the RTC
and use the kernel's adjtimex() syscall to manipulate time. This would
be just like the userspace NTP daemon, only using the RTC instead of a
timeserver. Not having sub-second resolution would mean it would have to
be conservative and take quite some time to sync up, but it would be
possible. 

Whats wrong with using regular NTP, btw?

thanks
-john


  parent reply	other threads:[~2004-07-29 18:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-29 16:54 [PATCH] minor cyclone cleanup Bjorn Helgaas
2004-07-29 17:02 ` john stultz
2004-07-29 17:13 ` Bjorn Helgaas
2004-07-29 18:37 ` john stultz [this message]
2004-07-29 18:46 ` Bjorn Helgaas

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=1091126270.1388.622.camel@cog.beaverton.ibm.com \
    --to=johnstul@us.ibm.com \
    --cc=linux-ia64@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