Re: [PATCH v7 5/7] sched: get CPU's usage statistic

2014-10-10 Thread Vincent Guittot
On 9 October 2014 17:12, Peter Zijlstra 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); >> >> + >> >> + if (usage >= SCHED_LOAD_SCALE) >> >> +

Re: [PATCH v7 5/7] sched: get CPU's usage statistic

2014-10-09 Thread Peter Zijlstra
On Thu, Oct 09, 2014 at 03:57:28PM +0200, Vincent Guittot wrote: > On 9 October 2014 13:36, Peter Zijlstra wrote: > > On Tue, Oct 07, 2014 at 02:13:35PM +0200, Vincent Guittot wrote: > >> Monitor the usage level of each group of each sched_domain level. The > >> usage is > >> the amount of cpu_ca

Re: [PATCH v7 5/7] sched: get CPU's usage statistic

2014-10-09 Thread Vincent Guittot
On 9 October 2014 13:36, Peter Zijlstra wrote: > On Tue, Oct 07, 2014 at 02:13:35PM +0200, Vincent Guittot wrote: >> Monitor the usage level of each group of each sched_domain level. The usage >> is >> the amount of cpu_capacity that is currently used on a CPU or group of CPUs. >> We use the util

Re: [PATCH v7 5/7] sched: get CPU's usage statistic

2014-10-09 Thread Peter Zijlstra
On Tue, Oct 07, 2014 at 02:13:35PM +0200, Vincent Guittot wrote: > Monitor the usage level of each group of each sched_domain level. The usage is > the amount of cpu_capacity that is currently used on a CPU or group of CPUs. > We use the utilization_load_avg to evaluate the usage level of each grou

[PATCH v7 5/7] sched: get CPU's usage statistic

2014-10-07 Thread Vincent Guittot
Monitor the usage level of each group of each sched_domain level. The usage is the amount of cpu_capacity 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 utilization_avg_contrib only takes into account the running tim