Re: sched: ARM: arch_scale_freq_power

2011-10-12 Thread Peter Zijlstra
On Tue, 2011-10-11 at 18:03 +0200, Vincent Guittot wrote: > > How do you know the task is 'small' ? > > > > I want to use cpufreq to be notified that we have a large/small cpu > load. If we have several tasks but the cpu uses the lowest frequency, > it "should" mean that we have small tasks that a

Re: sched: ARM: arch_scale_freq_power

2011-10-11 Thread Vincent Guittot
On 11 October 2011 12:27, Peter Zijlstra wrote: > On Tue, 2011-10-11 at 11:40 +0200, Vincent Guittot wrote: >> On 11 October 2011 11:13, Peter Zijlstra wrote: >> > On Tue, 2011-10-11 at 10:51 +0200, Vincent Guittot wrote: >> >> I have several goals. The 1st one is that I need to put more load on

Re: sched: ARM: arch_scale_freq_power

2011-10-11 Thread Peter Zijlstra
On Tue, 2011-10-11 at 11:40 +0200, Vincent Guittot wrote: > On 11 October 2011 11:13, Peter Zijlstra wrote: > > On Tue, 2011-10-11 at 10:51 +0200, Vincent Guittot wrote: > >> I have several goals. The 1st one is that I need to put more load on > >> some cpus when I have packages with different cpu

Re: sched: ARM: arch_scale_freq_power

2011-10-11 Thread Peter Zijlstra
On Tue, 2011-10-11 at 10:51 +0200, Vincent Guittot wrote: > I have several goals. The 1st one is that I need to put more load on > some cpus when I have packages with different cpu frequency. That should be rather easy. > I also study if I can follow the real cpu frequency but it seems to be > no

Re: sched: ARM: arch_scale_freq_power

2011-10-11 Thread Peter Zijlstra
On Tue, 2011-10-11 at 12:46 +0530, Amit Kucheria wrote: > Adding Peter to the discussion.. Right, CCing the folks who actually wrote the code you're asking questions about always helps ;-) > On Thu, Oct 6, 2011 at 5:06 PM, Vincent Guittot > wrote: > > I work to link the cpu_power of ARM cores to

Re: sched: ARM: arch_scale_freq_power

2011-10-11 Thread Peter Zijlstra
On Tue, 2011-10-11 at 15:08 +0530, Amit Kucheria wrote: > > That shouldn't be done using cpu_power, we have sched_smt_power_savings > > and sched_mc_power_savings for stuff like that. > > AFAICT, sched_mc assume all cores to have the same capacity - which is > certainly true of the x86 architectu

Re: sched: ARM: arch_scale_freq_power

2011-10-11 Thread Vincent Guittot
On 11 October 2011 11:13, Peter Zijlstra wrote: > On Tue, 2011-10-11 at 10:51 +0200, Vincent Guittot wrote: >> I have several goals. The 1st one is that I need to put more load on >> some cpus when I have packages with different cpu frequency. > > That should be rather easy. > I agree, I was main

Re: sched: ARM: arch_scale_freq_power

2011-10-11 Thread Amit Kucheria
On Tue, Oct 11, 2011 at 2:43 PM, Peter Zijlstra wrote: > On Tue, 2011-10-11 at 10:51 +0200, Vincent Guittot wrote: >> I have several goals. The 1st one is that I need to put more load on >> some cpus when I have packages with different cpu frequency. > > That should be rather easy. > >> I also stu

Re: sched: ARM: arch_scale_freq_power

2011-10-11 Thread Vincent Guittot
On 11 October 2011 09:57, Peter Zijlstra wrote: > On Tue, 2011-10-11 at 12:46 +0530, Amit Kucheria wrote: >> Adding Peter to the discussion.. > > Right, CCing the folks who actually wrote the code you're asking > questions about always helps ;-) > >> On Thu, Oct 6, 2011 at 5:06 PM, Vincent Guittot

Re: sched: ARM: arch_scale_freq_power

2011-10-11 Thread Amit Kucheria
Adding Peter to the discussion.. On Thu, Oct 6, 2011 at 5:06 PM, Vincent Guittot wrote: > I work to link the cpu_power of ARM cores to their frequency by using > arch_scale_freq_power. It's explained in the kernel that cpu_power is > used to distribute load on cpus and a cpu with more cpu_power w