Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1010959pxb; Thu, 4 Feb 2021 02:52:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1xv37CX3B0QrBO8WBOxzw4DzrnKpu6xuTojqwNpblnNP7Veem6oPWKlR32tFP6BjTm3wS X-Received: by 2002:a17:906:2c1b:: with SMTP id e27mr7772162ejh.235.1612435936853; Thu, 04 Feb 2021 02:52:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612435936; cv=none; d=google.com; s=arc-20160816; b=Lh26jCwJIoh1iVHZT8o5peDb2PijcR/p09lEqLK+FLC167gECWA6+rP8JsYZQSgRBP 5mR5PKnUN6bMzzF8eRjWqWh8nJwcN5XU8ZaNyMb80K4yOlfIPUk3LRwhhHr2MTaImdOw ztliA8CbUj0qblMC0wac/G9rOYOktoJQ+Y/DwTm9P7I4NFmZTHdimyXMhD/rWO/Sd4bs 78Vg2Gun/fwmhsmahhtVfeNFLfMmSViQ6Xpm2G4eA9DpnMSXF/p4zh0iy6D6YosgSE5B p4vA/2BWP1OAdUOQsmKoa1xQ3zWT1bzEq5cyRaHxZzaiKopkqXWOWZhyAHiT/Dmw7zsx BlPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=omT8MrhB9kKYg76Xg6YF9DWwuMDyr+fiUiFvIhQMR9I=; b=tvHiGw87xN4TtHZfYIpaHDYhDpnrQZPDPZeq18sB4cwtFPwBKsdk/6JrhkaFiTgR++ RVx4h10vrqHWr9I9rthv4D1lGqN4TrzJ9ExXQ10hjgsJYL3pnAJqtJzYFnfcmotjIfMy vEdPWy2sQRzBjAqFUVooBVCqPeaiKaj04NyZKsnr2m194LnEQdvspdMh0Fz/QPcPBJV7 u8vWtpGEI9HWo9oWLVladf9/aamyfMBn1zO9A8gQq+bAFEIxfVsYYe/kSTaKqBCoLXmb pNvoCKox4baIhFJLDlB6bdXl4y2PGwhipZxjK0RGT9AKU5cuFKWb8Y6r+iI4gxkOsKAu OnJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bz20si2783710ejc.459.2021.02.04.02.51.52; Thu, 04 Feb 2021 02:52:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235464AbhBDKub (ORCPT + 99 others); Thu, 4 Feb 2021 05:50:31 -0500 Received: from foss.arm.com ([217.140.110.172]:55768 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235436AbhBDKua (ORCPT ); Thu, 4 Feb 2021 05:50:30 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F226111D4; Thu, 4 Feb 2021 02:49:43 -0800 (PST) Received: from [192.168.178.6] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CC3E43F719; Thu, 4 Feb 2021 02:49:41 -0800 (PST) Subject: Re: [PATCH 5/8] sched/fair: Make check_misfit_status() only compare dynamic capacities To: Qais Yousef , Valentin Schneider Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Vincent Guittot , Morten Rasmussen , Quentin Perret , Pavan Kondeti , Rik van Riel References: <20210128183141.28097-1-valentin.schneider@arm.com> <20210128183141.28097-6-valentin.schneider@arm.com> <20210203151546.rwkbdjxc2vgiodvx@e107158-lin> From: Dietmar Eggemann Message-ID: Date: Thu, 4 Feb 2021 11:49:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210203151546.rwkbdjxc2vgiodvx@e107158-lin> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/02/2021 16:15, Qais Yousef wrote: > On 01/28/21 18:31, Valentin Schneider wrote: [...] >> @@ -10238,7 +10236,7 @@ static void nohz_balancer_kick(struct rq *rq) >> * When ASYM_CPUCAPACITY; see if there's a higher capacity CPU >> * to run the misfit task on. >> */ >> - if (check_misfit_status(rq, sd)) { >> + if (check_misfit_status(rq)) { Since check_misfit_status() doesn't need sd anymore it looks like that rcu_dereference(per_cpu(sd_asym_cpucapacity, cpu)) could be replaced by static_branch_unlikely(&sched_asym_cpucapacity)) in nohz_balancer_kick(). But as you mentioned in an earlier conversation we do need to check sd because of asymmetric CPU capacity systems w/ exclusive cpusets which could create symmetric islands (unique capacity_orig among CPUs). Maybe worth putting a comment here (similar to the one in sis()) so people don't try to optimize?