From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754958AbbCXQWZ (ORCPT ); Tue, 24 Mar 2015 12:22:25 -0400 Received: from service87.mimecast.com ([91.220.42.44]:57100 "EHLO service87.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754336AbbCXQWW convert rfc822-to-8bit (ORCPT ); Tue, 24 Mar 2015 12:22:22 -0400 Message-ID: <55118F3B.1040203@arm.com> Date: Tue, 24 Mar 2015 16:22:19 +0000 From: Dietmar Eggemann User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Peter Zijlstra , Morten Rasmussen CC: "mingo@redhat.com" , "vincent.guittot@linaro.org" , "yuyang.du@intel.com" , "preeti@linux.vnet.ibm.com" , "mturquette@linaro.org" , "nico@linaro.org" , "rjw@rjwysocki.net" , Juri Lelli , "linux-kernel@vger.kernel.org" Subject: Re: [RFCv3 PATCH 38/48] sched: Infrastructure to query if load balancing is energy-aware References: <1423074685-6336-1-git-send-email-morten.rasmussen@arm.com> <1423074685-6336-39-git-send-email-morten.rasmussen@arm.com> <20150324135613.GR23123@twins.programming.kicks-ass.net> In-Reply-To: <20150324135613.GR23123@twins.programming.kicks-ass.net> X-OriginalArrivalTime: 24 Mar 2015 16:22:19.0143 (UTC) FILETIME=[B3108170:01D0664E] X-MC-Unique: 115032416222001901 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/03/15 13:56, Peter Zijlstra wrote: > On Wed, Feb 04, 2015 at 06:31:15PM +0000, Morten Rasmussen wrote: >> From: Dietmar Eggemann >> >> Energy-aware load balancing should only happen if the ENERGY_AWARE feature >> is turned on and the sched domain on which the load balancing is performed >> on contains energy data. >> There is also a need during a load balance action to be able to query if we >> should continue to load balance energy-aware or if we reached the tipping >> point which forces us to fall back to the conventional load balancing >> functionality. > >> @@ -7348,6 +7349,7 @@ static int load_balance(int this_cpu, struct rq *this_rq, >> .cpus = cpus, >> .fbq_type = all, >> .tasks = LIST_HEAD_INIT(env.tasks), >> + .use_ea = (energy_aware() && sd->groups->sge) ? true : false, > > fwiw, no tipping point in that logic. Wanted to explain why I added lv_env::use_ea. But mentioning the tipping point problem here seems to be a little far-fetched. Will get rid of the second sentence in the header.