Re: [PATCH v2 13/14] provide a version of cpuusage statistics insidecpu cgroup

From: Glauber Costa
Date: Wed Nov 09 2011 - 11:52:34 EST


On 11/09/2011 12:18 PM, Andrew Wagin wrote:
And look at cfs_rq->prev_sum_exec_runtime, probably it is not used too.
Usage of cfs_rq->sum_exec_runtime looks strange.

No, it is not.
se->sum_exec_runtime is a per-se measure. It follows the task group as it moves from rq to rq. cfs->rq->sum_exec_runtime (and it's rt counterpart) is a measurement of accumulated runtime of all tasks that ever passed through this rq.
--
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/