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

From: Jes Sorensen <jes_at_wildopensource.com>
Date: 2003-03-20 08:39:31

I was wondering what people think about providing the information of
/proc/sal/itc_drift as an AUX vector?

The problem is that on some NUMA boxen (such as the SGI boxes), the ITC
isn't synchronized across nodes and we can't rely on ar.itc in userland
for implementing the high-precision timing. I believe the IBM NUMA-Q
team has a similar problem that could be solved in a similar way on

Instead one can switch to using gettimeofday() for the timing, which
with the new fast syscalls should be quite pleasant.

I have a patch which implements this for glibc-2.2 (will do 2.3 later),
however what I don't like about it is that one ends up opening and
reading /proc/sal/itc_drift in every single binary executed. To avoid
the overhead of this it seems a good idea to me to provide this
information via an AUX vector.

If anybody is interested in the glibc patch, feel free to grab it from
For now it's a test patch, though it does seem to behave as expected.


Received on Wed Mar 19 13:39:42 2003

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