Received: by 10.192.165.148 with SMTP id m20csp407094imm; Wed, 25 Apr 2018 01:13:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpB9XG5yM3CFi8FrFPVehTAzSDt8a/7wdzns9eB9O7UdSjH+fvGWRwjCqrVNloHkVY5gXsj X-Received: by 2002:a17:902:b90c:: with SMTP id bf12-v6mr6804334plb.37.1524644005261; Wed, 25 Apr 2018 01:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524644005; cv=none; d=google.com; s=arc-20160816; b=TQvsfKOxfdYs3/0AfdW/vKY8ao/eUP7gEA3U4mMtGQr5mCH6GwI9HTjKjucFYCC2lf sS8IcoBnuXknkKO/Pex9g1v483b/zoEFk6VRAkDF121us0MovUOHgL3Y1IJSbhB5CHPM 68snLSttyw6olSpTcN1+tEr0BOr2gcYvnAA3SWQHCyAiIHusN8wuqE/uQ45yzzJ5Qbfm fC2kZSXYEcwlm4LcmblLcFlMPXCdhccAF3JLo2RtEBjBiz4OLpAkF49w8wGE0A+5WhcT abW3uuNVKovDn2aK/oLI9+62H6CdTiiGzRs10sLMaABcWxLBcq9u8lJ1fBTy6Eo2w24N /b9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=3diI2GQYcjI64rosoBUlslVTZ0rNlEO+TI+36tWEghc=; b=ptKGM3a8kQKUT/k7/34vYY3jYj+dQaAVEhKCZ0DCO6jfVHsGXXI7/ar7Hpi2bqZ+5d Mi7ckyuTT9oHfUysEEJxF6uOZSPbeHYCa8VU5Kc/fFFZlaa0PqfDaOugKUEWkVHxmiHK 2RABURikOoGmImioLEMa+PQl97x7qN4OXVi7ueby7R+TNjGLkVBh08Du10F7G2zabEyW 3a2WPrqX8bSJm309AksPFUoNfh1z91sBZdfYkxd70hgNPbiRagUEgloCBI5F+hPkTuim Bk9+jhGJf2Q1mD4BlZQg8ACAuUI+tb5lZwdDpvWCBCCa/Q0JP98PUe3ZuODBGDD5vy/u /Ncw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v123si13160986pgv.545.2018.04.25.01.13.11; Wed, 25 Apr 2018 01:13:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751283AbeDYIML (ORCPT + 99 others); Wed, 25 Apr 2018 04:12:11 -0400 Received: from foss.arm.com ([217.140.101.70]:35458 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750882AbeDYIMH (ORCPT ); Wed, 25 Apr 2018 04:12:07 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9199980D; Wed, 25 Apr 2018 01:12:07 -0700 (PDT) Received: from e108498-lin.cambridge.arm.com (e108498-lin.cambridge.arm.com [10.1.210.84]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F22DE3F487; Wed, 25 Apr 2018 01:12:05 -0700 (PDT) Date: Wed, 25 Apr 2018 09:12:04 +0100 From: Quentin Perret To: Peter Zijlstra Cc: Valentin Schneider , Viresh Kumar , Ingo Molnar , Vincent Guittot , Daniel Lezcano , linux-kernel@vger.kernel.org, c@hirez.programming.kicks-ass.net Subject: Re: [PATCH] sched/fair: Rearrange select_task_rq_fair() to optimize it Message-ID: <20180425081204.GE14391@e108498-lin.cambridge.arm.com> References: <8a34a16da90b9f83ffe60316a074a5e4d05b59b0.1524479666.git.viresh.kumar@linaro.org> <434fa179-7c8f-8a01-a07a-4527521a04c7@arm.com> <20180424104304.GE4064@hirez.programming.kicks-ass.net> <0985e709-0d71-2c08-20a9-7bfb618fb5f2@arm.com> <20180424123523.GF4064@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180424123523.GF4064@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 24 Apr 2018 at 14:35:23 (+0200), Peter Zijlstra wrote: > On Tue, Apr 24, 2018 at 12:19:07PM +0100, Valentin Schneider wrote: > > On 24/04/18 11:43, Peter Zijlstra wrote: > > > On Tue, Apr 24, 2018 at 11:02:26AM +0100, Valentin Schneider wrote: > > >> I'd argue making things easier to read is a non-negligible part as well. > > > > > > Right, so I don't object to either of these (I think); but it would be > > > good to see this in combination with that proposed EAS change. > > > > > > > True, I would've said the call to find_energy_efficient_cpu() ([1]) could > > simply be added to the if (sd) {} case, but... > > I think the proposal was to put it before the for_each_domain() loop > entirely, however... > > > > I think you (valentin) wanted to side-step the entire domain loop in > > > that case or something. > > > > > > > ...this would change more things. Admittedly I've been sort of out of the loop > > (no pun intended) lately, but this doesn't ring a bell. That might have been > > the other frenchie (Quentin) :) > > It does indeed appear I confused the two of you, it was Quentin playing > with that. > > In any case, if there not going to be conflicts here, this all looks > good. So, the proposal was to re-use the loop to find a non-overutilized sched domain in which we can use EAS. But yes, I don't see why this would conflict with this patch so I don't have objections against it. Thanks, Quentin