Re: [patch v7 0/21] sched: power aware scheduling

2013-05-19 Thread Preeti U Murthy
Hi Alex, On 05/20/2013 06:31 AM, Alex Shi wrote: > >> Which are the workloads where 'powersaving' mode hurts workload >> performance measurably? >> >> I ran ebizzy on a 2 socket, 16 core, SMT 4 Power machine. > > Is this a 2 * 16 * 4 LCPUs PowerPC machine? This is a 2 * 8 * 4 LCPUs Pow

Re: [patch v7 0/21] sched: power aware scheduling

2013-05-19 Thread Alex Shi
> Which are the workloads where 'powersaving' mode hurts workload > performance measurably? > > I ran ebizzy on a 2 socket, 16 core, SMT 4 Power machine. Is this a 2 * 16 * 4 LCPUs PowerPC machine? > The power efficiency drops significantly with the powersaving policy of > this patch,ov

Re: [patch v7 0/21] sched: power aware scheduling

2013-05-17 Thread Preeti U Murthy
On 04/30/2013 03:26 PM, Mike Galbraith wrote: > On Tue, 2013-04-30 at 11:49 +0200, Mike Galbraith wrote: >> On Tue, 2013-04-30 at 11:35 +0200, Mike Galbraith wrote: >>> On Tue, 2013-04-30 at 10:41 +0200, Ingo Molnar wrote: >> Which are the workloads where 'powersaving' mode hurts workload

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-30 Thread Mike Galbraith
On Tue, 2013-04-30 at 11:49 +0200, Mike Galbraith wrote: > On Tue, 2013-04-30 at 11:35 +0200, Mike Galbraith wrote: > > On Tue, 2013-04-30 at 10:41 +0200, Ingo Molnar wrote: > > > > Which are the workloads where 'powersaving' mode hurts workload > > > performance measurably? > > > > Well, it'

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-30 Thread Mike Galbraith
On Tue, 2013-04-30 at 11:35 +0200, Mike Galbraith wrote: > On Tue, 2013-04-30 at 10:41 +0200, Ingo Molnar wrote: > > Which are the workloads where 'powersaving' mode hurts workload > > performance measurably? > > Well, it'll lose throughput any time there's parallel execution > potential but i

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-30 Thread Mike Galbraith
On Tue, 2013-04-30 at 10:41 +0200, Ingo Molnar wrote: > * Mike Galbraith wrote: > > > On Tue, 2013-04-30 at 07:16 +0200, Mike Galbraith wrote: > > > > > Well now, that's not exactly what I expected to see for AIM7 compute. > > > Filesystem is munching cycles otherwise used for compute when load

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-30 Thread Ingo Molnar
* Mike Galbraith wrote: > On Tue, 2013-04-30 at 07:16 +0200, Mike Galbraith wrote: > > > Well now, that's not exactly what I expected to see for AIM7 compute. > > Filesystem is munching cycles otherwise used for compute when load is > > spread across the whole box vs consolidated. > > So AIM7

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-30 Thread Mike Galbraith
On Tue, 2013-04-30 at 07:16 +0200, Mike Galbraith wrote: > Well now, that's not exactly what I expected to see for AIM7 compute. > Filesystem is munching cycles otherwise used for compute when load is > spread across the whole box vs consolidated. So AIM7 compute performance delta boils down to:

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-29 Thread Mike Galbraith
On Fri, 2013-04-26 at 17:11 +0200, Mike Galbraith wrote: > On Wed, 2013-04-17 at 17:53 -0400, Len Brown wrote: > > On 04/12/2013 12:48 PM, Mike Galbraith wrote: > > > On Fri, 2013-04-12 at 18:23 +0200, Borislav Petkov wrote: > > >> On Fri, Apr 12, 2013 at 04:46:50PM +0800, Alex Shi wrote: > > >>

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-26 Thread Mike Galbraith
On Wed, 2013-04-17 at 17:53 -0400, Len Brown wrote: > On 04/12/2013 12:48 PM, Mike Galbraith wrote: > > On Fri, 2013-04-12 at 18:23 +0200, Borislav Petkov wrote: > >> On Fri, Apr 12, 2013 at 04:46:50PM +0800, Alex Shi wrote: > >>> Thanks a lot for comments, Len! > >> > >> AFAICT, you kinda forgot

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-17 Thread Mike Galbraith
On Wed, 2013-04-17 at 17:53 -0400, Len Brown wrote: > On 04/12/2013 12:48 PM, Mike Galbraith wrote: > > On Fri, 2013-04-12 at 18:23 +0200, Borislav Petkov wrote: > >> On Fri, Apr 12, 2013 at 04:46:50PM +0800, Alex Shi wrote: > >>> Thanks a lot for comments, Len! > >> > >> AFAICT, you kinda forgot

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-17 Thread Len Brown
On 04/12/2013 12:48 PM, Mike Galbraith wrote: > On Fri, 2013-04-12 at 18:23 +0200, Borislav Petkov wrote: >> On Fri, Apr 12, 2013 at 04:46:50PM +0800, Alex Shi wrote: >>> Thanks a lot for comments, Len! >> >> AFAICT, you kinda forgot to answer his most important question: >> >>> These numbers sugg

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-17 Thread Borislav Petkov
On Wed, Apr 17, 2013 at 09:18:28AM +0800, Alex Shi wrote: > Sure. Currently if the whole socket get into sleep, but the memory on > the node is still accessed. the cpu socket still spend some power on > 'uncore' part. So the further step is reduce the remote memory access > to save more power, and

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-16 Thread Alex Shi
On 04/16/2013 06:24 PM, Borislav Petkov wrote: > On Tue, Apr 16, 2013 at 08:22:19AM +0800, Alex Shi wrote: >> testing has a little variation, but the power data is quite accurate. >> I may change to packing tasks per cpu capacity than current cpu >> weight. that should has better power efficient va

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-16 Thread Borislav Petkov
On Tue, Apr 16, 2013 at 08:22:19AM +0800, Alex Shi wrote: > testing has a little variation, but the power data is quite accurate. > I may change to packing tasks per cpu capacity than current cpu > weight. that should has better power efficient value. Yeah, this probably needs careful measuring -

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-15 Thread Alex Shi
On 04/16/2013 07:12 AM, Borislav Petkov wrote: > On Mon, Apr 15, 2013 at 09:50:22PM +0800, Alex Shi wrote: >> For fairness and total threads consideration, powersaving cost quit >> similar energy on kbuild benchmark, and even better. >> >> 17348.850 27400.458 159

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-15 Thread Borislav Petkov
On Mon, Apr 15, 2013 at 09:50:22PM +0800, Alex Shi wrote: > For fairness and total threads consideration, powersaving cost quit > similar energy on kbuild benchmark, and even better. > > 17348.850 27400.458 15973.776 > 13737.493 18487.24

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-15 Thread Alex Shi
On 04/15/2013 05:52 PM, Borislav Petkov wrote: > On Mon, Apr 15, 2013 at 02:16:55PM +0800, Alex Shi wrote: >> And I need to say again. the powersaving policy just effect on system >> under utilisation. when system goes busy, it won't has effect. >> performance oriented policy will take over balance

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-15 Thread Borislav Petkov
On Mon, Apr 15, 2013 at 02:16:55PM +0800, Alex Shi wrote: > And I need to say again. the powersaving policy just effect on system > under utilisation. when system goes busy, it won't has effect. > performance oriented policy will take over balance behaviour. And AFACU your patches, you do this aut

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-14 Thread Alex Shi
On 04/15/2013 02:04 PM, Alex Shi wrote: > On 04/14/2013 11:59 PM, Borislav Petkov wrote: >> > On Sun, Apr 14, 2013 at 09:28:50AM +0800, Alex Shi wrote: >>> >> Even some scenario the total energy cost more, at least the avg watts >>> >> dropped in that scenarios. >> > >> > Ok, what's wrong with x =

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-14 Thread Alex Shi
On 04/14/2013 11:59 PM, Borislav Petkov wrote: > On Sun, Apr 14, 2013 at 09:28:50AM +0800, Alex Shi wrote: >> Even some scenario the total energy cost more, at least the avg watts >> dropped in that scenarios. > > Ok, what's wrong with x = 32 then? So basically if you're looking at > avg watts, yo

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-14 Thread Borislav Petkov
On Sun, Apr 14, 2013 at 09:28:50AM +0800, Alex Shi wrote: > Even some scenario the total energy cost more, at least the avg watts > dropped in that scenarios. Ok, what's wrong with x = 32 then? So basically if you're looking at avg watts, you don't want to have more than 16 threads, otherwise powe

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-13 Thread Alex Shi
On 04/14/2013 09:28 AM, Alex Shi wrote: >> > These numbers suggest that this patch series simultaneously >> > has a negative impact on performance and energy required >> > to retire the workload. Why do it? > Even some scenario the total energy cost more, at least the avg watts > dr

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-13 Thread Alex Shi
On 04/13/2013 01:12 AM, Borislav Petkov wrote: > On Fri, Apr 12, 2013 at 06:48:31PM +0200, Mike Galbraith wrote: >> (just saying there are other aspects besides joules in there) > > Yeah, but we don't allow any regressions in sched*, do we? Can we pick > only the good cherries? :-) > Thanks for

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-13 Thread Alex Shi
On 04/13/2013 12:23 AM, Borislav Petkov wrote: > On Fri, Apr 12, 2013 at 04:46:50PM +0800, Alex Shi wrote: >> > Thanks a lot for comments, Len! > AFAICT, you kinda forgot to answer his most important question: > >> > These numbers suggest that this patch series simultaneously >> > has a negative i

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-12 Thread Borislav Petkov
On Fri, Apr 12, 2013 at 06:48:31PM +0200, Mike Galbraith wrote: > (just saying there are other aspects besides joules in there) Yeah, but we don't allow any regressions in sched*, do we? Can we pick only the good cherries? :-) -- Regards/Gruss, Boris. Sent from a fat crate under my desk. Fo

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-12 Thread Mike Galbraith
On Fri, 2013-04-12 at 18:23 +0200, Borislav Petkov wrote: > On Fri, Apr 12, 2013 at 04:46:50PM +0800, Alex Shi wrote: > > Thanks a lot for comments, Len! > > AFAICT, you kinda forgot to answer his most important question: > > > These numbers suggest that this patch series simultaneously > > has

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-12 Thread Borislav Petkov
On Fri, Apr 12, 2013 at 04:46:50PM +0800, Alex Shi wrote: > Thanks a lot for comments, Len! AFAICT, you kinda forgot to answer his most important question: > These numbers suggest that this patch series simultaneously > has a negative impact on performance and energy required > to retire the work

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-12 Thread Alex Shi
On 04/12/2013 05:02 AM, Len Brown wrote: >> > x = 16 299.915 /43 77 259.127 /58 66 > Are you sure that powersave mode ran in 43 seconds > when performance mode ran in 58 seconds? Thanks a lot for comments, Len! Will do more testing by your tool fspin. :) powersaving using less time wh

Re: [patch v7 0/21] sched: power aware scheduling

2013-04-11 Thread Len Brown
On 04/03/2013 10:00 PM, Alex Shi wrote: > As mentioned in the power aware scheduling proposal, Power aware > scheduling has 2 assumptions: > 1, race to idle is helpful for power saving > 2, less active sched groups will reduce cpu power consumption linux...@vger.kernel.org should be cc: on Linux

[patch v7 0/21] sched: power aware scheduling

2013-04-03 Thread Alex Shi
Many many thanks for Namhyung, PJT, Vicent and Preeti's comments and suggestion! This version included the following changes: a, remove the patch 3th to recover the runnable load avg recording on rt b, check avg_idle for each cpu wakeup burst not only the waking CPU. c, fix select_task_rq_fair retu