Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1347778lqz; Mon, 1 Apr 2024 03:35:47 -0700 (PDT) X-Forwarded-Encrypted: i=4; AJvYcCXsyDv2oPvWRfs2ivZvUHRKWtwKsr123kTADniUwmKH2DRGlo1rhfr7hO7CCvIghvSSnZJ8otOihZi8bVvDapR73D+AWHVP9fgXjkph6g== X-Google-Smtp-Source: AGHT+IGz6kZzPwm9UzNSLG2w2IpiODfA1mjB6Msomf9EaX83jbpgyY417DVsl+KfYWN0emoHzk1S X-Received: by 2002:a50:d6c5:0:b0:56b:829a:38e3 with SMTP id l5-20020a50d6c5000000b0056b829a38e3mr6561135edj.16.1711967746820; Mon, 01 Apr 2024 03:35:46 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1711967746; cv=pass; d=google.com; s=arc-20160816; b=KTXgqxZKFgQdSYmVYsZHCHXRoYcGkwD4ItlcO4K6zHjzhOALFrxTJLBdPeunO3b29A M8BQWAcSDGTLFBX8HEVNcflBC0ZOdounAI9Ol7W06bLGrlDdZ/zy+lWhqH9JXQycXTd8 hf8mlB9nDXmaGuDqfL2fWuN58CzDg4CnY31F/xq8nVAK9eUnllsc2hJOTdGdPPL9pBK2 4dFBsZOQ6bsJPQX8EeIdWiPHYovdtCkYsxREGNLU2eMMZ8s9Od6GmRhYdf/9xf6dlPv3 h8fpQxDpUmDhtfW8REiO9GmzswZvT+w6fqvixm+OwoKlN0qaNzJcRGLe6c+9xF0+v3GG v6DQ== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=gflFRaec5NN9RfJ4L1873iEQ3hm8EbbWvvyreqMswuE=; fh=lGFu6CMNnGQ5U0KleYCi5iBqlGbSdg3iIa5Msy/sCE4=; b=FT8mVmK+neVURT/s2sJsISAsyYnoaoVXC7sz21dv9Y9wYEL+jqbrxhAzdAGX0zQIMR Ph9FFDyCyzwRxHkAAKq9KluG65XNci2QD9BSwNyAaUpnRYAX4QD+5JMKA7+QT/U+Py5b t9OPM29X/n/Wk5lHbHBeIbNTOfDRLga/86q/HtozgcSUk2JQT1rdSrxeO754JU/k5UUI qa9U/1cVadCH2fqNm6pj05Ij9wqj7dc/XjyRD/1j99hDzWbFHWQ41W/Km8014DFl7uKm ywRdbXIDI1Ju7kRR/XF+PacSlrnf4GVobO4t5W2NJppVY1KFjbpBtpsTwrn480VmaW+V 7R/A==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@bursov.com header.s=zoho header.b=Yc8m5U8k; arc=pass (i=2 spf=pass spfdomain=bursov.com dkim=pass dkdomain=bursov.com); spf=pass (google.com: domain of linux-kernel+bounces-126597-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126597-linux.lists.archive=gmail.com@vger.kernel.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 w4-20020a05640234c400b0056c53e9fc22si4278680edc.92.2024.04.01.03.35.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 03:35:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126597-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=@bursov.com header.s=zoho header.b=Yc8m5U8k; arc=pass (i=2 spf=pass spfdomain=bursov.com dkim=pass dkdomain=bursov.com); spf=pass (google.com: domain of linux-kernel+bounces-126597-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126597-linux.lists.archive=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 64E6C1F22485 for ; Mon, 1 Apr 2024 10:35:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5148D1C2AE; Mon, 1 Apr 2024 10:35:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=bursov.com header.i=vitaly@bursov.com header.b="Yc8m5U8k" Received: from sender-of-o58.zoho.eu (sender-of-o58.zoho.eu [136.143.169.58]) (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 17067171C1 for ; Mon, 1 Apr 2024 10:35:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.169.58 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711967739; cv=pass; b=K9ADJgNKbhclcvWnYGueFAwV8kvzUeDk0ye5uywDReelkLH8eWO/ZoIPCqE9/zQHny2DqVzk1Y/msAzSwute4dx4/FoCyFjGT7qxXgay+kgxBnnddlcI3/T7yQ6GMULyxeUGz8YML/LItHPfH0ay8wlrf1MJht0AF8YC1dfbJX8= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711967739; c=relaxed/simple; bh=T5UPnOqSN1OxMYf8MU9PBiT05JBXBdOZebD5wKyiIQU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=KpXJAOKxZqCQU1ofqfjn/tJem38EAeMURj03CMJ9SaBViAb19us8f0KPiBufLBfC9aLda3KV/DuDLcy/N6oLsrlaVdZNQ4qyqRzD984yR0mORqHkZF4jOpf3CCy3oQdrxU8jLDA8dHWpN57yWUvG+6UsYlkU1HKcqcjv+Kc3CoM= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bursov.com; spf=pass smtp.mailfrom=bursov.com; dkim=pass (1024-bit key) header.d=bursov.com header.i=vitaly@bursov.com header.b=Yc8m5U8k; arc=pass smtp.client-ip=136.143.169.58 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bursov.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bursov.com ARC-Seal: i=1; a=rsa-sha256; t=1711967707; cv=none; d=zohomail.eu; s=zohoarc; b=CO0EH0ncsJDUbpWxyct58wYiBvdbKzGnrjOfHcr+tZLX+S0o79ng+Md9R4AVUjoHlOdqCPuVb8BSlYbdBrm5IyVeGG3PQoafhmf5Lev6jF2QqG9rzbkC9Cz/TMVeQe4yZRYnIZKFskU1Y6ZfaxGV1gkkDN4S6d9VJ/fGNq+4BqU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1711967707; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=gflFRaec5NN9RfJ4L1873iEQ3hm8EbbWvvyreqMswuE=; b=YabcR4hju85qxOgOrCcwIYLk9FZL7QhhAcpjPOJQ6k2D5FmqWqqEa2oilqRcxO7ljdK45Z1yXRYLsbjrRq3Rbx2xTyz3deSi1TrPxtVg3O3OjbZU7z0bS3qX6XedN+Q8aTSxwQ10sY1Z74yO+4HbzW9nalrMGDAw3Rq2WDXBOlY= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=bursov.com; spf=pass smtp.mailfrom=vitaly@bursov.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1711967707; s=zoho; d=bursov.com; i=vitaly@bursov.com; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:To:To:Cc:Cc:References:From:From:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=gflFRaec5NN9RfJ4L1873iEQ3hm8EbbWvvyreqMswuE=; b=Yc8m5U8k1+DX9MPQLpA6umKR5pUpepTAS1FY+pz1m68TZtBzNnnbVl7Dqy6ehnXf REne9aN6Lt1cJbXX5dU1OjQpigijO/TepqD4LMELXavIUu+URKOyI5GFVl3yh6ft7MH xBi+Ozh1m7+W6z1EuNrDc5hwy6hciDMNc+uXgA4Y= Received: from [192.168.11.99] (217.20.170.230 [217.20.170.230]) by mx.zoho.eu with SMTPS id 17119677050351005.7836305119542; Mon, 1 Apr 2024 12:35:05 +0200 (CEST) Message-ID: <78c60269-5aee-45d7-8014-2c0188f972da@bursov.com> Date: Mon, 1 Apr 2024 13:35:03 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/3] docs: cgroup-v1: clarify that domain levels are system-specific To: Shrikanth Hegde Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , linux-kernel@vger.kernel.org References: <3d85926d-378a-4d5e-8303-92461bd3b100@linux.ibm.com> Content-Language: en-US, ru-RU, uk-UA From: Vitalii Bursov In-Reply-To: <3d85926d-378a-4d5e-8303-92461bd3b100@linux.ibm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ZohoMailClient: External On 01.04.24 07:05, Shrikanth Hegde wrote: > > > On 3/31/24 9:31 PM, Vitalii Bursov wrote: >> Add a clarification that domain levels are system-specific >> and where to check for system details. >> >> Add CPU clusters to the scheduler domain levels table. >> >> Signed-off-by: Vitalii Bursov >> --- >> Documentation/admin-guide/cgroup-v1/cpusets.rst | 16 +++++++++++----- >> 1 file changed, 11 insertions(+), 5 deletions(-) >> >> diff --git a/Documentation/admin-guide/cgroup-v1/cpusets.rst b/Documentation/admin-guide/cgroup-v1/cpusets.rst >> index 7d3415eea..d16a3967d 100644 >> --- a/Documentation/admin-guide/cgroup-v1/cpusets.rst >> +++ b/Documentation/admin-guide/cgroup-v1/cpusets.rst >> @@ -568,19 +568,25 @@ on the next tick. For some applications in special situation, waiting >> >> The 'cpuset.sched_relax_domain_level' file allows you to request changing >> this searching range as you like. This file takes int value which >> -indicates size of searching range in levels ideally as follows, >> +indicates size of searching range in levels approximately as follows, >> otherwise initial value -1 that indicates the cpuset has no request. >> >> ====== =========================================================== >> -1 no request. use system default or follow request of others. >> 0 no search. >> 1 search siblings (hyperthreads in a core). >> - 2 search cores in a package. >> - 3 search cpus in a node [= system wide on non-NUMA system] >> - 4 search nodes in a chunk of node [on NUMA system] >> - 5 search system wide [on NUMA system] >> + 2 search cpu clusters >> + 3 search cores in a package. >> + 4 search cpus in a node [= system wide on non-NUMA system] >> + 5 search nodes in a chunk of node [on NUMA system] >> + 6 search system wide [on NUMA system] > > I think above block of documentation need not change. SD_CLUSTER is a software > construct, not a sched domain per se. > I added "cpu clusters" because the original table: ====== =========================================================== -1 no request. use system default or follow request of others. 0 no search. 1 search siblings (hyperthreads in a core). 2 search cores in a package. 3 search cpus in a node [= system wide on non-NUMA system] 4 search nodes in a chunk of node [on NUMA system] 5 search system wide [on NUMA system] ====== =========================================================== does not match to what I see on a few systems I checked. AMD Ryzen and the same dual-CPU Intel server with NUMA disabled: level:0 - SMT level:2 - MC level:3 - PKG Server with NUMA enabled: level:0 - SMT level:2 - MC level:5 - NUMA So, for the relax level original table: 1 -> enables 0 SMP -> OK 2 -> enables 1 unknown -> does not enable cores in a package 3 -> enables 2 MC -> OK for NUMA, but not system wide on non-NUMA system 5 -> enables 4 unknown -> does not enable system wide on NUMA The updated table ====== =========================================================== -1 no request. use system default or follow request of others. 0 no search. 1 search siblings (hyperthreads in a core). 2 search cpu clusters 3 search cores in a package. 4 search cpus in a node [= system wide on non-NUMA system] 5 search nodes in a chunk of node [on NUMA system] 6 search system wide [on NUMA system] ====== =========================================================== would work like this: 1 -> enables 0 SMP -> OK 2 -> enables 1 unknown -> does nothing new 3 -> enables 2 MC -> OK, cores in a package for NUMA and non-NUMA system 4 -> enables 3 PKG -> OK on non-NUMA system 6 -> enables 5 NUMA -> OK I think it would look more correct on "average" systems, but anyway, please confirm and I'll remove the table update in an updated patch. Thanks > IMO the next paragraph that is added is good enough and the above change can be removed. >> ====== =========================================================== >> >> +Not all levels can be present and values can change depending on the >> +system architecture and kernel configuration. Check >> +/sys/kernel/debug/sched/domains/cpu*/domain*/ for system-specific >> +details. >> + >> The system default is architecture dependent. The system default >> can be changed using the relax_domain_level= boot parameter. >>