Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp215949lqo; Thu, 16 May 2024 04:26:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVADAnpfVW7/GANxv/Cuakno19sEjvtTunOqn6DD9/OABOO9mQW8rRmwKhQ76Rn5/Lm7G/pDow3dUv2giNdccpPr4iGm1r4AjIvZzURSQ== X-Google-Smtp-Source: AGHT+IEKGQM3/M98YsJzf9d2SetfVNBOZ7d3TMYE3Qc4XrcIcJoy91gVEzWSmhtnm4HTSLJ/TDKZ X-Received: by 2002:a05:6871:2884:b0:221:bf34:b15f with SMTP id 586e51a60fabf-24172bddfa6mr21337751fac.25.1715858789729; Thu, 16 May 2024 04:26:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715858789; cv=pass; d=google.com; s=arc-20160816; b=Hqp01Cm33HmHFzidwEhUbfczz1cxhRlk0sZmdrbO0ARl03V5MmyyvIfaz8UsmJ//xQ RiEoY3PsKe2ojZYwFRd9W4dpE6o6FQ1HnX5pvur23pWPx8VK5egA1OyxjUcXXbmP9Qgy kL8JCP3F6fX+bRQCWlE8X53VTQ2NR5yTFcDeeE3A++puN9TAxU0HhrXBQKq2TnWo1Anx tSPXXcYxHV/CYHczALW9psE02E0XHsSrAMA1lwo6eR6WIw9rmfzTa9mQtQkBsTjGayq5 EMNBg1Nd4lZJyeU2CyTbQ94K/TTQ/JNxny+OrRlcBSWbhKR+CsW3CYhWM/CTdYStbS2q LwXg== 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=I89qIFVqzQVdZP8eMz/0+us8OicNpBaL6kykdYdjD08=; fh=pYQrMWRbkoOftEfpHYa+n7bWXefjxt7OrJ23IGl4uTo=; b=lPEJ7LFNhl7k9C5XB0Bbzi7maG6GBduf9shoVaHTsb4awosk+VrMroNshfiZ8jWCqw 7lwlwJ7y6qHMdi0t+jxQWbsFPWRTMA27yhFZ2hrALY5DXX9dMxVxPqkIEB/KIUGqeu7o GWr3wDzywopd2gkOL0pMX9S+VEeYKHC7Hl7fH1bUkoSnSll2e2dmyf8wUbs4aY7gas83 Vezz/ZnENrl/StjCWn8R/O69ScMrJtKwzx881HpGPxud2hWHdVJLAXS/BeI5ik3aSq2U EyGQ8Z7ENIt1t8PFMkbWvu0Mmwv69KZ8mfp771i1aIpwfzUXz5S0KQEHlRr7gP8xrgr1 dXqg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NHESXcPa; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-180939-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180939-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 41be03b00d2f7-63b735833e9si11208260a12.901.2024.05.16.04.26.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 04:26:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180939-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=NHESXcPa; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-180939-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180939-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 8FB51B25A88 for ; Thu, 16 May 2024 11:25:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A68731459EF; Thu, 16 May 2024 11:25:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NHESXcPa" 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 CDADA14534B for ; Thu, 16 May 2024 11:25:21 +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=1715858721; cv=none; b=s3mr9ogqtqZUBXri2adwPmN63m6FkQKgnbS9I3F9Hh3Zq3bs7etugvDjsmjKbVH9GYiM4ABkC3ZGp0oeyXEv89evbGoxIm+kFo8jQRP2+VU7eXNiDyXeNuyS++jqq6zXwwYgi+Ps3E8Q6GgylCrZHUqQ8nioirDOTUj2aF73aKA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715858721; c=relaxed/simple; bh=Z3mpnLIUmt7AHRISjQddMdml+3gLRLCWGiU+qcDJh8g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AAHrFa2RnkxlBORl8jVe6S/6alHMsmXWzWe9UvbxlZWr3Cc9Q/LqQy/VxHmbhVsCPHUvVc7i2RPewwbngCs7poZLimV2NonIcVvX5KzDn489fRlEOcrJSslmWhUKPDzUa4hbLYJlwSBmKsHkd9iUtvGIw8wVGWRt08nwd8Vp6m0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NHESXcPa; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 071FFC32782; Thu, 16 May 2024 11:25:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715858721; bh=Z3mpnLIUmt7AHRISjQddMdml+3gLRLCWGiU+qcDJh8g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NHESXcPat6gtqcuZi1lj1aZnOYsoBm2cW7PhCfJuGbmdmZJWkNQceN1sc87j49v3Z GGLKLPmqSPwFXOc5wq7XOeNBDbVwTy/K3IKx26eRKjJx5zffXf3oI/UcjSWJ7EW+QZ cMaASId65loQmqLIp+ImHpQuDsAtFPBAcu3SXyX5PUzxApkF2W88M6oNYx/SJ5REWz uNyaL1bTutiem6s8howHjAnknBBCbm/EDas/gIm9u7fCa7Jb2vHl8wRHoDvgHc12YU 2Yk5n8SxW93BU64LckCwyh94pTKShGUh5jII0/z5N//LjrijG+6iQl2cesE2rIXp1f cqhwGfl+nhf3w== Date: Thu, 16 May 2024 13:25:18 +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: <20240508172621.30069-1-ppbuk5246@gmail.com> <20240509092931.35209-2-ppbuk5246@gmail.com> <20240516075628.GC22557@noisy.programming.kicks-ass.net> <20240516084911.GF22557@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: <20240516084911.GF22557@noisy.programming.kicks-ass.net> On Thu, May 16, 2024 at 10:49:11AM +0200, Peter Zijlstra wrote: > 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. I fear you can yes, even though most users combine it with isolcpus. I know, that interface is terrible but it dates from times when we weren't sure about all the potential usecases of nohz_full. There was a possibility that HPC could just want to reduce ticks without all the hard and costly isolation around. But all the usecases I have witnessed so far in ten years involved wanting 0 noise after all...