Re: [Linux-ia64] provide /proc/sal/itc_drift through AUX?

From: Jes Sorensen <>
Date: 2003-03-20 13:06:20
>>>>> "David" == David Mosberger <> writes:

David> Why do you need to export it if you just use a light-weight
David> gettimeofday()?  The light-weight syscall can readily access
David> the ITC-drift info via kernel memory.

Let me get sure I understand you right here, you are suggesting I add
a new syscall to provide the info currently found in
/proc/sal/itc_drift? Right now it's just returning true/false (1/0) as
to whether the ITC drifts or not.

The reason I was thinking about using the AUX was that it's still
faster than making a system call and the dynamic linker will always be
calling it once. It doesn't make a big difference of course whether we
do it one way or another.

David> BTW: I think someone should explore using an NTP-like approach
David> to keep ITC drift small enough that it's still usable for
David> ITC-based interpolation.  Granted, this assumes that hw drifts
David> are reasonably small and you'd still need to worry about
David> different clock-frequencies, but I suspect that in practice,
David> this would work extremely well.  It would be nice because it
David> would be much faster than an HPET-based approach, would work on
David> all ia64 machines, and would provide better resolution.
David> Furthermore, we already have all the logic in the
David> time-interpolation to ensure that there is never an observable
David> time discontinuity.

I think this would work if it wasn't for the different clock frequency
problem. What real life ITC drifts are like I must admit I have no

Pardon my ignorance, what are you referring to by HPET? I am sure it's
something obvious and I know I have heard it before, but it's just not
ringing a bell here right now.

Received on Wed Mar 19 18:06:26 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:12 EST