Re: [PATCH] x86: set_cyc2ns_scale() remove tsc_now and ns_now

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andi Kleen
Date: Friday, April 11, 2008 - 1:06 am

On Fri, Apr 11, 2008 at 09:55:54AM +0200, Ingo Molnar wrote:

Actually there millions of non constant freq TSC CPUs shipped each
quarter ... 


But you still get scheduling hickups even with the sanity check. If the 
scheduler depends on a smooth time that is not good and my (admittedly much less 
than yours) understanding of CFS is that it relies on that. Especially ondemand 
can cause quite a lot of cpufreq changes on some workloads.


At some point you have to generate an offset to something and that
offset must be different for different frequencies, otherwise
you get large systematic errors

(<imagine complicated mathematical proof why this is so, but it should
be fairly obvious>)

-Andi

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86: set_cyc2ns_scale() remove tsc_now and ns_now, Karsten Wiese, (Thu Apr 10, 2:31 pm)
Re: [PATCH] x86: set_cyc2ns_scale() remove tsc_now and ns_now, Andi Kleen, (Fri Apr 11, 1:06 am)
Re: [PATCH] x86: set_cyc2ns_scale() remove tsc_now and ns_now, Guillaume Chazarain, (Fri Apr 11, 1:25 am)