Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp360956lqo; Thu, 16 May 2024 08:20:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUtKBIqabuDQGgBXOr8gn4rCL/W2/OYsZKuMpLaCQKp7luBOBisvD42+UbB2tFuKlNn2tf66Yn9hprRmlYjz6TGa6e5cOElff4ERBmLCA== X-Google-Smtp-Source: AGHT+IF3WsizONGAR//RrcR/DPk5PJu4dlJpjjPI+9CO1H00AyN/+F7jFghCjyCF+YL+iS/8VUV1 X-Received: by 2002:a17:906:b097:b0:a5a:15b6:25ab with SMTP id a640c23a62f3a-a5a2d665454mr1191189066b.61.1715872809129; Thu, 16 May 2024 08:20:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715872809; cv=pass; d=google.com; s=arc-20160816; b=IsPQUTt+Y/maWfRsD9jCnqNll6gTGKajf96BZBmz8ZiJldljYEQLWQWoIq12a5DJ8u qfW/0pFPq0zTlqWr6p18X/rXCerKsAvuKpJK9PYehSAniMfINXyxbLjMTvsKvSRRwHBx pniNjyH2TKSbdXQtjzaxc/R2IRab7fJF99oRpkOJDuE/50jr6XjUQeAW/nAsxEhfjpX8 gonOebPAehkz6nT6DUZ0QK2QXeWgOd4F2AO/L7MdWmrsAxq3mGNE0kvoljBp/WJ89w7X IlLCKZwBIvDhJ7Wjbs+pTjQSNBrz0lrO/OxeqP+pPb7DcCj8b8Pz3QEMBnu6Km+NUzrO Z+1A== 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=vfRYymjV7A2ksiA1ifbCkQIzMUN+OUNKRWRmXGE/juQ=; fh=n0PDJ+LPOrHJYEI7wOpOoXZWMzVact/2qt2+KD4mSgk=; b=jJpBVH33C8OqV+8xj5dLHJtvIJBc76toIXvOJ38sdYNM1K+ZOxsJx5DAJtRUXH5QSz 4ZI0TEQ2ctFQY2p1/tKCYMXqDFlv50m1KnbVB8MAYhvVnnAreh05WNIlb2zb8kE40YkQ KosUI9TErVR7ySCNxx9Xr1J5xQd69Ud34FyX6Xej5MLxZgdr2pIIeP1Eo82SaKcK/5h7 a3FnvqvPcn3973f8ziIjjumwJE8aCfFMRkZaI3gNnFap6beyxj4cO72DJSwPMHfILine utkJqPeIFg6h35h5CjZRw+lut7+pLQPxGobapktOxvfkhGEdESdaHtAEGiwRBimzxs9f Aclw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=GU4NPhW0; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-181222-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181222-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17ba397esi874845466b.645.2024.05.16.08.20.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 08:20:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181222-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=GU4NPhW0; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-181222-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181222-linux.lists.archive=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id D15581F2161C for ; Thu, 16 May 2024 15:20:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF67914D2AB; Thu, 16 May 2024 15:20:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="GU4NPhW0" Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 BF4341E491 for ; Thu, 16 May 2024 15:19:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.92.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715872801; cv=none; b=j/t74u+e1YtkAfxVnqy2KUyGMfExeXH75zy991QzFL6dU+cAEmkv94RkVgTgjdBPKn1BQ/xXXo/wTcoBI9RTO7F6t0/az/yC+El4zCWW6492ongaD/K5rGgCnlalKKzx4yjFeQhCzB7+/9OXK3CRTWv3XiKiUJ5xPSvoG0NqgKw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715872801; c=relaxed/simple; bh=g4pCKFHtNv8tWxkrcOunRV36cnVd3ULvVwjtURKk6wk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aqrJVyg19vT1GjA5xL8ltJFZZ8t1UdHUJr+GwwbfPQnXWByvXPOrRSd1h6LlnJOQxx2kVOEFB9ZOvBAZ0EtzgjBS1H7h/KjCWPhUMM7IAD45yU1MSnFzRdzIKsSCkqmV6wfj3Q9NZdxXn58KA4aKnbcXUuioFkuvAPrgLzL9HeY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=GU4NPhW0; arc=none smtp.client-ip=90.155.92.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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; bh=vfRYymjV7A2ksiA1ifbCkQIzMUN+OUNKRWRmXGE/juQ=; b=GU4NPhW0NSrW3wS9kvVVbr9Ov6 kVillMd+D/CsiGg8X2K8B71+JW3sGmv6PWZOinBZISE1sr8ZCZQjy2JaBTg8l1H4zgU9I6TYW9PBC 4xohhmK5bfCpFeY6HZT/3kNatqA+HMqxNlAHP8jHUWQGIQrdEP6OEl0kyBPzfPKlbg2vFWMwhz92+ zYUeEbMa8P+0p7bcKxAUOoPLhRampjlERPb5Z0QwdphJnTz7sE4IOx2sWPJU+lboJWh992au7xL0W HV5eNk0qMnOCJlQledOoGpFiSWpMx10J2UkapoopwLqj7yj3PvEmfM/myZ2rEptV4MR9oSMjbbxEs D2EVAlEA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1s7ctd-00000005Sgs-473N; Thu, 16 May 2024 15:19:54 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 4367330068B; Thu, 16 May 2024 17:19:53 +0200 (CEST) Date: Thu, 16 May 2024 17:19:53 +0200 From: Peter Zijlstra To: Frederic Weisbecker 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: <20240516151953.GM22557@noisy.programming.kicks-ass.net> 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> 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: 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.