[lkml]   [2007]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [patch 0/9] x86_64: reliable TSC-based gettimeofday
    On Thursday 01 February 2007 10:59, wrote:

    > Inter-CPU monotonicity can not, however, be guaranteed in a vsyscall, so
    > vsyscall is not used by default.

    Only for unsynchronized machines I hope

    > Still, the syscall version of gettimeofday is
    > a lot faster using the TSC approximation instead of other hardware timers.

    Yes that makes sense.

    The big strategic problem is how to marry your patchkit to John Stultz's
    clocksources work which is also competing for merge. Any thoughts on that?

    >When strict inter-CPU monotonicity is not needed, the vsyscall version of
    >gettimeofday may be forced using the "nomonotonic" command line parameter.
    >gettimeofday()'s monotonicity is guaranteed on a single CPU even with the very
    >fast vsyscall version. Across CPUs, the vsyscall version of gettimeofday is
    >not guaranteed to be monotonic, but it should be pretty close. Currently, we
    >get errors of tens/hundreds of microseconds.

    I think a better way to do this would be to define a new CLOCK_THREAD_MONOTONOUS
    (or better name) timer for clock_gettime().

    [and my currently stalled vdso patches that implement clock_gettime
    as a vsyscall]

    Then also an application could easily use it with LD_PRELOAD

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-02-01 12:41    [W:0.021 / U:3.264 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site