Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp135397lqo; Thu, 16 May 2024 01:20:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXn5GD04j2hgFx/Auxo9ctH2U+o6pnt86JbocwdA8nCsdiioMP3cyX5HbHNcPxg33FymrGL/kUH5dEWJAf0PkMbOfhdq2Bqd6B/rQXyjA== X-Google-Smtp-Source: AGHT+IGjN5d3urGRAUWwo1mN37azUS5jWh9J1dOJY8k8jOFV8Uo0Gl2fILZXu3sOffAzsloAIftD X-Received: by 2002:a05:620a:9364:b0:792:bf92:b78a with SMTP id af79cd13be357-792c75773b4mr1883198285a.1.1715847627759; Thu, 16 May 2024 01:20:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715847627; cv=pass; d=google.com; s=arc-20160816; b=jK9I5rzOu0huus97dPZClzuTFXM+byn2puOQ0mHQyrkAVqNmGYkeq6kp3Wc6PNLNMe xsBexb2aOeh2RU+EeDjqNMJJQwUJnEUkRHrPqDqrT8foT1EyRAAhl0E6Vy/9zNE/0/GG lVToup/YJt63/ttB/C8CDAxp2+T74NReOvJruTESpux4r1stuZLxVrsqOlTLsROAJSIT tzONPe9lCvOW+0qnRUgKzcAyxsWpyTYVoG/0AvOk04z0OZRwjKds6BtzyKf8BQaMF1nV 5I2Cuixw5mBZKp+RImS0Gm+7U4/7f1NsDfUPjl0ByIcaUshw+S0O9Wjo+IvMRpjlZHSO Hl0g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=bxieYVWOri+L67S4ctIpMGuDcf+jYQE9H2hDYqlsHUU=; fh=NSn9lspD8RnjbKInBJnxZGg6JQWTpd3agF/jvYmZa30=; b=XoGEQhEx2yBjjbz+pKQx15Z/s0xo3j15cBVJMpFkZLzw1aFmJXV5jr+zjAggFQCxYM tNmEKF3ThiBcq4GtRoF6U9ytb/AAHLzPLqUImPWjTp2p9rbnw/UIJJxze2zdrcBkZgJy nMc9ZEw0HGcKBMHUt3B2SCF1L6JnEd/MEtOC4z6RQ4x49GTGi7WcvdBn1fM/EG2xqO0U RLU2AFLhKxYg0OGGeREVagIH85djJJxFn7Nx2y6aQnR7WkRhGM8hrG/zDPA0VK+ZnVSk 5aIYMzD5ilehlHNIllwPhpAqSxEuggg8bPSP93aDv4lK5nK12ldNJ8in/XZT59e9T9D+ x1qA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=h7lE1HtM; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-180752-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180752-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf33b285si1685718485a.398.2024.05.16.01.20.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 01:20:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180752-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=h7lE1HtM; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-180752-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180752-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7B2551C21D30 for ; Thu, 16 May 2024 08:20:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B06FF7FBA8; Thu, 16 May 2024 08:20:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="h7lE1HtM" Received: from mail-qt1-f174.google.com (mail-qt1-f174.google.com [209.85.160.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9073C27269 for ; Thu, 16 May 2024 08:20:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715847621; cv=none; b=OXAVcUdrh7bexBVQIzKzcMXaX0VlOcH47m8FOpUUx9PS9pD63op/M1wGltTMyjSkcB8n7l7jN7lsqU1uJrgsJ2DEWLjuhRcy0yILjHG5+Q1U9LDkuW+X7Tma7FYyqZN8zEkdrEF3qE+DlI8rR7TU4JFYIhJMGn/n0KYjxclMdQE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715847621; c=relaxed/simple; bh=bxieYVWOri+L67S4ctIpMGuDcf+jYQE9H2hDYqlsHUU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=FGkekro679M1dIBaasZ7DX5voqXtoo6ZzlUKFUU0B7xqP3ETjIqvBPuYHL8gikm8Bg6e+iaRZ0DwVjpg3zn8j9qu+HIHxKU5Kl/ukgoNFKM+5Aj2xGIQOprSPNxxoY+xkJ9gJ+Nd+T7JNy3RQ5+rx11ZmaVjuQOw2Xhq0rGPIFo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=h7lE1HtM; arc=none smtp.client-ip=209.85.160.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qt1-f174.google.com with SMTP id d75a77b69052e-43df2c8eeb1so35895741cf.3 for ; Thu, 16 May 2024 01:20:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715847619; x=1716452419; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=bxieYVWOri+L67S4ctIpMGuDcf+jYQE9H2hDYqlsHUU=; b=h7lE1HtMuNf/fc+AFDVCU6evQ3UeSqWa0eOQWzNVxCrisJmuVWZ7RjOF/IXD3ubnFt 8rRD8NFGHPaLGSB67ZtONnWv13bC1isRx35ZOJcjws8gra7wXzE8+AJhGBBcNE9rWrnI S17rW4Lw16udFUjOHUwH8piSEjJp58gL6OoU7bxXVZXGmJXNAD5xx6/LOGrHKSmTAOJV vUd6cm8etER7deUtl1bbQrbfNRXSlrKGmgiM4/MDJ8LJJsPmAd4z2rYEfUOy3PKoLyz1 iwkbkcRPKcg6/SMM4Fa0g+Z8co0v2cO0KhtRGCT7JM2LuSy6DkG3ikk3ueQuj1hqiHma 5BCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715847619; x=1716452419; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bxieYVWOri+L67S4ctIpMGuDcf+jYQE9H2hDYqlsHUU=; b=ihl5pnCX8O/+XXzLiktQbav7JQswf1u72v39yWdFrYHy1tXlUjk35G0aEAUL20PYMv HTc6gC6QxBuwTtw6WFvVbPlyrdflGo+yMa+Iotp23CFfhn7rkLzmCBHosEaOqWZCUdZY 6uip3yp+75u/v5dj3xSf+PqQtc3v6AlhC9Pv1t8aAL+v/3MWvoGwb/e75gH+d13IascQ 5GXVkoZ9jAgnWlU/jlg4jcEg770LYuV23uN9wWLyQQ49jIUV9IRCa3KXQGkjFzJ3a6X0 SxT31/lv6QGEv5LtZKQMqb0xFsRv7TTrOwS80DVghEowwk8a/xKI1GO05ylk//SdbN1O 00tg== X-Forwarded-Encrypted: i=1; AJvYcCVrzkhgVegYUvpQHVNrw7T2SN7Hrsd687bfvIDgkU7P7brdrpFYZNBX94czNrv7X6K1qzjq9+RUjNPJ3dnMFwKKUcL1x9vWAfWVsedS X-Gm-Message-State: AOJu0Yw/J1PpxFrw8vXfYxnQ1n9c4bo8t6k+kY/IRUQSdk+SfQVXLTZK Ej9uaBcSFQXgG3gRdQ350saZ+6LSHyWzoumT0L1IX1QiQh4522ON0AciC+VyIi/nzpRG/rZp4LI EwTIQYZerVMhrowdZwW6F7wyZu20= X-Received: by 2002:a05:622a:4b0b:b0:43d:d8e3:3322 with SMTP id d75a77b69052e-43dfdb26c76mr235568021cf.38.1715847619433; Thu, 16 May 2024 01:20:19 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240508172621.30069-1-ppbuk5246@gmail.com> <20240509092931.35209-2-ppbuk5246@gmail.com> <20240516075628.GC22557@noisy.programming.kicks-ass.net> In-Reply-To: <20240516075628.GC22557@noisy.programming.kicks-ass.net> From: Yun Levi Date: Thu, 16 May 2024 09:20:08 +0100 Message-ID: Subject: Re: [PATCH v4] time/tick-sched: idle load balancing when nohz_full cpu becomes idle. To: Peter Zijlstra 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 Content-Type: text/plain; charset="UTF-8" > 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? > > 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 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.