Messages in this thread |  | | | Subject | Re: Stolen and degraded time and schedulers | | From | Daniel Walker <> | | Date | Wed, 14 Mar 2007 13:33:58 -0700 |
| |
On Wed, 2007-03-14 at 12:44 -0700, Jeremy Fitzhardinge wrote: > Daniel Walker wrote: > > sched_clock is used to bank real time against some specific states > > inside the scheduler, and no it doesn't _just_ measure a processes > > executing time. > > > > Could you point these places out? All uses of sched_clock() that I > could see in kernel/sched.c seemed to be related to working out how > long > something spent executing, either in the scheduler proper, or > benchmarking cache characteristics.
For interactive tasks (basic scheduling) the execution time, and sleep time need to be measured. It's also used for some posix cpu timers (sched_ns) , and it used for migration thread initialization. I'm sure it's used for a variety of out-of-tree random timing as well..
Daniel
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |