Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1732465lqg; Mon, 4 Mar 2024 01:51:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVJz/4IIREEsrhEnGP1wVGrXe7Xk9azrW2DXDW2UUbk0bYT2V/3+d7G4mPcH2xCurGpzRqyv14SaejU3fcqFWdpswsMYx/8rlZwDTuMIg== X-Google-Smtp-Source: AGHT+IFTMA7V1DQKV9PhIhQdk1z2dhOaY/FgBMB6vcB2dvNcl8ZtMYfgGPF+DsTb7mkP+ZbN6H/o X-Received: by 2002:a05:6359:420c:b0:17b:57eb:e752 with SMTP id kn12-20020a056359420c00b0017b57ebe752mr5321883rwb.13.1709545890661; Mon, 04 Mar 2024 01:51:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709545890; cv=pass; d=google.com; s=arc-20160816; b=Xzm2/kwsy8wztCXQoIHgtlyrTF2fQnUqJu1frvTZY/aT2dPkcMNnhGzCh7KatZN+0Y eO7p+B7ZTdkGLMtvbOt8Mwl5NdmU200zh4vIrWTE1+qd/E1+W5EG9bFqqM49x+5vp141 WCQqpmKe6BRAWwVkTxIZIlrKD2n2pgkj8Yq7VQlK4bdGppD83mFdYk9ChFd10okGDaa5 WyP12HXnLIi6vVEuxIs28i9FJOm+ziJvp/EdnKvL0QhqvORvXYjojo4DXi7IS5CvlYlX ihszhjy1cCpfwwnZ5z+z/XfSu8E9ORvET0Z3qN2vBhivP0dRoerjl5tl5hrzEscBtEY5 SW6g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:sender:dkim-signature; bh=XNOPsWtOzHmhyJLPA4H5Sikwc9camJCP2VR8Yk1oBD8=; fh=vtn8BV17FxZCrT5lfDoFHvvFiNhej5/zWe1lGP7P6Og=; b=Mm8nYYH1PISSo7xXm2fTzJGBGAl02naTU7SsSL5VO7HnOZWeXYQn11uRYkgXI4GyNQ k+ipfe/ODoNfW14Vw4m2NYsdhBNOwNT7aXgjxM+OzAu2GIjzRV3dkmsfbfQqI9kKhgXd 9oBB59AsD1pcTYXfMmmeVxMZepueLhxVtLI4lU38RAGrNItlFV4EtGrSUaBtu2h/O6IF BuxQpkMtKE65IqAw4JSok+zpmbtj6HmbjqtsRNdExgMbnvcIlIpCKVZTVxpi5pEybIoD VRXKQ4/eF6J8zfgjypX7esFImTp8tgYxx/aZY/q3V8HErpmngNpYBnCjvC5qYKULaCFP HjWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RVE9sAto; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-90353-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90353-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v18-20020a05620a0a9200b0078822dfd5afsi3016282qkg.312.2024.03.04.01.51.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 01:51:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90353-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=RVE9sAto; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-90353-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90353-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 464F21C210E0 for ; Mon, 4 Mar 2024 09:51:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 88B6F38F91; Mon, 4 Mar 2024 09:48:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RVE9sAto" Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 D3FE4376F7 for ; Mon, 4 Mar 2024 09:48:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709545734; cv=none; b=O5JBahLZ+DF2QutSc7sNeK4m30con9VeQCbn8uin3aAYbI7A48p7ypMvMOcUxYetxqC0LNcAyBpoY6R7lZI3kP5dby6hk8z5SWXQIBp5b5n3YJu/2a6FvPotWPQIgcVSjSdBkyVJ058n4tz6SpbwfeOXXTuNVVIPAVgvU/yQmco= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709545734; c=relaxed/simple; bh=5q4oEyd8gvew6IIC9Mzd7ppJ4jXjtnRcQTUuMhWmx0Y=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=W+tjDeaWERFmU07f3+ga9UGUbc5401nwnN5JSCvWcyeQfpORvES4g1+9iDAvA54dqit2fLXEKSLwKTUchqdstbiBRs0GncIGtNk1FUfXr3N/b7ZW33UWBGlL1pogWFMOf9M5VgaRkx2e71SubT7ACLpX2K3cfoIfXncNihgPoU8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=RVE9sAto; arc=none smtp.client-ip=209.85.218.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a452877ddcaso107787166b.3 for ; Mon, 04 Mar 2024 01:48:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709545731; x=1710150531; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=XNOPsWtOzHmhyJLPA4H5Sikwc9camJCP2VR8Yk1oBD8=; b=RVE9sAtoD82SWvKSCdKRsDZOE9etGwaEbt5Ci8aQdN5LAIQJ4QVzkoA4brMhUZrwd+ dHfLbvxaGjyMtRpOukzK9wiSiXxtbZY80RFaiRnnOkDPS79K8gyPJlkgpqG1/C81Ewij 4qxw1Cxby/DtHUvNZRss3xUc/OnglVoikAdAorZMidvc7b+DGw/1vmU3evazp9Ih37th KhX1psyp9C2tN8Gid0O6W5Lab7sGoMxnSbsSsOxdTpu1jXAcphkCtl3kkCNwiGj58wjs eOggwt5r646r+bcohhhbQnKWPy74OYMsaNqd7FM22Og3ZlIbyTc8Rta++svgx+YO7FUG +xjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709545731; x=1710150531; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=XNOPsWtOzHmhyJLPA4H5Sikwc9camJCP2VR8Yk1oBD8=; b=qxA2qociFxO0B9wq4CIciZv05Xx0oj2n69G025Dc2xyGSIKdnvLVEKXVh98EBl3HL+ 5f8MrHuNMC1oi0gOKeZELpLPTrAqXMa983CMpnUjOcxjCv0zAHA8DpIxwsd5nt7eMDDc bVVeiDRQEj6sU4T+oclBSg61zwR9jtCtO+d1ATb7XG0T8oVuDJSUb9XtCgm+ih+ExZ2s qgZqsLGWNvkCh/GMRh0mU4Ra4weWl7oqxk5Y0nJgWwhYKcgSmtPkNsPRDWL9zliFCTTx ocdoflVpEq8CvqGi0sUwmxyqrIFmD5daGRxLnuhtp/4/6lASjH1ZHmoYP6q0E+L54vrs TwUg== X-Gm-Message-State: AOJu0YwZpiHIRrpf5U5gD6928bQHSM8CHuUNL6O3WTtykJKdB1C0THA5 +gmKjJiuhRz5rGQKaDUNO2SNsTHRH8wcI2T8fmNFdusFmtyDqPH3CSpmmZb7/w4= X-Received: by 2002:a17:906:349a:b0:a45:214b:73cb with SMTP id g26-20020a170906349a00b00a45214b73cbmr2116320ejb.36.1709545731205; Mon, 04 Mar 2024 01:48:51 -0800 (PST) Received: from kepler.redhat.com (1F2EF13F.nat.pool.telekom.hu. [31.46.241.63]) by smtp.gmail.com with ESMTPSA id s22-20020a170906501600b00a42e2bc82dbsm4569839ejj.169.2024.03.04.01.48.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 01:48:50 -0800 (PST) Sender: Ingo Molnar From: Ingo Molnar To: linux-kernel@vger.kernel.org Cc: Shrikanth Hegde , Peter Zijlstra , Vincent Guittot , Dietmar Eggemann , Linus Torvalds , Valentin Schneider Subject: [PATCH 8/9] sched/balancing: Update comments in 'struct sg_lb_stats' and 'struct sd_lb_stats' Date: Mon, 4 Mar 2024 10:48:30 +0100 Message-Id: <20240304094831.3639338-9-mingo@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240304094831.3639338-1-mingo@kernel.org> References: <20240304094831.3639338-1-mingo@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit - Align for readability - Capitalize consistently Signed-off-by: Ingo Molnar Cc: Peter Zijlstra Cc: Vincent Guittot Cc: Dietmar Eggemann Cc: Linus Torvalds Cc: Valentin Schneider --- kernel/sched/fair.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index fc4b2df7ddf2..0eb2cafa1509 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -9433,17 +9433,17 @@ static void update_blocked_averages(int cpu) /********** Helpers for find_busiest_group ************************/ /* - * sg_lb_stats - stats of a sched_group required for load_balancing + * 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 group_capacity; - unsigned long group_util; /* Total utilization over the CPUs of the group */ + unsigned long avg_load; /* Avg load over the CPUs of the group */ + unsigned long group_load; /* Total load over the CPUs of the group */ + unsigned long group_capacity; /* Capacity over the CPUs of 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_nr_running; /* Nr of all 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 idle_cpus; /* Nr of idle CPUs in the group */ unsigned int group_weight; enum group_type group_type; unsigned int group_asym_packing; /* Tasks should be moved to preferred CPU */ @@ -9456,8 +9456,7 @@ struct sg_lb_stats { }; /* - * sd_lb_stats - Structure to store the statistics of a sched_domain - * during load balancing. + * sd_lb_stats - stats of a sched_domain required for load-balancing: */ struct sd_lb_stats { struct sched_group *busiest; /* Busiest group in this sd */ @@ -9465,7 +9464,7 @@ struct sd_lb_stats { 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 */ + 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 */ -- 2.40.1