Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4864955ybi; Tue, 28 May 2019 03:54:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqykr10BR1eS0/7KzoWbWXHfnYBjWB7kYv3B3xkuHyyz+s3uSGhiGzRPQD4ufVJ6QpR4oI0u X-Received: by 2002:a63:1663:: with SMTP id 35mr256220pgw.253.1559040888439; Tue, 28 May 2019 03:54:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559040888; cv=none; d=google.com; s=arc-20160816; b=AjyEidRlcg1rO6SjIlDx2utiEslaZKVhJwEaS0g+mF3ZdRwKtfgkaBd/qsn714xBDy +Al5z/JPbTnD5mIkQdBfKFRTGqbwMWLvTBLzqn2m2fwncerC7vkRgO2+Vnw6Xn1s+dYV X7bnEMXgfP8abL9vkIAVY5zeUzxJmtZpqY3n9YHwqIddupvVHFEpubugk6//EmWPOcli NWnJU+XIYW18rv0VSLeGUysahUiKTw0jjdPokzoGB2Nm5f8jNrrPC2VzFFZOZElXI8u0 qNq9dAp4/6mcpeer6EYskBZdSa0I9sPbqiaVIjDY1Z5+FBDhmLTYSDuo+miyiP8tXUSm 9eCQ== 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:dkim-signature; bh=rB9rrnpARXQkc5fberxbJPE/xh3fmIg0x0UG52AxXP4=; b=AckQFJjfZHT5GGsDjan1Hi7GOcYQDEQrsODQzFbwMP9oPEMRQwt9aCbn3OhVx3FE3C u3FBKoz9qak5pHq5EN8ceMr1omctkavRRmXS8ZQO+nEYypPcgdn6qm8Jjx8+y8d5CEC8 1yxJFT2HOP3r9VMaSKtvzvE10Rkal5NGsqYX/nX2Uphnbmv/liWO0lvC9OoMcerlBBfF z78X0uo6cmdZjPc35oGFzJlsWOS86e+wP4gLRv+zlckKulWXsrCqPo2d6YGtLc13iVep IOyoA+x9N6IgfM1aQmBFqxaphce9SWIfKCo2BfaefA8xDLe/24TjddWUo4E6ZOSOLa0T VDJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=YKs28hvJ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bg17si2967696pjb.75.2019.05.28.03.54.33; Tue, 28 May 2019 03:54:48 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=YKs28hvJ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726566AbfE1Kxb (ORCPT + 99 others); Tue, 28 May 2019 06:53:31 -0400 Received: from merlin.infradead.org ([205.233.59.134]:48434 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726282AbfE1Kxb (ORCPT ); Tue, 28 May 2019 06:53:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=rB9rrnpARXQkc5fberxbJPE/xh3fmIg0x0UG52AxXP4=; b=YKs28hvJyv3gyvK+hty98NGNe DLsDNV2SrXOuYnF7ikO7js1hf/TfhoJDY9O0M9vTPDKV/P5kiFJHpFrAH6x/03EqfRAWj2WLjMJ3a IXbmLzLxax6uhWFHfbnpnkXcE8+nmbR1CpGyfo0q62ykbdaNU0EB5kewaCoi/I/u6eLD4RoJEB25P UREoDW0DSkVmXN5N31KVAACqSDG8WJcn+1abTe8Q0ZtQxULiIaStytVTE8N2PqnDW93hYFBO1cMeO EKFOgdvKK9PF63LxxZ1IQN8kWsRtfTFkxEDNTh4Hwd6dXGsifcJv97mPxDhyifAxqXVGHbbs8Aykm pTZPmZppQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hVZjF-0002nO-Nv; Tue, 28 May 2019 10:53:13 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 376EE2074C65D; Tue, 28 May 2019 12:53:12 +0200 (CEST) Date: Tue, 28 May 2019 12:53:12 +0200 From: Peter Zijlstra To: Dietmar Eggemann Cc: Hillf Danton , Ingo Molnar , Thomas Gleixner , Frederic Weisbecker , Rik van Riel , Vincent Guittot , Morten Rasmussen , Quentin Perret , Valentin Schneider , Patrick Bellasi , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/7] sched/fair: Replace source_load() & target_load() w/ weighted_cpuload() Message-ID: <20190528105312.GO2623@hirez.programming.kicks-ass.net> References: <20190527062116.11512-1-dietmar.eggemann@arm.com> <20190527062116.11512-3-dietmar.eggemann@arm.com> <63ee8775-f159-e172-15f4-2ddf941870ee@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <63ee8775-f159-e172-15f4-2ddf941870ee@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 28, 2019 at 12:24:52PM +0200, Dietmar Eggemann wrote: > On 5/28/19 6:42 AM, Hillf Danton wrote: > > > > On Mon, 27 May 2019 07:21:11 +0100 Dietmar Eggemann wrote: > > [...] > > > > @@ -5500,7 +5464,7 @@ wake_affine_weight(struct sched_domain *sd, struct task_struct *p, > > > this_eff_load *= 100; > > > this_eff_load *= capacity_of(prev_cpu); > > > - prev_eff_load = source_load(prev_cpu, sd->wake_idx); > > > + prev_eff_load = weighted_cpuload(cpu_rq(this_cpu)); > > cpu_rq(prev_cpu) > > > > Seems we have no need to see this cpu's load more than once. > > Thanks for catching this! Will fix it in v2. Fixed :-)