From patchwork Thu Dec 7 19:56:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Luck, Tony" X-Patchwork-Id: 175365 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp5028129vqy; Thu, 7 Dec 2023 11:56:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IFXlLQNjufQSV1DOUdSIwh9ebek1ooNEyZdwJdUaISdh6rd3GU/euo22PQ4fcpKr16PTpRd X-Received: by 2002:a05:6a21:3288:b0:18b:51e:e711 with SMTP id yt8-20020a056a21328800b0018b051ee711mr3284868pzb.13.1701979002761; Thu, 07 Dec 2023 11:56:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701979002; cv=none; d=google.com; s=arc-20160816; b=joo3vxAUbWLjuvWIBO996i0x16ALIFY/t7aKaCIVJ6R+R84AcZ4yLFvQLiRUTancOM eq93ibUhOOLB81BFoch0lPnO4L7hAVkKXGdpl/WpUmOuPIKOXsmieLwE9hJSrM9BY69a oom7/TQUoy8/20doWRDgdy8O+JCiTdHVd4TG25z0xVCYNMHnsE/fURmX9anUrGpdpHDG IZgp3054/zRYmQTrxHuyKvE5Wg5s3r+s/m7EugYY+VBh05wwzy6T+oGuWYS5G2yNUby5 3V4touQDCGhvR7jWP51ln2dEwTsAq0oLZ4R10tmYHBUEs6bAx8unu79DMbSiK4k9aDGj LIbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RHMY+ycxjxsp5+zFEFtjz+cjt9f7ZP+5n/qVrOPKidk=; fh=EIH9XAmicvPIUSP7TBeBhZ/WaoqG49JQ3xV1i3Gl7Co=; b=k0AxLwQ37Ur1a+9CuUPnx5H4BIVXWegY6gvCC/FJVfaJibOJl6u3x8N5mPLkUFXfTv gpDk9AbmOcPfbyIn6GYx8JON7xnU+AUInSfopAUEf9CG6T2XXBZ/NMh8l9e5VwI1oI40 bGrQi6aqpfybrNwHoNiduePHthMGf4LcMfmSMYoDeyz0wXim6BIp+gjk1X4xRX6aRevQ ZPRVslIMRUWtcKMjBfWv1tgfG1e0U1JUZ7HjZcWwiF5/ScWnqKJSXkrD6AxC9HpO7L0T U9JDeT/F7+mdxzt2uoAhmVgCGAYVsHVUqUMrx25SC37QdEPyZn8H9sVrHulf6pEg1rcH dFyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KJRUJPTP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id bq5-20020a056a02044500b00573f94e8b83si203153pgb.265.2023.12.07.11.56.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 11:56:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KJRUJPTP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id EABF280F6D09; Thu, 7 Dec 2023 11:56:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443854AbjLGT4Y (ORCPT + 99 others); Thu, 7 Dec 2023 14:56:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233115AbjLGT4U (ORCPT ); Thu, 7 Dec 2023 14:56:20 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68ECF170F; Thu, 7 Dec 2023 11:56:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701978986; x=1733514986; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7Y+W1l2QvxVLq3YI3AbXljtPrGo+7Qw1R28SArBOmbk=; b=KJRUJPTPm4Vl80uWPmSXEmxulAoj3j/TGEKecYavYOpMoYirsraIZ2rG i2wkKa0uPioAOcYtwEHZNqVZdXV3bpYmK1tF707UOSptVJTGoWnsZzIbe V3THq/Kfp/i779XtWiPBiIT4VWLNzqUs/hTFciGp/CiNyYZIE+7a4GZBH k/zWafEgTbjrr7SPAr71Mct+I2MDmAIk4tlNdk/FUL02wpK124g0Nbzmu kUetYjmi0KIVJ6oCeQ6OvMrx8ao1v0EEu5x9WeZbFwixKBk4x/RGimNzW OAtwVjmKIQQWtU5KypD857yQYFFQ7eXHh5fGo3hjbiKUJtc74RO9np6ER w==; X-IronPort-AV: E=McAfee;i="6600,9927,10917"; a="15848980" X-IronPort-AV: E=Sophos;i="6.04,258,1695711600"; d="scan'208";a="15848980" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2023 11:56:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10917"; a="889858596" X-IronPort-AV: E=Sophos;i="6.04,258,1695711600"; d="scan'208";a="889858596" Received: from agluck-desk3.sc.intel.com ([172.25.222.74]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2023 11:56:24 -0800 From: Tony Luck To: Fenghua Yu , Reinette Chatre , Peter Newman , Jonathan Corbet , Shuah Khan , x86@kernel.org Cc: Shaopeng Tan , James Morse , Jamie Iles , Babu Moger , Randy Dunlap , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH v6 3/3] x86/resctrl: Add new "mba_MBps_event" mount option to documentation Date: Thu, 7 Dec 2023 11:56:13 -0800 Message-ID: <20231207195613.153980-4-tony.luck@intel.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231207195613.153980-1-tony.luck@intel.com> References: <20231201214737.104444-1-tony.luck@intel.com> <20231207195613.153980-1-tony.luck@intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 07 Dec 2023 11:56:36 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784654334808673113 X-GMAIL-MSGID: 1784654334808673113 New mount option may be used to choose a specific memory bandwidth monitoring event to feed the MBA Software Controller(mba_sc) feedback loop. Signed-off-by: Tony Luck Reviewed-by: Peter Newman --- Documentation/arch/x86/resctrl.rst | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Documentation/arch/x86/resctrl.rst b/Documentation/arch/x86/resctrl.rst index a6279df64a9d..a0c521db6786 100644 --- a/Documentation/arch/x86/resctrl.rst +++ b/Documentation/arch/x86/resctrl.rst @@ -35,7 +35,8 @@ about the feature from resctrl's info directory. To use the feature mount the file system:: - # mount -t resctrl resctrl [-o cdp[,cdpl2][,mba_MBps][,debug]] /sys/fs/resctrl + # mount -t resctrl resctrl [-o cdp[,cdpl2][,mba_MBps] \ + [,mba_MBps_event=[mbm_local_bytes|mbm_total_bytes]][,debug]] /sys/fs/resctrl mount options are: @@ -45,7 +46,12 @@ mount options are: Enable code/data prioritization in L2 cache allocations. "mba_MBps": Enable the MBA Software Controller(mba_sc) to specify MBA - bandwidth in MBps + bandwidth in MBps. Defaults to using MBM local bandwidth, + but will use total bandwidth on systems that do not support + local bandwidth monitoring. +"mba_MBps_event=[mbm_local_bytes|mbm_total_bytes]": + Enable the MBA Software Controller(mba_sc) with a specific + MBM event as input to the feedback loop. "debug": Make debug files accessible. Available debug files are annotated with "Available only with debug option". @@ -538,6 +544,12 @@ where as user can switch to the "MBA software controller" mode using a mount option 'mba_MBps'. The schemata format is specified in the below sections. +By default the software feedback mechanism uses measurement of local +memory bandwidth to make adjustments to throttling levels. If a system +is running applications with poor NUMA locality users may want to use +the "mba_MBps_event=mbm_total_bytes" mount option which will use total +memory bandwidth measurements instead of local. + L3 schemata file details (code and data prioritization disabled) ---------------------------------------------------------------- With CDP disabled the L3 schemata format is::