Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp494882lqc; Fri, 8 Mar 2024 03:58:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU/0EqXFnMOrFG2egeLUxBwayJWTZwybcSFAzoMGeWIQD0z/pqSqTkQfsUfROMMybCM4oyuB0tXMQze9CeIa0brLbOaD+sIPHVaRKQMEg== X-Google-Smtp-Source: AGHT+IHEhL9j2LwD6QoCBDxVQTDj/EV1a/EWjZZGVCqlIfdJnY1wSOGYhRJpTF2zMPwbXTJB8+yj X-Received: by 2002:a05:6808:2008:b0:3c2:d6f:40f0 with SMTP id q8-20020a056808200800b003c20d6f40f0mr13047630oiw.30.1709899092945; Fri, 08 Mar 2024 03:58:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709899092; cv=pass; d=google.com; s=arc-20160816; b=l/vyN0adTpjvqTynIllTdw/7BNPcNMnILCSj3oQNaY6YILrgHZeiGL5zDpB5os3fpg X6LNQPPdfuc/TjctTOTv3AGfmwJO63rQmmR8pHhRyPcZuamLMtKGtsBOCCX6o1HWWFFA n1AFHC1jFOlGjuoCgy5YCrWuKCU7MiYUvoor9ej2eeLniEkvobd/A55VLVAVMuM8Ip/p 2OyYnPILXK/tQR3/C225TvTI4W763TclXViSLWk4EDOIQke63Zsq74f/1ct7mkBoKgqd SqUzGSOOc44aOwoSHQzfm0s6cYCtYH6t7P8p0HJxFnr4pEXrmqmcgVJBDNi3eeWlPbCX /Y0g== 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=toCza1XInuOraHxuy2SmQIYltdK3DEIguvFMU6ymn7Q=; fh=vWuzxHHj/wKekUZ6o4iEIU0LlgaODIixU0LMFowncZM=; b=oXX9zdFCOmYrzHAG3TvaX3LArfIHIphbgARAtLT/JqARl/PQ2v1Xe7RhZ6CzPpREEm z2N7iF+/h/0ZWdK9oNviOqGGew2UZTE1aOsjCEZRrdlxQBh1pZL851ZZLUd5IkmpzBRq qQbYjK58CiH54GZrPtFAd8k9q9pfvfo62yKKPCAj2AvJPMn9ve4ccexaelI3d4ZukAkO t6I1vPCKl34SEavprXszBQGMHju7rxgwwzUgHR10u9SaQG8SwENK4PeT8ymXrCRlU6xf PSX228E4GYn6q8xVzTZ8chhjkbSpVU+sTmXVag6pP4GJxoCj238Abq/LIqrfLeIxtfT0 SyYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VooACwFN; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-96964-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96964-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s12-20020a63770c000000b005d8c1d4553bsi16111391pgc.894.2024.03.08.03.58.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 03:58:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96964-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VooACwFN; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-96964-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96964-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9757F2824E1 for ; Fri, 8 Mar 2024 11:58:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8E5256745; Fri, 8 Mar 2024 11:58:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="VooACwFN" Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) (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 76E5F5645C for ; Fri, 8 Mar 2024 11:58:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709899088; cv=none; b=GsKIb4zNZGHNf714PC+v0nf4KbqAM+QTCrcJaldUyLGqc/WDCukdh1zL3mkxtIqyMp6Jf7FJbYRdaYAObSx4a7aKFuKW+PN3j1+NIKPEvrgGhd5fSbl/wCa40YqEdOHMaYLCWjmlFFnlzpesixY/I5UeXEJu22p6DHfeB+9tnX0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709899088; c=relaxed/simple; bh=tBAwUGRbXq59I/dWai3Bt85iAagt+HvpW8FxlvtMZps=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=OYEESiEwkL3hcrjzdNSM/DWiI5SVqX30x1viyLG6GQH4Lo5u6plrIF/2GBsBcbVOyA1V2YHCgq09SmBEOup/DS3wlP6h4GdYvsnr1d2W/6+afr3dfM+2NHLv2l2PZasDL3pII4MBgbOpr61pgAgPGtGrDD00hxwgAyAdYDqp/hc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=VooACwFN; arc=none smtp.client-ip=209.85.216.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-29a8911d11cso1278056a91.1 for ; Fri, 08 Mar 2024 03:58:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709899086; x=1710503886; 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=toCza1XInuOraHxuy2SmQIYltdK3DEIguvFMU6ymn7Q=; b=VooACwFNIqEO6OcFC92hk7o4dXYWHi5KmPbrwQHA/52UfIdCx506gq/5P8j5MNEwvf ujScx5ItnvK/tEf2cBefXdm3azqJumqguXPJkbx7GRxAZkiNENRmkUYOG4nypbyu8/Hs yNbjMmhrCwfU0FM7u7dKybvC4dRmdQJQMY6MUQGOjgvn901vlZgcwJkanQTt0XQGi3DT g6+JTYeVTyj80Vm4+xO7pBVM81E84qqTeVzUJHXsAahnMGiYlPm6qnzlq116lRzLCl4X nxN4GrFKtlrej57JbOkztSIR60gx5OqwoKI45KC4QzdZ7YubZwbVeScJuVMuC9+bmm1r lcOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709899086; x=1710503886; 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=toCza1XInuOraHxuy2SmQIYltdK3DEIguvFMU6ymn7Q=; b=WM4J8wJlc1gu/knoRVvebEtjHUu4OdQZc6FvdskqTkb1cPkbJFS9mWpp12APCPHIN1 /BpQS1UeR1zPNFeHHv2No56LBByzvlbQl+GdhBvUxBSY6kYSkHXdXy0C8KwJH68MG8P8 9XQ2u+YRZix2cWq8sYw8rQz3mouytbedIdWY+PLF/Ph44I79llm/FK4xsr7uh2QFUEDP 84wbSJaCIQcf9RnbstFEeuCRpb93eePvNDz3M4VF1Q6bZLV1W77zgLa3apQBl6yP379S p8Ys/6g/0Jlgv8TYl3rrRZzSXIM0G8JFlroVgM3pTND4dZDj0l8wrD3zV1adHZcikAcY EuaA== X-Forwarded-Encrypted: i=1; AJvYcCV0x0BJ2ecPzrqhhhPdKhYIvM2rpcoMQjUiaqE9alZ+WJAJhNJxh3nxdDZIyIccLAOzNiKGq4MyU3I6RFgy5FTbxcjDDCmddGJ3LRCK X-Gm-Message-State: AOJu0YwRyApdH4f9q5snv06KEEtaO0ydOQq9cEqo+mI1/IS7YUI4Q33o JrR4WMMxWsMdzLyffgMOJ1WK6HX7E87oYp5TSLENJ8WOjpOOPw2WQ2SdUB9H+ugPt9R4uAObeKo GMzcql3VmkCTM4EOFvQBkfTgEam/+Ita8MWGQvg== X-Received: by 2002:a17:90b:1bd0:b0:29b:3d08:c644 with SMTP id oa16-20020a17090b1bd000b0029b3d08c644mr14900070pjb.9.1709899085761; Fri, 08 Mar 2024 03:58:05 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240304094831.3639338-1-mingo@kernel.org> <20240304094831.3639338-7-mingo@kernel.org> In-Reply-To: From: Vincent Guittot Date: Fri, 8 Mar 2024 12:57:54 +0100 Message-ID: Subject: Re: [PATCH 6/9] sched/balancing: Update run_rebalance_domains() comments To: Ingo Molnar Cc: Valentin Schneider , linux-kernel@vger.kernel.org, Shrikanth Hegde , Peter Zijlstra , Dietmar Eggemann , Linus Torvalds Content-Type: text/plain; charset="UTF-8" On Fri, 8 Mar 2024 at 11:15, Ingo Molnar wrote: > > > * Vincent Guittot wrote: > > > > """ > > > The run_rebalance_domains() softirq handler is triggered via SCHED_SOFTIRQ > > > from two places: > > > > > > - directly from trigger_load_balance() in scheduler_tick(), for periodic > > > load balance > > > > > > - indirectly from kick_ilb() (invoked down the scheduler_tick() too), which > > > issues an SMP cross-call to nohz_csd_func() which will itself raise the > > > softirq, for NOHZ idle balancing. > > > > I'm not sure that we should provide too many details of the path as > > this might change in the future. What about the below ? > > > > - directly from the local scheduler_tick() for periodic load balance > > > > - indirectly from a remote scheduler_tick() for NOHZ idle balancing > > through the SMP cross-call nohz_csd_func() > > Okay - I updated it to: > > /* > * This softirq handler is triggered via SCHED_SOFTIRQ from two places: > * > * - directly from the local scheduler_tick() for periodic load balancing > * > * - indirectly from a remote scheduler_tick() for NOHZ idle balancing > * through the SMP cross-call nohz_csd_func() > */ > static __latent_entropy void run_rebalance_domains(struct softirq_action *h) > > Does this work with everyone? yes looks good for me > > Thanks, > > Ingo