Re: [PATCH v10 07/11] sched: get CPU's usage statistic

2015-03-31 Thread Xunlei Pang
Vincent, On 27 March 2015 at 23:37, Vincent Guittot wrote: > On 27 March 2015 at 16:12, Xunlei Pang wrote: >>> +static int get_cpu_usage(int cpu) >>> +{ >>> + unsigned long usage = cpu_rq(cpu)->cfs.utilization_load_avg; >>> + unsigned long capacity = capacity_orig_of(cpu); >>> + >>> +

Re: [PATCH v10 07/11] sched: get CPU's usage statistic

2015-03-27 Thread Vincent Guittot
On 27 March 2015 at 16:12, Xunlei Pang wrote: > Hi Vincent, > > On 27 February 2015 at 23:54, Vincent Guittot > wrote: >> Monitor the usage level of each group of each sched_domain level. The usage >> is >> the portion of cpu_capacity_orig that is currently used on a CPU or group of >> CPUs. We

Re: [PATCH v10 07/11] sched: get CPU's usage statistic

2015-03-27 Thread Xunlei Pang
Hi Vincent, On 27 February 2015 at 23:54, Vincent Guittot wrote: > Monitor the usage level of each group of each sched_domain level. The usage is > the portion of cpu_capacity_orig that is currently used on a CPU or group of > CPUs. We use the utilization_load_avg to evaluate the usage level of e

Re: [PATCH v10 07/11] sched: get CPU's usage statistic

2015-03-03 Thread Vincent Guittot
On 3 March 2015 at 13:47, Dietmar Eggemann wrote: > On 27/02/15 15:54, Vincent Guittot wrote: >> Monitor the usage level of each group of each sched_domain level. The usage >> is >> the portion of cpu_capacity_orig that is currently used on a CPU or group of >> CPUs. We use the utilization_load_a

Re: [PATCH v10 07/11] sched: get CPU's usage statistic

2015-03-03 Thread Dietmar Eggemann
On 27/02/15 15:54, Vincent Guittot wrote: > Monitor the usage level of each group of each sched_domain level. The usage is > the portion of cpu_capacity_orig that is currently used on a CPU or group of > CPUs. We use the utilization_load_avg to evaluate the usage level of each > group. > > The uti