Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp371429lqo; Thu, 16 May 2024 08:37:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHp2tvHqGgwHQ1hFQpCiHvJXHyhLeVCbp6P4DNGXkggzSVdVW0e0WRH9JvFXAeB3vMyk4ohzDmA6uy4SAgzxUTc1dL1QC+l61s4R8HNQ== X-Google-Smtp-Source: AGHT+IFgGy7/TO7REzQmaGDDCdYP5ZdtetNs62X8AT+qgHHgQaTGCTnaFN0eodZXtpWRe2FbrjYV X-Received: by 2002:a05:6a00:4645:b0:6ec:d76b:6fac with SMTP id d2e1a72fcca58-6f4e02ad046mr19015399b3a.12.1715873828613; Thu, 16 May 2024 08:37:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715873828; cv=pass; d=google.com; s=arc-20160816; b=E/HgTzpFxnS19YTRKApGwFJ0hRjw5Njw7rra8dLAHfFCywoSxVwboT5xnvyJFQmSIo IpiCbF5gtB6QrBOHQF0exCl0lsB/mu8vWYd4Zvf6/2+4j7tuU7AZj7hlPBjJIhyCzYKB 55BWPF8PRTJ4nzfor0Yy5afM4C2eLuCV1icHtdGKXV85FffYGOs2DZDP8dRI59B28Z8a DdJNs097VdyvC+OJPlYNtyM+0LnjrkndhaXVY0nwwgmrhHj527kb9F/sTuUjV3eVEWHr /pbwZfaBmIFyEmc2dh8QR4q1S/03eJwnjLhDn5xRmNrmHkjuaUkNzGPMZrv3V+6SgJj9 wMVQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tdDM1+XwyLjMbA0yeHChUhlyzCSUuFO2Bq1V78OTOFk=; fh=pYQrMWRbkoOftEfpHYa+n7bWXefjxt7OrJ23IGl4uTo=; b=lpj+3anNTPXdWf4JGxVOgN+BMl08M9hdlS+F8IHbbVoS222+jHZq7suFek3Q85Huz+ 7clRkZRCTv5G6ZHRT6ilPLoiMak/hDVImTfcL5lSl2dBSHGJUsUq+kSv/fMFkfuESEDa Y9joblWFib2isTEuJ4LvYs+rrpbaqc9eScqeGrod7y46zsbTDeDCzLmF+cHzPaqJN+m3 Hv/y/4+HYLFpsQ3E0nAYA5V2Rbw6OqXiNHv6qIIz7z4X6ZP7g/qCMgVbrJsESa/rKuJZ 8YtLf7qB8Y+WhfXZA67UgEW1yHxC2VTIR+3mkB0ybZpHU+1DnRMBBK7ymGwQOxdDnIGQ YXQQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G1TaLr3k; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-181252-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181252-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2aee5efsi16276284b3a.150.2024.05.16.08.37.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 08:37:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181252-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G1TaLr3k; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-181252-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181252-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 519ECB220EF for ; Thu, 16 May 2024 15:33:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C35A614D433; Thu, 16 May 2024 15:33:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="G1TaLr3k" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC4FC14D2A8 for ; Thu, 16 May 2024 15:32:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715873580; cv=none; b=BJL7/D3CPZy4wbe0llXRm7Nd6f2GlI1A4SwiE8D2f4BB+B03dv6SjCpgpegv5Yv6IsOpXPyPLKt6LAEqBoLBm5xqqcR2B8vk5cKHvBNtZRvx5TOdxqEojUgIryKJZAkmwOcRS8Yv0YT2lsv0eir3+gXdb9HvRSYwJL+wFPGCaLw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715873580; c=relaxed/simple; bh=srVdnYXyT4tc0ys+RBcE/24kZDqVhwuTNm17oGZxacE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gcaIAA8w3nLSlTzjAqNmp+jl7iY1/TgkSGwoZY2JmkVpdE2/d34yf4PWafZt8CyuOwTicYcW981lyYWaCzakdSwaPpH4uhqeN8psJG8AGUAV1FCPbRjCP6tf+MhSP6LbrLg3IjILU/x2EwCBUEBHTeRUtF9Y/aQxKE/+klS+d34= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=G1TaLr3k; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24E01C113CC; Thu, 16 May 2024 15:32:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715873579; bh=srVdnYXyT4tc0ys+RBcE/24kZDqVhwuTNm17oGZxacE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=G1TaLr3k80zEv75xK/NkWx1OBTq58CmAqVlpgACvQf1BuVh47walBQpUebuieTNQx e4lJ13bmuWS+IPJVmH8D4CBrk51PjU8gLvHt2BYmDGcox7j9Y6tOEoO6nGSmpoE+oM IlPh0FHcwhfpOTwWUmUXbeByVEuUSRHxPa1U9Xejud9/nUd3MaClJekcYB32CyTcQt /lw0O5WLiS46y+wGtnJUgh1SB5yJRt/Yir5GdLod/BrjyN3iVWwx72iTU4YcB0DnHp uYNt5x0YMa8PSN2Gqp+guf2usZFdVqxt7wtR3+908mFEEIE8b8p3yoSP5NvEeakybY uzfwb9L+kDKLg== Date: Thu, 16 May 2024 17:32:56 +0200 From: Frederic Weisbecker To: Peter Zijlstra Cc: Yun Levi , Joel Fernandes , Vineeth Pillai , Vincent Guittot , Dietmar Eggemann , anna-maria@linutronix.de, mingo@kernel.org, tglx@linutronix.de, Markus.Elfring@web.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] time/tick-sched: idle load balancing when nohz_full cpu becomes idle. Message-ID: References: <20240516075628.GC22557@noisy.programming.kicks-ass.net> <20240516084911.GF22557@noisy.programming.kicks-ass.net> <20240516140003.GJ22557@noisy.programming.kicks-ass.net> <20240516144504.GL22557@noisy.programming.kicks-ass.net> <20240516151953.GM22557@noisy.programming.kicks-ass.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240516151953.GM22557@noisy.programming.kicks-ass.net> On Thu, May 16, 2024 at 05:19:53PM +0200, Peter Zijlstra wrote: > On Thu, May 16, 2024 at 05:02:51PM +0200, Frederic Weisbecker wrote: > > > > I'm confused, none of that makes sense. If you're part of a > > > load-balancer, you're part of a load-balancer, no ifs buts or other > > > nonsense. > > > > > > idle load balancer is no different from regular load balancing. > > > > > > Fundamentally, you can't disable the tick if you're part of a > > > load-balance group, the load-balancer needs the tick. > > > > > > The only possible way to use nohz_full is to not be part of a > > > load-balancer, and the only way that is so is by having (lots of) single > > > CPU partitions. > > > > So you're suggesting that nohz_full should just be part of the whole > > ilb machinery by default (that is, not fiddle with ilb internals) and > > then it's up to CPU partitioning (through cpuset or isolcpus) to disable > > ilb naturally. Right? > > Yes, but stronger, as long as the CPU is part of a load-balance domain, > it must not disable the tick while running anything. > > that is, NOHZ_FULL must not become active unless it's running on a > single CPU partition. I like the idea but I'm afraid to introduce regressions while doing so, with people currently using nohz_full without proper partionning...