Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2892872rdb; Tue, 6 Feb 2024 00:21:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgRAPSeIvKRIwa93C9Y8i0nQj9cs3uJFZmjPTojdPQva7akKe5vEYflb/3razonDz8HZmd X-Received: by 2002:a05:6402:1485:b0:560:2580:9956 with SMTP id e5-20020a056402148500b0056025809956mr1328922edv.9.1707207691801; Tue, 06 Feb 2024 00:21:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707207691; cv=pass; d=google.com; s=arc-20160816; b=hMHxbWnygQAOhGjMoM1SQ0GA/xJnseAOJbBm6Y8PFy+tybADCwDNoibhorz97ChpxZ x+zwLO++rmKN60jBQdeOnSHIgZwGVj0KhKenkVGQGYnK/1i62G+EfAUuFBIW1S3Ufv2R +RHG2GVsfCqaJw0n3k35BWZ5YhgC2DfCXld4OsCd0JKgW9UoGYuhyAHFfOF7/kf/g/FU hNRmumekSsZvZZWMRAfMFq/LivcYAcQ/ahHyMflBBsvHedpS9TWEehNeDnNuPQmeAjSh PChCRW0lTzm7taJE1ZL5MhGz8ho70RofbBRbNr+V09R5pvp2qmUyxAVTw7k7C1QNnq/N Jm7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:date:message-id:from :references:to:subject:cc; bh=cR7h3nWFYAcmWaVCF1aQAT1dUdqiK//Jj3/nf+RXETA=; fh=EwBOUKQXRTFFWeYTL5jIUzl6KpC5nnKX2v8dsUjb9Y8=; b=CDt9vZNZ+dv7H2bW7ygrNzeTKZi7BqvyFj3of4twX2OSCfyMYpDfwRv6C5cxNJW6tR IR9/Vk8DHKFAZ8BzIeSImbP4jCwD8vGZhQ8fzxry2e58hyncxnHdubSUARJzRubvEGFN 4JkRwkRWRpKdg6b8wPZQbdybSjMULj1tbTQ6NDLLLeMEXtzk4kVEXi0qR4NcFbALUMeO PjO1agKE0svtOczsD9stV9K9rssnAOqZja2+4YPhACpp43QDSwx+JxXjF0xtsj8nmkIP 8qGldA/M5cyQ273I7+mZPc2BcrLkDAW+vHdIQUvYIWpv0iVKqkIkYD+ueVVLxOaSMVP2 HwmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-54485-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54485-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com X-Forwarded-Encrypted: i=1; AJvYcCUtXr24RqyZl/2ACSsoqCdxv1IlRXfDYjsJmxO95sF8+oXal8aeXYy0dNRU41eSo+17IS7vCVmZBXJdtSIcgKNnIqPCwX/fWmyo0iRAWg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j17-20020a05640211d100b00560b017219bsi377068edw.241.2024.02.06.00.21.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 00:21:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54485-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; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-54485-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54485-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 822AE1F23C8B for ; Tue, 6 Feb 2024 08:21:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F24E512B151; Tue, 6 Feb 2024 08:21:24 +0000 (UTC) Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) (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 7CC7912AAD9 for ; Tue, 6 Feb 2024 08:21:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.191 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707207684; cv=none; b=epJb8/uk1ix7wirQ4+a/FxPdZtzAoJ+C4gllbnVyyAZt3PuJjbe9djuKErKz81NgKSgx1vwgZlUrezssX3EXsesfTZMPvseCULkMzTYxtDK4o1nPLyygqRvI5/Hmq4BTMiCyLAIo7OP8xxpJsWq44mVCpIDnrU5MKXmMBRNNKmg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707207684; c=relaxed/simple; bh=qK+6gsbdbhaMWLT2zAP4/bSvk0MWrDRejO/dlXF6JJw=; h=CC:Subject:To:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=RLNvgb2fQ6ERGAewLV4elfzbHyhIOHFI/2MbDny8+66D5Yw3QLMBG+e1I3dqD6VBrcQLoBPeje9E8NLruOEjzuKhN9d+2N6W5oYS9vpGx9rl2C08AP8UL2AorMMiUdIwda//MqkcSUb7og6meXAzb2fDHxTiznOEksjTOK+oxQI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.191 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.17]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4TTbkf6X3Qz1gy8r; Tue, 6 Feb 2024 16:19:22 +0800 (CST) Received: from canpemm500009.china.huawei.com (unknown [7.192.105.203]) by mail.maildlp.com (Postfix) with ESMTPS id 5C7771A0172; Tue, 6 Feb 2024 16:21:18 +0800 (CST) Received: from [10.67.121.177] (10.67.121.177) by canpemm500009.china.huawei.com (7.192.105.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 6 Feb 2024 16:21:17 +0800 CC: Subject: Re: [PATCH v3 1/4] sched/fair: add SD_CLUSTER in comments To: Valentin Schneider , , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Daniel Bristot de Oliveira , , , References: <20240201115447.522627-1-alexs@kernel.org> From: Yicong Yang Message-ID: <36ca372f-5f08-5c1a-e468-4db026051e17@huawei.com> Date: Tue, 6 Feb 2024 16:21:17 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500009.china.huawei.com (7.192.105.203) On 2024/2/2 22:27, Valentin Schneider wrote: > > Subject nit: the prefix should be sched/topology > > On 01/02/24 19:54, alexs@kernel.org wrote: >> From: Alex Shi >> >> The description of SD_CLUSTER is missing. Add it. >> >> Signed-off-by: Alex Shi >> To: Ricardo Neri >> To: Valentin Schneider >> To: Vincent Guittot >> To: Juri Lelli >> To: Peter Zijlstra >> To: Ingo Molnar >> --- >> kernel/sched/topology.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c >> index 10d1391e7416..8b45f16a1890 100644 >> --- a/kernel/sched/topology.c >> +++ b/kernel/sched/topology.c >> @@ -1554,6 +1554,7 @@ static struct cpumask ***sched_domains_numa_masks; >> * function: >> * >> * SD_SHARE_CPUCAPACITY - describes SMT topologies >> + * SD_CLUSTER - describes CPU Cluster topologies > > So I know this is the naming we've gone for the "Cluster" naming, but this > comment isn't really explaining anything. > > include/linux/sched/sd_flags.h has a bit more info already: > * Domain members share CPU cluster (LLC tags or L2 cache) > Cluster topology in scheduler should mean CPUs beyond the SMT which are sharing some cache resources (currently L2 on some Intel platforms or L3 Tag on our platforms) but not the LLC. A drawing in c5e22feffdd7 ("topology: Represent clusters of CPUs within a die") has a good illustration and comment of cpus_share_resources() also illustrate this a bit: /* * Whether CPUs are share cache resources, which means LLC on non-cluster * machines and LLC tag or L2 on machines with clusters. */ bool cpus_share_resources(int this_cpu, int that_cpu) > I had to go through a bit of git history to remember what the CLUSTER thing > was about, how about this: > > * SD_CLUSTER - describes shared shared caches, cache tags or busses > * SD_SHARE_PKG_RESOURCES - describes shared LLC cache > > And looking at this it would make sense to: > rename SD_CLUSTER into SD_SHARE_PKG_RESOURCES > rename SD_SHARE_PKG_RESOURCES into SD_SHARE_LLC > but that's another topic... > >> * SD_SHARE_PKG_RESOURCES - describes shared caches >> * SD_NUMA - describes NUMA topologies >> * >> -- >> 2.43.0 > > > . >