On Mon, 2008-06-02 at 18:18 +0530, Ankita Garg wrote:
Thing is, things runtime should be calculated by using per cpu deltas.
You take a stamp when you get scheduled on the cpu and another one when
you stop running, then the delta is added to runtime.
This is always on the same cpu - when you get migrated you're stopped
and re-scheduled so that should work out nicely.
So in that sense it shouldn't matter that the rq->clock values can get
skewed between cpus.
So I'm still a little puzzled by your observations; though it could be
that the schedstat stuff got broken - I've never really looked too
closely at it.
--