Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2552527rdb; Fri, 8 Dec 2023 11:22:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IFj23wOaN1TktxTp6mSuU6MUu9Fc4W/0zXe7O61/JklVUUdv6RXsv0hwhxmt9g/2jmqKZGM X-Received: by 2002:a05:6a00:c81:b0:6cb:a2f4:8579 with SMTP id a1-20020a056a000c8100b006cba2f48579mr624384pfv.15.1702063379601; Fri, 08 Dec 2023 11:22:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702063379; cv=none; d=google.com; s=arc-20160816; b=AeX0oM6jmN/c3J6Yc588DmWCIbjBG3UiqayEWm4+wIyd5sSnRf8viaKqtLs4Suq9kU X7+z7hKnlpKLfyEVnmMsMl52Anhh7EWbvOpmrCOml63tb90blanFMFIRwwBlIWip1hiV plFzVKMozpNYXKLSp4TUtoeiv3JK7YXoqfqy0v70vhVUSNbRRH7WtrpAioFRRGyLaY6m Ue496r9X2fKaoc6YbYHPq3tudVObElyPIERTHCXWl8yofOCULjRNCNz88rNIuz2E07s6 GUpfyJ7ThEq9c6iUmezDaks3tMHOZAOoSlBze/rKKHF4BzZRI8ZdYYfRNURw119vFnTZ 250Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=gZ30NYGkjbX21PN8dBphQWbz/hwhfTyVX43/tAQx5MY=; fh=fdbks9cDZD3nws6fbVmPJcsGIn1evRgsQgeNrttrtE4=; b=Zsx7D4ZFENyd1VjCF+Iduake3Ph492bWSnvLDQPhmvAgE6Iamgb6iwgHj7KYA/7fJ9 MaS/ArYDPkseEINS93QLzY1OLsXT28BD1l0TaDc6eZ/UCOwhky7+4hWeTl7xZIb/0St7 qBScVto5LAI1zG/Ccedrhr74CVoIX3QMrKRWWFiJVIxc+AEZW5cQsSi/p8H1xbI90Chc oFeCfyeIpC7CS9HhN3ZxX1zUgVPCqVKUIkR0u1e4xzeOXNaj0oy32drQiOVoPKkpKpy0 SEZAZaX1gtQF5RDhsoVqnxw+Z3cCvqah5TDHWorbaTruYDk7H7bHKhRqmTB2fPsx2QtA j4HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=e+67vVrk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id fc6-20020a056a002e0600b006cdf20980fasi1998035pfb.80.2023.12.08.11.22.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 11:22:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=e+67vVrk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 41FA3819E158; Fri, 8 Dec 2023 11:22:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574649AbjLHTWj (ORCPT + 99 others); Fri, 8 Dec 2023 14:22:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233856AbjLHTWi (ORCPT ); Fri, 8 Dec 2023 14:22:38 -0500 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 052061712 for ; Fri, 8 Dec 2023 11:22:45 -0800 (PST) Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1d08fba6a49so16245ad.1 for ; Fri, 08 Dec 2023 11:22:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1702063364; x=1702668164; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gZ30NYGkjbX21PN8dBphQWbz/hwhfTyVX43/tAQx5MY=; b=e+67vVrkWgtowE8T0B2/6pvrUPb7JRkiDCGV+ZyA4WG047KFlfArw7P2ojuK/uxbwE tIZs3Bf3+C6LUFCDFxNDlwhaG89lwY+COojS3pzOIVPBytGELlodDeQITV90Vh4w1oB+ gHyWsuQBL938RTHdFNlheVWxycfIZQ23SPRcncjkfD9kRNDKP8Ln/xvDfFUrk/4EMb5V LFSWwmSdNZV1gIHGZ3HBYiyR1j5tI7oyW997lIn/OtxyFZnUlnRg7ezvnZ7cMQsURzmx G+PzGBm6RSPoBKsX18UrAIX38+iLGTE5fmFB6CBWtMDV/T7Zcz1V2k7Umj4olTqsSHB5 KCoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702063364; x=1702668164; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gZ30NYGkjbX21PN8dBphQWbz/hwhfTyVX43/tAQx5MY=; b=I9kWnai0AqV2zM5BrGqtvU1xNBqnucKJlh6j6dR159LXj9P5IUqH6tJW/EEfDlMrJx a0ZKbr65KZdJ+ICXXUaNiqFxT3Ou9AEHPSRrI6PKpiCcWLpCPBFWt8JQfj8cHjJpywLp iI8DFXYeq1zbg7nw0hjllp+jumfh+01XywDs/293xA8cG+DHclqhFuelx0hmVSrUCMpF zpo3G6AhGk5BfJW8Es58kd9qYvxAkz1XfT2Z12cXkE6e66+OHXIKPILalQYVbx5OObfY gc4Tj4sGibY2QYNuSpq02Ad66I54nLz0rcJUpjexwkQXW5g7PdAl9pZ9gdQFGeMYy8e0 Lv9A== X-Gm-Message-State: AOJu0YwYnZA/ngPlWSEm6Ee1OrXyYkTm8uv1HZlC5qcbiKcg+hk68dlI QyFi7DdWMwST0gFIbI8xm+o+1JzJNYPlRiaknbVMEg== X-Received: by 2002:a17:902:e881:b0:1d0:4548:97ff with SMTP id w1-20020a170902e88100b001d0454897ffmr195882plg.13.1702063364214; Fri, 08 Dec 2023 11:22:44 -0800 (PST) MIME-Version: 1.0 References: <20231201214737.104444-1-tony.luck@intel.com> <20231207195613.153980-1-tony.luck@intel.com> <20231207195613.153980-4-tony.luck@intel.com> In-Reply-To: <20231207195613.153980-4-tony.luck@intel.com> From: Peter Newman Date: Fri, 8 Dec 2023 11:22:33 -0800 Message-ID: Subject: Re: [PATCH v6 3/3] x86/resctrl: Add new "mba_MBps_event" mount option to documentation To: Tony Luck Cc: Fenghua Yu , Reinette Chatre , Jonathan Corbet , Shuah Khan , x86@kernel.org, Shaopeng Tan , James Morse , Jamie Iles , Babu Moger , Randy Dunlap , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, patches@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Fri, 08 Dec 2023 11:22:57 -0800 (PST) On Thu, Dec 7, 2023 at 11:56=E2=80=AFAM Tony Luck wro= te: > > 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 > --- > 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=3D[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=3D[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 contro= ller" 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=3Dmbm_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:: > -- > 2.41.0 > for content: Reviewed-by: Peter Newman