Messages in this thread | | | Date | Wed, 03 Apr 2013 10:12:33 +0800 | From | Alex Shi <> | Subject | Re: [patch v6 03/21] sched: only count runnable avg on cfs_rq's nr_running |
| |
On 04/03/2013 09:23 AM, Paul Turner wrote: > Nack: > Vincent is correct, rq->avg is supposed to be the average time that an > rq is runnable; this includes (for example) SCHED_RT. > > It's intended to be more useful as a hint towards something like a > power governor which wants to know how busy the CPU is in general.
Thanks PJT&Vincent. agree with your thought. > >> On the other side, periodic LB balance on combined the cfs/rt load, but >> removed the RT utilisation in cpu_power. > > This I don't quite understand; these inputs are already time scaled (by decay). > > Stated alternatively, what you want is: > "average load" / "available power", which is: > (rq->cfs.runnable_load_avg + rq->cfs.blocked_load_avg) / (cpu power > scaled for rt)
Right. understand,
-- Thanks Alex
| |