Re: [PATCH 0/2] sched: add trace event for per-entity tracking

From: Alex Shi
Date: Mon Jul 01 2013 - 04:07:44 EST


On 07/01/2013 03:10 PM, Lei Wen wrote:
> Thanks for the per-entity tracking feature, we could know the details of
> each task by its help.
> This patch add its trace support, so that we could quickly know the system
> status in a large time scale, like now we may get each runqueue's usage ratio by:
>
> cfs_rq's usage ratio = cfs_rq->runnable_load_avg/cfs_rq->load.weight
>

the direct usage ratio is rq.avg.runnable_avg_sum / rq.avg.runnable_avg_period.

one patch from obsolete power-scheduling could be reference for this:
git@xxxxxxxxxx:alexshi/power-scheduling.git power-scheduling