Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp172857lqo; Thu, 16 May 2024 02:51:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW8aUrUAO6ep5XCdj57cylyL7gBXakeZvKnd3H+9K/T8cGdEHFBygX1XrIOfj0np3sFPA+WSn/8CYU9NhK1yEspMULm0Svm73uLD9eDmQ== X-Google-Smtp-Source: AGHT+IGyJLb0aZBaDDs8Bfw0Hpp3h1d1h+UdI1X43Rg/B7yf+3K+ofSd3fEuxA9jxrY5oj/iqv/L X-Received: by 2002:a17:90b:3785:b0:2ad:f3c3:540d with SMTP id 98e67ed59e1d1-2b6c76f93a1mr25833008a91.21.1715853116294; Thu, 16 May 2024 02:51:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715853116; cv=pass; d=google.com; s=arc-20160816; b=raBu14YWeAGUbDkDEeNEQRNqhICEIgMiOfrNBV43uPjbA8c6R63Unk0XpOFKZ9Q/OM sChsLWpQLup851qFXJkdZesJ8G0gW572+A9+kQtpOEyQRKyGaM+1ecLAuSt84GgKx00Z RJ/s2WecboLWgzEZwO34YNYVWNXZEfxRr4KmqHPYG6dP3vrsDNnisacpOeRiMFtZkFtA 35PkUr1b1Iolf9PMGKVcbDbAchoWItOLqQgGwAsr3I9YLhZ9FfG6Jqd21QFrHXAFfbkI 5WrwQZiQ4MoDCwTQITXVoUWgecMR1FeFur5qwL9OImCjHoUIFPBqMC/B2cttDguCTp3z jdGQ== 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=RrvR/OuJN0GiPOp743A77k50xCQo42dKCOI/Td+WRes=; fh=Yw/gEDUl4CK6I9QBDwYCayayVQ6Lw0ugq8Hp1Ffc/T4=; b=pDZnXMMitm4qEMvhSekOqfe0y52EG9tkxTjBy0eGJzGREaMUQnnyj1yJuYyEPPB/U9 ftHzJJr8jP11rj787EydMKf8JdYN44DPhLOFewnUrXL/92QkDHzmVJQ3a7QbdmhAHqt/ uu9X8xGdSHMuFxpvYJ/Al/bQmcqn8XpJ4rgMtHuMpffSa8IvAUnuUPtbKAuHjEL3kQlp O4bK456MM1Xzb4f6dM2KUd2FQvpfKsFo/GJSTu0SEK4u+58FZ02ebX9rV+KT6bvs2Vyd iFd1z9CRgmYAa76WKvFeZPBo3981kVeH04U0RP4a+ubWQ/buXZ7BOBfmvFFuoyvqn5bk 02Rw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=ltx3A+f1; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-180791-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180791-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b6290c4152si17011170a91.155.2024.05.16.02.51.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 02:51:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180791-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=ltx3A+f1; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-180791-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180791-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 7D652B20D82 for ; Thu, 16 May 2024 08:49:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1721E142E8C; Thu, 16 May 2024 08:49:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="ltx3A+f1" 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 D52892D054 for ; Thu, 16 May 2024 08:49:16 +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=1715849358; cv=none; b=kiYJkw832QJFTYSuEObo0GZCEn/s1z3YrncmBztDtipHoG6OgGc5WFYgo4gn3e03ld5EhW7IAHLIHkuqDmV0oNGgKC9iE4SEky7k7AZNJZNX5qsmn0v2Gk3WdnF74JQSupSDT/VMZuUR4hbOnXjSvbZ2eNibqGV1A3uX6ClRYS8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715849358; c=relaxed/simple; bh=f78xiDhvsUkQ0vEOzZLFLmGbZwcxWJdGNpPjrHYsuao=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HD7Cjv+25JUEkdn4WfoqUzItRGb6eTewBHe62TqK8G4RSP9R6Zqkce88rLWsJWCNJhqmq823bhRSe5kJ8N5KevNHL+kpqSTP6XiPBV/bWhjx73ksXVdEzeuDqTXIbi4ATuDPrBFoFsW3lcpw2Z49Bv/zVF6PGmNqtL6uRwh7MEk= 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=ltx3A+f1; 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=RrvR/OuJN0GiPOp743A77k50xCQo42dKCOI/Td+WRes=; b=ltx3A+f1VKx0Q27cjpnamTfQak Rzmyu9nlW0hOY2GJC8+AZNRDLCcqgQuSce306lnSD5Yq6jtoIFk2/5QgcDmuqeL73sbrFMID/NDyi gEYJqEqP8lt1tluM1qXx1k9lZ4qQg2ZyrBkMc0+I/mQtnc0zI+GYdwrkFopGFh7LvZF5a/FlfkAEY uuzv2E1/mIyVzA8OPiv5iTXdrQ5g+i+hs8+6yPCfLlyxYAn3Oktl++PhQaAZOn7mbfcbnyh9lbEFk 3h2PjAwprtvcHi+c5z2xH5D8FiQbK0YgNWQlzSbJvejbBK8YbHt55058VMLxF97DobwWC2RlS0LSy RESRpweA==; 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 1s7WnX-00000005NtP-475h; Thu, 16 May 2024 08:49:12 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 7307730068B; Thu, 16 May 2024 10:49:11 +0200 (CEST) Date: Thu, 16 May 2024 10:49:11 +0200 From: Peter Zijlstra To: Yun Levi Cc: Frederic Weisbecker , 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: <20240516084911.GF22557@noisy.programming.kicks-ass.net> References: <20240508172621.30069-1-ppbuk5246@gmail.com> <20240509092931.35209-2-ppbuk5246@gmail.com> <20240516075628.GC22557@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 09:20:08AM +0100, Yun Levi wrote: > > None of that HK nonsense is relevant. The NOHZ_FULL nonsense implies > > single CPU partitions, and *that* should be avoiding any and all > > load-balancing. > > Do you mean.. tick_nohz_full cpu (non-HK-ticked cpu) shouldn't belong > to any sched_domain? AFAIK NOHZ_FULL still hard relies on the isolcpus garbage, so yeah, it should be all single cpu partitions, which don't have a domain. (this really should migrate to use cpusets partitions) > > If there still is, that's a bug, but that's not related to HK goo. > > > > As such, I don't think the HK_TYPE_SCHED check in > > nohz_balance_enter_idle() actually makes sense, the on_null_omain() > > check a little below that should already take care of things, no? > > IIUC, > currently, whether cpu belongs on domain or null is determined by > HK_DOMAIN_FLAGS No! you can create NULL domains without any of the HK nonsense. Both isolcpus and cpusets can create single CPU partitions. > However, when "nohz_full=" is used, it still on HK_DOMAIN, so it > belongs to sched_domain > so, it couldn't be filtered out by on_null_domain(). > > unless "isolcpus=domain" or "isolcpus={cpu_list}", it's on null domain. > with "isolcpus=tick", it participates sched_domain. Frederic ?!? You can use nohz_full without isolcpus? That makes no sense. If you do that you get to keep the pieces.