Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4422597ybp; Mon, 7 Oct 2019 08:14:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxaACsR4KOR5+NZiMViafMPGMuFfw3niGkWiL5z9bjntvGsLnxEd/v/jML6FU+fIPZHXkMk X-Received: by 2002:a50:f391:: with SMTP id g17mr29116116edm.163.1570461291616; Mon, 07 Oct 2019 08:14:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570461291; cv=none; d=google.com; s=arc-20160816; b=fcZdsJrKPzMkWpN2ejiqbhaTbkvIOi4VO75qSlDpMcyIpyCq4BUrQJDjwD78C9GL0f qZtMF2nEPZ59dz/n5bO2bd1NTZqhZpUnon9NgtxYDdNkuRyhXuAQp5mkm1Qe2ijpTbKe mjj8/P2Ik+7SYCNHwkxgX6MuHBFyUmgfHoE/51fc4Yw0A1wvk6//Z3XrVhafoglLhU9p VjWyvCYTF8EHSIaJDVyX8cDforDRipRT2A0RJwvm73WcfkF2aboDMZt1mDyG5TSB/4PQ zP2BYabQPYi7q9biodNKTcuAMpMwgATYKkM94PAu5lBKF0c8cu87SuWyMm4jUicrqy0S TrRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=ueCySqG0olPFa+6KF6/0j9/sCFfpPiN5U2Htc+G4vhU=; b=r0BjMLYDQQMJqV5+Y7A0mJitbQDtt0o3+nD9ka+Xdqjlwi1DlDy94axkzmp/3/ASIN c/78YcXQmKK0/MbeUZjb3ZNQlqiZLLFeBWcSjnsQ3OrZ7ebzOvY4zLfyzoxRVFFTanWj F2dSO9P5Pd2Y4J0aM9ruEPn7B5GyWwu7x7Kvg7cAUWifMhQPRNKe7MkyS1bBcW2SzBEb MyPhYu9t2IfZGkSjTcIzijOhzcMZL1e+A/O6B5KwT9RYiQukkbjcpBF4ckhrVaaZbsdf 7EfH5QHaDtQyCh+iF6gBCj0dyDqa4Q8wwAbXNNaZjgX8M5rqLKgOl5kOIMT2FvocP5Wk N4Yg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9si8535906edr.382.2019.10.07.08.14.28; Mon, 07 Oct 2019 08:14:51 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727983AbfJGPOU (ORCPT + 99 others); Mon, 7 Oct 2019 11:14:20 -0400 Received: from shelob.surriel.com ([96.67.55.147]:38058 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727711AbfJGPOT (ORCPT ); Mon, 7 Oct 2019 11:14:19 -0400 Received: from imladris.surriel.com ([96.67.55.152]) by shelob.surriel.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1iHUi5-0008Tu-LJ; Mon, 07 Oct 2019 11:14:05 -0400 Message-ID: Subject: Re: [PATCH v3 09/10] sched/fair: use load instead of runnable load in wakeup path From: Rik van Riel To: Vincent Guittot , linux-kernel@vger.kernel.org, mingo@redhat.com, peterz@infradead.org Cc: pauld@redhat.com, valentin.schneider@arm.com, srikar@linux.vnet.ibm.com, quentin.perret@arm.com, dietmar.eggemann@arm.com, Morten.Rasmussen@arm.com, hdanton@sina.com Date: Mon, 07 Oct 2019 11:14:05 -0400 In-Reply-To: <1568878421-12301-10-git-send-email-vincent.guittot@linaro.org> References: <1568878421-12301-1-git-send-email-vincent.guittot@linaro.org> <1568878421-12301-10-git-send-email-vincent.guittot@linaro.org> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-WuD0OLaHXmYk47Pie627" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-WuD0OLaHXmYk47Pie627 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2019-09-19 at 09:33 +0200, Vincent Guittot wrote: > runnable load has been introduced to take into account the case where > blocked load biases the wake up path which may end to select an > overloaded > CPU with a large number of runnable tasks instead of an underutilized > CPU with a huge blocked load. >=20 > Tha wake up path now starts to looks for idle CPUs before comparing > runnable load and it's worth aligning the wake up path with the > load_balance. >=20 > Signed-off-by: Vincent Guittot On a single socket system, patches 9 & 10 have the result of driving a woken up task (when wake_wide is true) to the CPU core with the lowest blocked load, even when there is an idle core the task could run on right now. With the whole series applied, I see a 1-2% regression in CPU use due to that issue. With only patches 1-8 applied, I see a 1% improvement in CPU use for that same workload. Given that it looks like select_idle_sibling and find_idlest_group_cpu do roughly the same thing, I wonder if it is enough to simply add an additional test to find_idlest_group to have it return the LLC sg, if it is called on the LLC sd on a single socket system. That way find_idlest_group_cpu can still find an idle core like it does today. Does that seem like a reasonable thing? I can run tests with that :) --=20 All Rights Reversed. --=-WuD0OLaHXmYk47Pie627 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAl2bVj0ACgkQznnekoTE 3oNkvAf9EIx4XCf3dXuBIbnv/VDATAw7RpjAhjca32QZlF2v2HCNkxQsuEWAaPBr t7grHeoD5jQIvyMulh2+uUJMZylURuPNdDs6+OyF3pHRSGNTMKhPkNGQVlwTmuvf GHayc0dHmYN/LjzcIGGdKYUnte7laSweKFGckYwSBnCLGwZyNNsIFJVIoohiqrRJ zf3LlBGrx0HisQdrywzdSJmXQVhCknycNU9N4zhUQkOBShY2r+a/2Q6xXFiw8Nuk oK0WKqbk09Erqy3sazKJpYy/Lgnf8ji/wT32OO+rwbf/i4RJYcLakSccooyNxdVm Gb24a8dg/MIyUfUn/vetydJrMNjtwQ== =rSUF -----END PGP SIGNATURE----- --=-WuD0OLaHXmYk47Pie627--