From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (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 C9C7F2B9BA; Thu, 25 Sep 2025 22:18:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=198.175.65.14 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758838740; cv=fail; b=XsVIAQMU3U0dB6CbQlAhM2d6hS4ellscpbRKnITc1zxySetkXX6N4CZ0EnsQrFwC4q3+ayUvy2/1yS+5LdsBSdpeMywuBJoHuU0xnsxpyqwLVxmD/PByCX8NA4Wn6KcmlzSJf95yLZLQ9pwP62exxotg5CR03rCRwKiTkVz4MCw= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758838740; c=relaxed/simple; bh=2CevwIu2bvwWz84KDqpHcqMObsdU8o8r3dKDhwxy11g=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=F/wKNUYvxdsOGHZLbtaLa789jp8FDCcygtimPOTNnVr7p+50aHMBSdtFD75/kRmzr/LHi2g1u4JZ9+sQNF3VJSkGM4T9k32VAospZGG1XlpV82jDzGdA1gBX/ac5+ks+SAtDKuatYZEHsMWO1zW2VmoMnN9ySNFiyPIKrmgMorw= ARC-Authentication-Results:i=2; 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=Vq/Mt3Bt; arc=fail smtp.client-ip=198.175.65.14 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Vq/Mt3Bt" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1758838737; x=1790374737; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=2CevwIu2bvwWz84KDqpHcqMObsdU8o8r3dKDhwxy11g=; b=Vq/Mt3Bts6CEs4o6zIU+wyM8YB0EDBQP1sJKUqxodw7kcVuiDZcl/a25 yhFSdfdnbJrmOIpRJytOK3tZnaKeA8VYrAaihTX4YV7B4bzZYhYex7tSS yMlD4NBJGwYghSKcBQLXbEDePPC+mykPcxmKDfNhqxJfXyZEiFd3Z5LIo cmSJjE0NGOx1Q5rG1WfWii9OFEld2CqSoVhM0WdsIuzhG1k3W3FD3YabY CZSnAWLg4N6uSSrR4wa/xy1+6Mf9JKuWThlfsABJwfPTVPCGqcyC4/aMQ u9HfE4BKZFZLMNWsmh+YnSus0J/3ew2vDA4SANvEEP1Y9l2DLp98hp5Zi g==; X-CSE-ConnectionGUID: 5nxpWxbsTTmiw0Qcw1KRog== X-CSE-MsgGUID: kJIEfveNS7e5GyqOaTVIjQ== X-IronPort-AV: E=McAfee;i="6800,10657,11531"; a="64983155" X-IronPort-AV: E=Sophos;i="6.17,312,1747724400"; d="scan'208";a="64983155" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2025 15:18:56 -0700 X-CSE-ConnectionGUID: qx+Te/vgQC+4Mghc9JPmWA== X-CSE-MsgGUID: u276dcGwSu+mr3ymY+9M5A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,293,1751266800"; d="scan'208";a="176579744" Received: from orsmsx903.amr.corp.intel.com ([10.22.229.25]) by orviesa006.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2025 15:18:56 -0700 Received: from ORSMSX902.amr.corp.intel.com (10.22.229.24) by ORSMSX903.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.27; Thu, 25 Sep 2025 15:18:55 -0700 Received: from ORSEDG902.ED.cps.intel.com (10.7.248.12) by ORSMSX902.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.27 via Frontend Transport; Thu, 25 Sep 2025 15:18:55 -0700 Received: from BYAPR05CU005.outbound.protection.outlook.com (52.101.85.18) by edgegateway.intel.com (134.134.137.112) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.27; Thu, 25 Sep 2025 15:18:54 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=up82c433py0LBOe/JKn3hreAzEmm8tL6S9v2kmLpAIDxARq9Tx9frwbnpWOWrGWjohg3NdFsrvEztElX+0yxieA7kBNDFFB5/8c6zCva2lMolRcYlbZ5LAAJlu59oWdGqsX2yD5AkIi2gt8Ky7v+po4cNkILrq0sAbk+ZVFc/7cJeGjlMC/iFrtXOm6NaDDrGN0DkEQXxQsVsvou136Gdmovfqq267yF/0/iGeBOI7AiGfrOeV0De3s0HrB8cxzaF+I8fd/WNI2zahBeLrAq6uVamlOPnptLfn5hboFfmOki0QLuwESsO9+t0THH8Mv9ndxnMHK7QoE9TXELboUa2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dIp1g2tVDFQZZEjpDqx6eM8SAghx3azT+MrTbXCBRts=; b=Mbv26wsS6/OXRTWTH3DBWINfvFBQ8BNi+4XrXpBxvjQy46iApCZhrysE/XDI4eF3Hf/smFnQC93jrAM+3tTdWJn5o6wUHw7Uy5upmnaUILRKKGhC59v2UNEq0q9JN9xSC1wgRRYnW4eMilCxSBAIrDvzW/3SvuWuw+jke7mlq4TZ4FslX9Pp3sDanoklpXSTTGuX2ehsAzOuef1koIhVGBHk3GeZHmUiMrnntBFhiepq6R8lc2jlU5HdMwDsI7OAO/GgtF9PU8mi9gamr+F3DCK8x57PTkfsrnBu5CKEAWEhT+DNEGIzLAw/SuXQj0eUI9kSJwSF2nfn1dBkAbCe+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) by SN7PR11MB7512.namprd11.prod.outlook.com (2603:10b6:806:345::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9160.10; Thu, 25 Sep 2025 22:18:53 +0000 Received: from SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::61a:aa57:1d81:a9cf]) by SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::61a:aa57:1d81:a9cf%3]) with mapi id 15.20.9160.010; Thu, 25 Sep 2025 22:18:52 +0000 Message-ID: <1c7cc78f-c5ba-4fbc-9b17-61e5b72415ad@intel.com> Date: Thu, 25 Sep 2025 15:18:51 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] fs/resctrl,x86/resctrl: Factor mba rounding to be per-arch To: "Luck, Tony" CC: Dave Martin , , "James Morse" , Thomas Gleixner , "Ingo Molnar" , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , "Jonathan Corbet" , , References: <20250902162507.18520-1-Dave.Martin@arm.com> <5be54a14-a7ba-49ba-8ddc-db532f2cf318@intel.com> <9dba03c5-cf45-4510-ab6c-2a945e73fd1c@intel.com> From: Reinette Chatre Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: MW2PR2101CA0015.namprd21.prod.outlook.com (2603:10b6:302:1::28) To SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR11MB7573:EE_|SN7PR11MB7512:EE_ X-MS-Office365-Filtering-Correlation-Id: ba9e6d49-149a-4ff0-0fda-08ddfc818282 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|7416014|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?B?N2FqNkF2QkdTeHBscG5XL3J2Z2ROKzBOUkZCMldzWlZlMGJGbTdKWi82TWpn?= =?utf-8?B?TlFqdGlKSzlCenNObVRqOWh5ak1FNzNkNXJyejR5RnM3MExnSVI4YmtVbi9H?= =?utf-8?B?TGNPOE1Tc1dibGsyNXUvQXhabnVUNWRuU3hEdWtHUHdZNkxMRm0wT2FYSTVr?= =?utf-8?B?THhycXBWeEFsK0JDR3BQUzdncXVOT3BOTDdLYWZndEZZdjRWR0VoL1ZvcDFO?= =?utf-8?B?ZkNQRW1CdEFCS0JkYlowMVZBc0hnc2tNdXdPd2RsMm5pdVZndjFkYlI5b1Ji?= =?utf-8?B?QXVLS2dFdlJDOHM5VVFxV1EvUkkzSnVNQjNUL3VvTVEwYTVkM1ozdk5FWmZz?= =?utf-8?B?RVN2bG1QbUVvd090QmNxMjNPVVpRcVdpc0kveDlvTXRKNE5UVEpGais2Y2N6?= =?utf-8?B?TkJtcXRNZmI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=?utf-8?B?YzZkNUpFd3VaVzRpS3QxUE5QUEhiVjErSUxxSFlZSVlxZEFhdnRLTEk3bUJa?= =?utf-8?B?emVhSXVmWmNpUytqai9HYjM1UWpLbkN0S0lzaEVwSEE5WFRlUmZVQ2sxUEdQ?= =?utf-8?B?aTRJN3RZSzMzakFYSWNUUVc3OTV6b2NwYW5OL3JGR3Bnb1Y1dkg1ZDAzWitw?= =?utf-8?B?UU5QbVR2RDMvSFdVU1dHSDdJemZVbzJZajRrNDdOMmdoSmlaVXdKZUNzd3E2?= =?utf-8?B?Ry9kZHo3MENmbkhSTHJpVEh5MnBGOTdhWFB1RGgxeS9ZU3dUcVV2WlhtcU15?= =?utf-8?B?dVhiWDZ6T1dTR212SlhVNUl4MGI5ZDQ4eXFxTGJoY0laWFlqdG5odHRFQ1BY?= =?utf-8?B?WUs5RytBMUVDdlVLZGdMYUtnL1grSnN5SVJ5R0dHWVpXR3lZZnBQTTFZMVVa?= =?utf-8?B?QnQxQ0RnZnpyQ3FSOEY1SmdPWXRyUTZtUjNPS3E0QkFXRStaOGttOWJlbmhh?= =?utf-8?B?SThxZHd0QVU3QVl1RW83NlJxd1NNV2pSRXJEZjFmQ3ZXZTdCUlo4c2tRaVpi?= =?utf-8?Q?htVmTZaijVFpt?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ2PR11MB7573.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(7416014)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SVc2SzFYWDREajZnY29HUXNEUmpCVXJqMUhkcG9BUlJBekhBc2ExMk5IRU05?= =?utf-8?B?VDJQSGxHZG50UkRnZDQ1c0FFcks4K3U0bm5GNjFlZEVDOXRFaFY0SE5JbHNJ?= =?utf-8?B?emk4Qzl2bHR3N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?B?Vm5pZy96eElZTkN4eHJXKzBNQjRBaGpKOVVhM0dyeUFvbEVBSzlUTlVIdjFz?= =?utf-8?B?SkkwN0laQ2RsMWQ4K1MvYUFZS2lSYzhZU1R2MDhRbUp4bTFGQloxRnhVd0dW?= =?utf-8?B?Ly84bDVLR1dEN05HOXdxU1dIOTRMTjJDR1Uvc2d4cnpTVHladm9ObS9Eb0pF?= =?utf-8?B?Q2tKbTMwNWZpaTFnaXlNUG9MQVd6ZW9TMk01RGRUZjdBazFuUFdRMHk4eFMr?= =?utf-8?B?Z1E9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: ba9e6d49-149a-4ff0-0fda-08ddfc818282 X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB7573.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2025 22:18:52.8450 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Hd5bxbCPRvArP55qQ2P0cbHXvZZajjsSxBqFudNSrXh0Hn82qEialfOeZkRuFqJb+3Rju+6Q6Nt0tu8iWSPitxn6h3jmktMjchyTAy+IVU4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR11MB7512 X-OriginatorOrg: intel.com Hi Tony, On 9/25/25 2:35 PM, Luck, Tony wrote: > On Thu, Sep 25, 2025 at 01:53:37PM -0700, Reinette Chatre wrote: >> On 9/25/25 5:46 AM, Dave Martin wrote: >>> On Tue, Sep 23, 2025 at 10:27:40AM -0700, Reinette Chatre wrote: >>>> On 9/22/25 7:39 AM, Dave Martin wrote: >>>>> On Fri, Sep 12, 2025 at 03:19:04PM -0700, Reinette Chatre wrote: ... >>>>> for which writing "MB: 0=x" and "MB: 0=y" yield different >>>>> configurations for every in-range x and where y = x + g and y is also >>>>> in-range. >>>>> >>>>> That's a bit of a mouthful, though. If you can think of a more >>>>> succinct way of putting it, I'm open to suggestions! >>>>> >>>>>> Please note that the documentation has a section "Memory bandwidth Allocation >>>>>> and monitoring" that also contains these exact promises. >>>>> >>>>> Hmmm, somehow I completely missed that. >>>>> >>>>> Does the following make sense? Ideally, there would be a simpler way >>>>> to describe the discrepancy between the reported and actual values of >>>>> bw_gran... >>>>> >>>>> | Memory bandwidth Allocation and monitoring >>>>> | ========================================== >>>>> | >>>>> | [...] >>>>> | >>>>> | The minimum bandwidth percentage value for each cpu model is predefined >>>>> | and can be looked up through "info/MB/min_bandwidth". The bandwidth >>>>> | granularity that is allocated is also dependent on the cpu model and can >>>>> | be looked up at "info/MB/bandwidth_gran". The available bandwidth >>>>> | -control steps are: min_bw + N * bw_gran. Intermediate values are rounded >>>>> | -to the next control step available on the hardware. >>>>> | +control steps are: min_bw + N * (bw_gran - e), where e is a >>>>> | +non-negative, hardware-defined real constant that is less than 1. >>>>> | +Intermediate values are rounded to the next control step available on >>>>> | +the hardware. >>>>> | + >>>>> | +At the time of writing, the constant e referred to in the preceding >>>>> | +paragraph is always zero on Intel and AMD platforms (i.e., bw_gran >>>>> | +describes the step size exactly), but this may not be the case on other >>>>> | +hardware when the actual granularity is not an exact divisor of 100. >>>> >>>> Have you considered how to share the value of "e" with users? >>> >>> Perhaps introducing this "e" as an explicit parameter is a bad idea and >>> overly formal. In practice, there are likely to various sources of >>> skid and approximation in the hardware, so exposing an actual value may >>> be counterproductive -- i.e., what usable guarantee is this providing >>> to userspace, if this is likely to be swamped by approximations >>> elsewhere? >>> >>> Instead, maybe we can just say something like: >>> >>> | The available steps are spaced at roughly equal intervals between the >>> | value reported by info/MB/min_bandwidth and 100%, inclusive. Reading >>> | info/MB/bandwidth_gran gives the worst-case precision of these >>> | interval steps, in per cent. >>> >>> What do you think? >> >> I find "worst-case precision" a bit confusing, consider for example, what >> would "best-case precision" be? What do you think of "info/MB/bandwidth_gran gives >> the upper limit of these interval steps"? I believe this matches what you >> mentioned a couple of messages ago: "The available steps are no larger than this >> value." >> >> (and "per cent" -> "percent") >> >>> >>> If that's adequate, then the wording under the definition of >>> "bandwidth_gran" could be aligned with this. >> >> I think putting together a couple of your proposals and statements while making the >> text more accurate may work: >> >> "bandwidth_gran": >> The approximate granularity in which the memory bandwidth >> percentage is allocated. The allocated bandwidth percentage >> is rounded up to the next control step available on the >> hardware. The available hardware steps are no larger than >> this value. >> >> I assume "available" is needed because, even though the steps are not larger >> than "bandwidth_gran", the steps may not be consistent across the "min_bandwidth" >> to 100% range? > > What values are allowed for "bandwidth_gran"? The "IntelĀ® Resource This is a property of the MB resource where the ABI is to express allocations as a percentage. Current doc: "bandwidth_gran": The granularity in which the memory bandwidth percentage is allocated. The allocated b/w percentage is rounded off to the next control step available on the hardware. The available bandwidth control steps are: min_bandwidth + N * bandwidth_gran. I do not expect we can switch it to fractions so I would say that integer values are allowed, starting at 1. I understand that the MB resource on AMD supports different ranges and I find that ABI discrepancy unfortunate. I do not think this should be seen as an opportunity that "anything goes" when it comes to MB and used as an excuse to pile on another range of hardware dependent inputs. Instead I believe we should keep MB interface as-is and instead work on a generic interface that enables user space to interact with resctrl to have benefit of all hardware capabilities without needing to know which hardware is underneath. > Director Technology (IntelĀ® RDT) Architecture Specification" > > https://cdrdv2.intel.com/v1/dl/getContent/789566 > > describes the upcoming region aware memory bandwidth allocation > controls as being a number from "1" to "Q" (enumerated in an ACPI > table). First implementation looks like Q == 255 which means a > granularity of 0.392% The spec has headroom to allow Q == 511. > > I don't expect users to need that granularity at the high bandwidth > end of the range, but I do expect them to care for highly throttled > background/batch jobs to make sure they can't affect performance of > the high priority jobs. > > I'd hate to have to round all low bandwidth controls to 1% steps. This is the limitation if choosing to expose this feature as an MB resource and seems to be the same problem that Dave is facing. For finer granularity allocations I expect that we would need a new schema/resource backed by new properties as proposed by Dave in https://lore.kernel.org/lkml/aNFliMZTTUiXyZzd@e133380.arm.com/ This will require updates to user space (that will anyway be needed if wedging another non-ABI input into MB). Reinette