Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp497003lqc; Fri, 8 Mar 2024 04:02:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWs8di102oWjUPabNLIPTOffDTCjinsVZ5yjDXHwdVG58431iI0iex6pbG16w8BemRLUEP7+ayKRrbBpCQB+qclMGqKwiLgFKOXRDdouA== X-Google-Smtp-Source: AGHT+IEtRsb4xRnYa9D8CNOcY6uQRof2fQ2hJFglTz3ELA4zDWAX7+OBY/UtSUY9mo8PhXrT0sfX X-Received: by 2002:a17:906:c44b:b0:a45:c99d:3625 with SMTP id ck11-20020a170906c44b00b00a45c99d3625mr3580491ejb.23.1709899327783; Fri, 08 Mar 2024 04:02:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709899327; cv=pass; d=google.com; s=arc-20160816; b=H+LGz4+BQF6TZxtYimsWD9w8YCxy9x6JPREj4nXD6fUYFoyQvonWGj321vAhd1eLB8 o8LBmFreuhZzaf33FUOCxM8r6MbJ48x/GeJUXTfN1pGrQRovggGIFivXS2NorX1gsbAs Y9e+h4EtlXb8DO1a3VR4BLd1y/AJjHiYdDJGie3/A7Uyc+vM5X/y0cy9ACCo1C2MawCU XqEkl1C9DFWccNVMsFIQPvCe3fuFvB1zj+CBaDr7CujCVfL77JMlI0AJ2jh+FAAr+foW qjDyWyK2Vwdl5PdJfwqsW4zvgDqO3CEthHLdHD0Id1hR47q3+JYPzhjzCCi11eK3Dgrp zEqQ== 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=UpFXbxHyDDIXq6xBO2ciUViM+MprPaGpz2/78ljgIr0=; fh=fH2O/lYcFWakf0PN2MNMiGhF8WA+YGdbDpu2fQNBS2A=; b=HJlslK31G93X8wfr7TEXdgM4cEIVf3CLO2CUBZQWMTngFiNns+/N5lvKQefGwfPeCP Fp+IqGKLsxf983tSi6Omc6VVQlC+Afbh2jyy7q4QoxBi4ewyrlZtTECZSTsYIObpkUM3 lWUXKFi8Q7tEPsoeqXwT7y2asOo5IsDhOHoFUVtn6yGMImg4kSLP/jkbAATVOCiisXn9 Tcok3BARidp0V9zCHozCcVv1vook0/C453C0PR0U1eWBsImZnLZ4HKnuKQtn2c7HEmiT Ow/uFX5VHFx+oj6WEgZkxpFEaKHvoy7XHtZJ0aCOoIJocuCx6oUPUx9ks8FnYOiXBLUV Y6bg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ribX3y84; 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-96968-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96968-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bw11-20020a170906c1cb00b00a44238a9367si7818818ejb.496.2024.03.08.04.02.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 04:02:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96968-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ribX3y84; 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-96968-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96968-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 596021F21954 for ; Fri, 8 Mar 2024 12:02:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 926B156473; Fri, 8 Mar 2024 12:02:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ribX3y84" Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (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 11FC055E78 for ; Fri, 8 Mar 2024 12:01:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709899319; cv=none; b=jcTaZjZYfyvGg6OiRoyqeUH2N+u+U0iadSsYkPhAOIq3l3eWAr79j/VjRedbq3eZuCP/87T5cKKS87cI2EIUg49sFuJv0N8gxZWvGzM+LNDc5CIseZfy1y4AEKs6uoEFPl7dlNFN5R2vKfrzywuUXIX3IjFF4AwBK55P2c7/3sg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709899319; c=relaxed/simple; bh=oeP7aC45TRtPWvlWuB0bbz3B6QHquGjrT2HnyIlow1U=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=sMdS6yKiqabf3qM4BDjmqFUSL6NXlb3sg3eXSrLhXN1a9AnSlJDKvA/DL+WNb3Hwkoxbuj5yYwnpTuHv+xanbeMzaVn4scL4ebMllL7OPmKg7gGt2g4fZnyAAX6Q3sS3iD4uOl9zhv+xIFiGAJpj5mwTE6HndPONOzQithoGUAM= 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=ribX3y84; arc=none smtp.client-ip=209.85.216.42 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-f42.google.com with SMTP id 98e67ed59e1d1-29ba41e6dfdso962796a91.1 for ; Fri, 08 Mar 2024 04:01:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709899317; x=1710504117; 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=UpFXbxHyDDIXq6xBO2ciUViM+MprPaGpz2/78ljgIr0=; b=ribX3y84Z9T0o4JcvVaT+bIZQvFsaSayBhF9yv0zE9C40VaZZPaDoT3962h12rqJBq mJI+vdeGedHGOaYyQRKdjPaCbX9wHedqO8sOPq9jIYIt9tT/ubxHKWU/5IHKMWDkckR1 zzBS8+Az3sPzD11dv3q2/jAmb5+OzFb/kH6gi4K8kNhGcFyW7BXjH2KSVOqONWUqz6sr 1g3GPAs1pyJrVeB69DxmnyU1YnuAWEYSnROAKmDxtv3ylkv1mP7zu0JAwzPxARjw9MlJ VX5idicCnGcagsC1Q2UiWemIe1wdPTDDzK9grT9BEAsCtcaov969NBMEg6qfdIAkHz94 Y9gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709899317; x=1710504117; 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=UpFXbxHyDDIXq6xBO2ciUViM+MprPaGpz2/78ljgIr0=; b=W3mwjIRsBP6+wMF2ubv8cSJAPmbM9DUatj3UVg7bcEjwFOJ94LvZOpKdDd3s+mmJ4k 70TkcTOA/mdKKF11pw/oW1GVnAnETFjuN532ACpinHjnT6NRruNGkbplZcDZ/exgnln6 kV69Qf2axlHFF6Vf9dmK1w4MDe1EnNuhIh+PrX9qC3xK+prGwH54TDAPs9crW9O2zmyl UtTGL46lmj42Mv71QF4nM9OeBCtDKNrDFIJ1o1dX2gpNTJeV/Y/1fJDTvDrw9CXVGQXd TX2EGYB9BqUDscl+9MNhNzx31ZQuFL6sfY5H1ehbVTywyRpySKiBaKlF8YTIV5sbnDjb o7nw== X-Gm-Message-State: AOJu0Yw60PPvtC4+XW1X/QRFhR096Sqw58W++ER4OcF4yELaXX4/f92J HKcT2JqgweW4qfZlYtSORzAh7eOOF16Owj9OWY2imjqIn0cFslkdVh1Qu2YZSio/cc17h+7JaTW LArp+aYwlTJlnVKMyk58pbs5Ja8yVg5VK9RGGOg== X-Received: by 2002:a17:90b:3507:b0:29b:a1b9:50d4 with SMTP id ls7-20020a17090b350700b0029ba1b950d4mr2929807pjb.45.1709899317353; Fri, 08 Mar 2024 04:01:57 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240308105901.1096078-1-mingo@kernel.org> <20240308105901.1096078-10-mingo@kernel.org> In-Reply-To: <20240308105901.1096078-10-mingo@kernel.org> From: Vincent Guittot Date: Fri, 8 Mar 2024 13:01:46 +0100 Message-ID: Subject: Re: [PATCH 09/10] sched/balancing: Vertically align the comments of 'struct sg_lb_stats' and 'struct sd_lb_stats' To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, Dietmar Eggemann , Linus Torvalds , Peter Zijlstra , Shrikanth Hegde , Valentin Schneider Content-Type: text/plain; charset="UTF-8" On Fri, 8 Mar 2024 at 11:59, Ingo Molnar wrote: > > Make them easier to read. > > Signed-off-by: Ingo Molnar > Reviewed-by: Valentin Schneider > Cc: Dietmar Eggemann > Cc: Linus Torvalds > Cc: Peter Zijlstra > Cc: Shrikanth Hegde > Cc: Vincent Guittot Reviewed-by: Vincent Guittot > --- > kernel/sched/fair.c | 34 +++++++++++++++++----------------- > 1 file changed, 17 insertions(+), 17 deletions(-) > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index b567c0790f44..40b98e43d794 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -9436,19 +9436,19 @@ static void update_blocked_averages(int cpu) > * sg_lb_stats - stats of a sched_group required for load_balancing > */ > struct sg_lb_stats { > - unsigned long avg_load; /*Avg load across the CPUs of the group */ > - unsigned long group_load; /* Total load over the CPUs of the group */ > + unsigned long avg_load; /* Avg load across the CPUs of the group */ > + unsigned long group_load; /* Total load over the CPUs of the group */ > unsigned long group_capacity; > - unsigned long group_util; /* Total utilization over the CPUs of the group */ > - unsigned long group_runnable; /* Total runnable time over the CPUs of the group */ > - unsigned int sum_nr_running; /* Nr of tasks running in the group */ > - unsigned int sum_h_nr_running; /* Nr of CFS tasks running in the group */ > + unsigned long group_util; /* Total utilization over the CPUs of the group */ > + unsigned long group_runnable; /* Total runnable time over the CPUs of the group */ > + unsigned int sum_nr_running; /* Nr of tasks running in the group */ > + unsigned int sum_h_nr_running; /* Nr of CFS tasks running in the group */ > unsigned int idle_cpus; > unsigned int group_weight; > enum group_type group_type; > - unsigned int group_asym_packing; /* Tasks should be moved to preferred CPU */ > - unsigned int group_smt_balance; /* Task on busy SMT be moved */ > - unsigned long group_misfit_task_load; /* A CPU has a task too big for its capacity */ > + unsigned int group_asym_packing; /* Tasks should be moved to preferred CPU */ > + unsigned int group_smt_balance; /* Task on busy SMT be moved */ > + unsigned long group_misfit_task_load; /* A CPU has a task too big for its capacity */ > #ifdef CONFIG_NUMA_BALANCING > unsigned int nr_numa_running; > unsigned int nr_preferred_running; > @@ -9460,15 +9460,15 @@ struct sg_lb_stats { > * during load balancing. > */ > struct sd_lb_stats { > - struct sched_group *busiest; /* Busiest group in this sd */ > - struct sched_group *local; /* Local group in this sd */ > - unsigned long total_load; /* Total load of all groups in sd */ > - unsigned long total_capacity; /* Total capacity of all groups in sd */ > - unsigned long avg_load; /* Average load across all groups in sd */ > - unsigned int prefer_sibling; /* tasks should go to sibling first */ > + struct sched_group *busiest; /* Busiest group in this sd */ > + struct sched_group *local; /* Local group in this sd */ > + unsigned long total_load; /* Total load of all groups in sd */ > + unsigned long total_capacity; /* Total capacity of all groups in sd */ > + unsigned long avg_load; /* Average load across all groups in sd */ > + unsigned int prefer_sibling; /* tasks should go to sibling first */ > > - struct sg_lb_stats busiest_stat;/* Statistics of the busiest group */ > - struct sg_lb_stats local_stat; /* Statistics of the local group */ > + struct sg_lb_stats busiest_stat; /* Statistics of the busiest group */ > + struct sg_lb_stats local_stat; /* Statistics of the local group */ > }; > > static inline void init_sd_lb_stats(struct sd_lb_stats *sds) > -- > 2.40.1 >