Re: Timestamp counters on SMP

From: Boris Okun (bokun@home.com)
Date: Tue Mar 28 2000 - 11:38:02 EST


Linux tries to sync TSC's in synchronize_tsc_bp() in
arch/i386/kernel/smpboot.c, but there is still a possibility of some
offset,
see comments there. In general, I don't think you should count on TSC's
being syncronized at all - some people have computers with TSC's of
different rates (me included).

Boris

Krisztian Flautner wrote:
>
> Hello,
>
> I would like to know whether (and how) the timestamp counters
> of multiple CPUs in a multiprocessor machine are synchronized.
> Can I rely on the fact that if I check the TSC value on
> cpu 0 and then on cpu 1, then the second number will be
> larger than the first?
>
> Do the counters drift or do they stay in synch once synchronized?
>
> Thanks, -- Kris

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:22 EST