Re: test time-warps [was: Re: 2.6.14-rt13]
From: Steven Rostedt
Date: Tue Nov 22 2005 - 13:23:12 EST
On Tue, 22 Nov 2005, Christopher Friesen wrote:
> Fernando Lopez-Lezcano wrote:
>
> >>Basically if there is an observable and provable warp in the TSC output
> >>then it must not be used for any purpose that is not strictly
> >>per-CPU-ified (such as userspace threads bound to a single CPU, and the
> >>TSC never used between threads).
>
> > Apparently that's the case.
>
> What about periodically re-syncing the TSCs on the cpus? Are they
> writeable?
>
I believe you can reset them to zero, but I don't think you can set them
to anything else. I had to do something similar a few years ago, and I
don't have the specs in front of me, so this is coming straight from
memory.
Even if you could reset them, it would be very difficult to make all CPUs
have the same counter. Not to mention that this would also screw up all
timings elsewhere when the sync happens. Remember, this would have to work
not just on 2 cpus, but 4, 8 and beyond.
-- Steve
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/