Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: TSC clock going backwards on suspend/resume

ad%NetBSD.org@localhost said:
> > It is not explained what the "drift" and "skew" are about,
> It's implied by the words used. It could use a comment block. Skew is
> an observed offset between CPUs

OK, I believe I understand the code now... It could be noted that
it is the difference for each AP relative to the BP, sampled
during the *sync* process.

> Drift is the process of the offset changing over time.

The "over time" is a bit dubious here afais -- it is taken
only once, over a random interval and not weighted. So I think
it is only suitable to detect spontaneous misbehaviour, not to
measure a real clock frequency difference.
Does this happen in practice?

> > *sync* functions are usually called twice
> It's to elide major cache effects. The result from the first pass is
> discarded.

Would you mind if I put the reprtition into the functions
instead of the callers, and also add calls to the acpi

best regards

Forschungszentrum Juelich GmbH
52425 Juelich

Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr. Harald Bolt,
Dr. Sebastian M. Schmidt

Home | Main Index | Thread Index | Old Index