[LAD] [Jack-Devel] How is the TSC calibration accuracy on dual core 2 computers? (And what about HPET?)

Jussi Laako jussi at sonarnerd.net
Tue Apr 28 20:25:58 UTC 2009

Kjetil S. Matheussen wrote:
> Paul Davis wrote:
>> the cycle counter on intel systems is (was?) guaranteed to run exactly
>> in sync. AMD had a problem a few generations back where they neglected
>> to provide this feature and it caused havoc for several different
>> categories of users. they corrected their error very quickly and i
>> believe that all their chipsets will now also always have precisely
>> A synced cycle counter.
> Thanks.

I would just warn that, AFAIK, on some CPUs frequency scaling affects
TSC while not on some others... And the frequency of CPU clock is not
necessarily very precise and can vary depending on hardware/temperature/etc.

Some hardwares may employ spread spectrum on the clock - ie. generating
jitter on the clock to lower EMI.

Best option for timing is usually to use hardware intended for timing.
Kernel can use HPET as clock source with "clocksource=hpet" parameter.

	- Jussi

More information about the Linux-audio-dev mailing list