Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp277024lqb; Tue, 28 May 2024 15:33:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUp69eZif15MhQ4Ivqy4sZAEdtLYQZOKn/6+MzbZfpZeIELgW4R//d4S5SgXyycdZWsR4IOiSoYTONlekVzu6NSBkYKhNtaTxgS10+hVQ== X-Google-Smtp-Source: AGHT+IEKLFjQ+yIiJm55PKPU8+L7TsSw5ufHA6QtiRRj34Q1/IqOnDcYehsdAb+mQQaSkuAK53N5 X-Received: by 2002:a17:90b:80e:b0:2bf:ae7d:4894 with SMTP id 98e67ed59e1d1-2bfae7d4bf1mr8029612a91.19.1716935592706; Tue, 28 May 2024 15:33:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716935592; cv=pass; d=google.com; s=arc-20160816; b=B8JE6e4X1gD/Uz014bu8wVPS92x/QMqueBLzfXYrgA2dwUuLDiSFbdyL4opNOc4tHM XE5CJvxn8p7JT0p7myR+Ud5xEGKEVH1PBgxyqlWrOo1QHACU3r0fd7ApXEUNqnGzKKib Ox1LaZudWzXRU15f9wtVwAtLuGLquVD7FPqfnYfm8FHAwwdFK+/MjO9dJ2lyNFg/CaFi QGqMTqFZ9JKMa7/Fx7/Djfj4VceAW2gJhiI/i723PoMjDLiVyt7tg2anQ3BmmVkA0HAA 4aL7YepvITc70+hFlnvDSSxIK0/pmi7BvrvkY8p5uRIeO54xne7Ls5e2Z0sVN7gU8E5O qqlg== 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=IVHE2LIEhb0IUc0rBGc3+0I9x6H+FQ+hcgCSPUmZJjY=; fh=qTx768JYq6oxdX3jfjUzjJGF83d0IKGtQzHdow3lchk=; b=fjYgiNSluXO7XjIB0Vw1MtECUTvr6EeZDcy9/xVthyn/kJ7GMiCSSSmWT6QZf7WYEA UGjSB+/XpZ1VWLPHuhm9U4TvbGhtbaj86hIMi3BT6sMA5CgFfy/ZaJ1Tnot+hAT9ZqQq dthhKYNTWVbafJVxd7WQxADclEGD/zvxScHsd69MOgQRX+sTjsm0Zsdn5bYMScFnq3nS YWDp3YSVlnDGmcBujm+IS4rQkkoIfHEY9cOCoz8sXksbdbYFJuax/T8NufQOBgtsFIYf dzpZWrI8UCilIXkj69j+FsoQITAE5ZXXuiNPizTrG04kMzPH0FKrCtNtXFWr0gVjXEHa tSZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kj5rdyzj; 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-193174-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193174-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bf80051ed5si7154550a91.120.2024.05.28.15.33.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 15:33:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193174-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kj5rdyzj; 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-193174-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193174-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 86A6928A941 for ; Tue, 28 May 2024 22:23:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D502145B0F; Tue, 28 May 2024 22:20:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kj5rdyzj" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 A00141442ED for ; Tue, 28 May 2024 22:20:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716934831; cv=none; b=FrwTttjSCLWf4VYdzPmiVk/p9+1GI1ERQTGzYuStpYPHYT0B/ys/OQ4vbzuLDCFDsH/1hk1h5tb9Qszo0Mbhvtm7QApNedGIxlV413tiXHxZXpwK7IuYaiQpYDYPO5PF/ex/S1JMkg01AhoAvl0syZHr7G/54+VD7sCu2CqoVig= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716934831; c=relaxed/simple; bh=MEbLVytHgbRbmQpGtYO+XqR9GjkKAJY7wKHhQb0mGU0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=C6o39TLaj6nDL3dxzDvLj/WoS+qhsLZH5GT+EuEaztb/NUZ8vELCbajZU5IYa9Fby053PgAzTUQokwpPjsOnJ6rL1nw/qeNAmAuSFU2nOXiA9CG0C1hQMgDdjupYzgCPL7meLtcEP2moyWpy3Dtzt5qPJQYij0t/jLbxX4q1wPk= 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=kj5rdyzj; arc=none smtp.client-ip=198.175.65.10 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=1716934830; x=1748470830; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MEbLVytHgbRbmQpGtYO+XqR9GjkKAJY7wKHhQb0mGU0=; b=kj5rdyzjRJwAtIgU9qhu64IDb7xmB0jdKdg+sKi8T3kkNljmcB6IKPzJ jBNc6RqD2qdG01I+w+Zt47T1AvEiMdloIAv3Oz5H/zgR6AH5Yyo0qRvGs RPCWixG/oWxnAlVVJ02Cut2OCTYWPt4BWhunnXmqQ9yjgU+h8dlzlaIxt 4E6zceQ/omj4rGk8qup+0WE+qe491N7CiDhqV67n1jCJKmcEECL/DsFv6 ZvGvQO6kqYp3aCDcW7Y8AgX/wSE4A3TBgIM6azi4bgXeNm1/LYJvFFSFt UP+Y154IsAzPLnvb+FLFfp1jQkABiO8N86FgbmlNW3OVWNzRuZIlw0xTQ Q==; X-CSE-ConnectionGUID: gl0ZeNWdRo27G+F4VIM2bw== X-CSE-MsgGUID: nTukjUasReO7twZ0o8kITQ== X-IronPort-AV: E=McAfee;i="6600,9927,11085"; a="30812275" X-IronPort-AV: E=Sophos;i="6.08,196,1712646000"; d="scan'208";a="30812275" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2024 15:20:20 -0700 X-CSE-ConnectionGUID: RZgDn3zySHetheQ/gIfjEA== X-CSE-MsgGUID: +eS7IboOT5GvTqmldqgNyw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,196,1712646000"; d="scan'208";a="40090800" Received: from agluck-desk3.sc.intel.com ([172.25.222.70]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2024 15:20:20 -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 v19 20/20] x86/resctrl: Update documentation with Sub-NUMA cluster changes Date: Tue, 28 May 2024 15:20:05 -0700 Message-ID: <20240528222006.58283-21-tony.luck@intel.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240528222006.58283-1-tony.luck@intel.com> References: <20240528222006.58283-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 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.45.0