RE: [PATCH] raise tsc clocksource rating

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>, Jeremy Fitzhardinge <jeremy@...>
Cc: Zachary Amsden <zach@...>, Glauber de Oliveira Costa <gcosta@...>, <linux-kernel@...>, <tglx@...>, <rusty@...>, Avi Kivity <avi@...>, <kvm-devel@...>, Glauber de Oliveira Costa <glauber@...>, Dan Hecht <dhecht@...>, Garrett Smith <garrett@...>, <ian.pratt@...>
Date: Monday, October 29, 2007 - 8:45 pm

> > Sigh, I don't really want to have this fight again.

Actually, it is possible, even for NUMA systems with CPUs running off
completely different oscillators, and in the presence of CPU frequency
changes, power management, and even in the presence of thermal
throttling (though the latter introduces temporary inaccuracies it
doesn't affect monotonicity or rate).

Take a look at the Xen code to see how each physical CPU is
independently calibrated on an ongoing basis, how movement of VCPUs
between physical CPUs is tracked, and how shared variables are used to
ensure montonicity if a guest requires it. 

The fixed-rate TSCs on newer CPUs make some of this stuff easier, but
you still need to cope with different source oscillators and some power
management states.
 
Ian

Xen
linux-kernel"
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RE: [PATCH] raise tsc clocksource rating, Ian Pratt, (Mon Oct 29, 8:45 pm)
Re: [PATCH] raise tsc clocksource rating, Ingo Molnar, (Tue Oct 30, 3:19 am)