Re: [PATCH v3 15/22] sched: log the cpu utilization at rq

2013-01-15 Thread Alex Shi
On 01/14/2013 09:59 PM, Morten Rasmussen wrote: > On Fri, Jan 11, 2013 at 03:30:30AM +, Alex Shi wrote: >> On 01/10/2013 07:40 PM, Morten Rasmussen wrote: > #undef P64 > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index ee015b8..7bfbd69 100644 > --- a/kernel/sched/

Re: [PATCH v3 15/22] sched: log the cpu utilization at rq

2013-01-14 Thread Morten Rasmussen
On Fri, Jan 11, 2013 at 03:30:30AM +, Alex Shi wrote: > On 01/10/2013 07:40 PM, Morten Rasmussen wrote: > >> > #undef P64 > >> > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > >> > index ee015b8..7bfbd69 100644 > >> > --- a/kernel/sched/fair.c > >> > +++ b/kernel/sched/fair.c > >> >

Re: [PATCH v3 15/22] sched: log the cpu utilization at rq

2013-01-10 Thread Alex Shi
On 01/10/2013 07:40 PM, Morten Rasmussen wrote: >> > #undef P64 >> > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c >> > index ee015b8..7bfbd69 100644 >> > --- a/kernel/sched/fair.c >> > +++ b/kernel/sched/fair.c >> > @@ -1495,8 +1495,12 @@ static void update_cfs_rq_blocked_load(struct >>

Re: [PATCH v3 15/22] sched: log the cpu utilization at rq

2013-01-10 Thread Morten Rasmussen
On Sat, Jan 05, 2013 at 08:37:44AM +, Alex Shi wrote: > The cpu's utilization is to measure how busy is the cpu. > util = cpu_rq(cpu)->avg.runnable_avg_sum > / cpu_rq(cpu)->avg.runnable_avg_period; > > Since the util is no more than 1, we use its percentage value in lat

[PATCH v3 15/22] sched: log the cpu utilization at rq

2013-01-05 Thread Alex Shi
The cpu's utilization is to measure how busy is the cpu. util = cpu_rq(cpu)->avg.runnable_avg_sum / cpu_rq(cpu)->avg.runnable_avg_period; Since the util is no more than 1, we use its percentage value in later caculations. And set the the FULL_UTIL as 99%. In later power aw