Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp67764lqh; Fri, 3 May 2024 13:39:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVrdECX9w3R7+qwoev7MC973qmpqj5RfU4imsJC/DsEOSpgFLxZNAkuoYYaeEx8lc352dVbYtqfn6ncyecmvVysNLeNP3MPpblWGscJ6A== X-Google-Smtp-Source: AGHT+IGiQbmUGhCpO4rt7lsYroAALtNT7vuJeviub8arvRyeNyhmrIAkNbIJp1H9rMA6+NCwm3tQ X-Received: by 2002:a05:6a21:9985:b0:1af:3855:b63f with SMTP id ve5-20020a056a21998500b001af3855b63fmr11484561pzb.9.1714768762601; Fri, 03 May 2024 13:39:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714768762; cv=pass; d=google.com; s=arc-20160816; b=SMEJYlNzHEIraMwWakIiH/3LoRJA+9WfnzD5tsna+dL6cD0Af76rma0S/x2YeHUz0z 8tV/lpuiYbSzQUQ4oF55aBXtlAifpPTxWc6SHV3XceMBZnTI+qijyqInP929Lowf6dCa 9ocxPijE+jMSMMGmxh5VUtOf8jL+j429iAxed7Zljvxd/TXfpiwrIhlm42reKSQF8iUn mn9EiEyrQjXw6wt63Ca97OvYnTCYD7fmyM4Q3wh7nTnyDDnt67DqeMlzQ+1SKFXLKnYR kTbw4YOOc28qLALnxnbvOCSwQc8w7WeOlO31BkTBaarqOmCRvSM9ArptkuwApCUVun+7 CLBQ== 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:dkim-signature; bh=eyqrW/xWaKZaH5I5TCssErEk1oJNzIYSXxB2STsaua4=; fh=qTx768JYq6oxdX3jfjUzjJGF83d0IKGtQzHdow3lchk=; b=s7zbGTFocfgFWcsOFqUHNzVkfbTrzyNVXDdcvdWdz8mM3gA5UtfN5HEd6FoKMV+PR/ P3aO3ghO+TGdg2luaGFw51vb71mEmW8kmj1cuRuvdYOEGjcbbcp1GG0JnvpdDMZsFHQ+ J3jcOE5AcbjXcGzkRxRswTuSAgjQDkeFbi0O8mMZguSoxWIcxzMkkOBOyUuLmfInQEc3 5+t0TAIpdtzrTlSGvx9l6UjywYKWGBcIFLk/xjI4LnXAwjNtQCY3RudBLdqNR2VxQfbl vqiqruSxA17fOTJTR6x0nd/Cuz+e7R0Lvk6cx33WcJAZWzMZlBSOohNer52px8xvlb3H E/Qg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MjJP8naR; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-168192-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168192-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id b11-20020a63cf4b000000b005e4f1d48cbfsi3705598pgj.816.2024.05.03.13.39.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 13:39:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168192-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MjJP8naR; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-168192-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168192-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 42BD2B21964 for ; Fri, 3 May 2024 20:34:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D9E1367A0D; Fri, 3 May 2024 20:33:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="MjJP8naR" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (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 36D3D250F8 for ; Fri, 3 May 2024 20:33:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714768425; cv=none; b=stlJs37wUJjIfQuhRhtB00QLCQoXwV8d4hBOVQeMbIPeiizYxD3+5kSybZ9HAD4YyuAbNZBJhPQXbmxTIsONXComN1vOaPyoTopCljix4jZp4AJcZS+rYUm63ZA48D68EbBLxJM1FkueiFNEZoejl9fLSMQkP/GW8DybVvPBuRM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714768425; c=relaxed/simple; bh=qTA6gl03vEuZNwR+0yktOI8EhYVtmjYM4Gw1yRj+4sA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aJYqIgPFb08NZ0DP3GGK31Q+OyTdUOs7VmaMZwzIc4NDF1QIRGg+pQFMTSLwU8yrX4zLnRUDlMWqjEqhdquT0h/BNg/+c//Orh+j1xbWB+EZfPw/9K+YLy9y5XXQC8XLer/8vM21w7MHw4VHECaepVdRccimXkV5OwnIx2Ct/eE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=MjJP8naR; arc=none smtp.client-ip=192.198.163.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714768423; x=1746304423; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qTA6gl03vEuZNwR+0yktOI8EhYVtmjYM4Gw1yRj+4sA=; b=MjJP8naRUFD8MpRtHOCAgbsg4pxZ9kLNWhdwOKVh5z53KK5K/ukUGM2A uwXmV2JSzIOpsdv3LTR+RxIIi1z/JPiIUps27N5/hWYRANwFQgi1b2raV GYqpXnARN5ic/Go4KjWJdpnVh3y2B26WetBNbU2xZ/S4vMm60PQ6IFGK6 6qEqjQeeWWV+gYsxwHRBbUZzPog05rxo3/c4B5TnoasqOlURqGinS43PV Xj+nB8YPYYtBsRhIX3IzVy4J+Xa98gA4bKlgQj7OjVf3utdcnuQf0VEOY FuP3Ul3L+DwwqI9VOQFfvRgG897D0ZbjF6ZXqSASljBNLqrLUd6IWl93p Q==; X-CSE-ConnectionGUID: o3iY6SQxSDGrESEQaI/igw== X-CSE-MsgGUID: Z4hRwXvWTsKqS8lj9/fB5A== X-IronPort-AV: E=McAfee;i="6600,9927,11063"; a="21274322" X-IronPort-AV: E=Sophos;i="6.07,251,1708416000"; d="scan'208";a="21274322" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2024 13:33:37 -0700 X-CSE-ConnectionGUID: B5kHTAt1QDuB6t/29nEybg== X-CSE-MsgGUID: Ksg6DLVySU253L98uN1/Vg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,251,1708416000"; d="scan'208";a="27431835" Received: from agluck-desk3.sc.intel.com ([172.25.222.105]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2024 13:33:36 -0700 From: Tony Luck To: Fenghua Yu , Reinette Chatre , Maciej Wieczor-Retman , Peter Newman , James Morse , Babu Moger , Drew Fustini , Dave Martin Cc: x86@kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH v17 9/9] x86/resctrl: Update documentation with Sub-NUMA cluster changes Date: Fri, 3 May 2024 13:33:25 -0700 Message-ID: <20240503203325.21512-10-tony.luck@intel.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240503203325.21512-1-tony.luck@intel.com> References: <20240503203325.21512-1-tony.luck@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit *** This patch needs updating for new files for monitoring *** With Sub-NUMA Cluster mode enabled the scope of monitoring resources is per-NODE instead of per-L3 cache. Suffixes of directories with "L3" in their name refer to Sub-NUMA nodes instead of L3 cache ids. Users should be aware that SNC mode also affects the amount of L3 cache available for allocation within each SNC node. Signed-off-by: Tony Luck --- Documentation/arch/x86/resctrl.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/arch/x86/resctrl.rst b/Documentation/arch/x86/resctrl.rst index 627e23869bca..401f6bfb4a3c 100644 --- a/Documentation/arch/x86/resctrl.rst +++ b/Documentation/arch/x86/resctrl.rst @@ -375,6 +375,10 @@ When monitoring is enabled all MON groups will also contain: all tasks in the group. In CTRL_MON groups these files provide the sum for all tasks in the CTRL_MON group and all tasks in MON groups. Please see example section for more details on usage. + On systems with Sub-NUMA (SNC) cluster enabled there are extra + directories for each node (located within the "mon_L3_XX" directory + for the L3 cache they occupy). These are named "mon_sub_L3_YY" + where "YY" is the node number. "mon_hw_id": Available only with debug option. The identifier used by hardware @@ -484,6 +488,19 @@ if non-contiguous 1s value is supported. On a system with a 20-bit mask each bit represents 5% of the capacity of the cache. You could partition the cache into four equal parts with masks: 0x1f, 0x3e0, 0x7c00, 0xf8000. +Notes on Sub-NUMA Cluster mode +============================== +When SNC mode is enabled, Linux may load balance tasks between Sub-NUMA +nodes much more readily than between regular NUMA nodes since the CPUs +on Sub-NUMA nodes share the same L3 cache and the system may report +the NUMA distance between Sub-NUMA nodes with a lower value than used +for regular NUMA nodes. +The top-level monitoring files in each "mon_L3_XX" directory provide +the sum of data across all SNC nodes sharing an L3 cache instance. +Users who bind tasks to the CPUs of a specific Sub-NUMA node can read +the "llc_occupancy", "mbm_total_bytes", and "mbm_local_bytes" in the +"mon_sub_L3_YY" directories to get node local data. + Memory bandwidth Allocation and monitoring ========================================== -- 2.44.0