Re: [PATCH] virtual sched_clock() for s390
From: Jeremy Fitzhardinge
Date: Fri Jul 20 2007 - 02:04:35 EST
Paul Mackerras wrote:
> Do you think this makes the PURR more useful for CFS, or less? To me
> it looks like this would mean that CFS can make a more equitable
> distribution of CPU time if, for example, you had 3 runnable tasks on
> a 2-core x dual-threaded machine (4 virtual CPUs).
>
Sounds reasonable to me. I've proposed in the past that sched_clock
should be scaled by the cpufreq frequency to achieve the same effect
(ie, measure the actual number of cpu cycles that are really available
to tasks).
But more specifically, what you've described is exactly analogous to
hypervisor stolen time, since one thread steals time from the other.
> BTW, what does "time spent running during sleep" mean? Does it mean
> "time that other tasks are running while this task is sleeping"?
>
That's how I interpreted it. You're only credited for sleeping if
someone else wanted the CPU in the meantime.
J
-
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/