From: Ben Horgan <ben.horgan@arm.com>
To: Fenghua Yu <fenghuay@nvidia.com>,
Reinette Chatre <reinette.chatre@intel.com>,
Tony Luck <tony.luck@intel.com>,
James Morse <james.morse@arm.com>,
Dave Martin <Dave.Martin@arm.com>,
Babu Moger <babu.moger@amd.com>,
Drew Fustini <fustini@kernel.org>, Chen Yu <yu.c.chen@intel.com>
Cc: Borislav Petkov <bp@alien8.de>,
Thomas Gleixner <tglx@linutronix.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
Peter Newman <peternewman@google.com>,
"x86@kernel.org" <x86@kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [RFC] mpam,x86,fs/resctrl: Generic schema description Proof of Concept
Date: Fri, 3 Jul 2026 14:42:33 +0100 [thread overview]
Message-ID: <074a6766-0355-409c-bad5-855498fdb7d5@arm.com> (raw)
In-Reply-To: <42a1b00b-c8a0-44fd-b454-df7f9bf25338@nvidia.com>
Hi Fenghua,
On 7/2/26 16:16, Fenghua Yu wrote:
> Hi, Ben,
>
> On 7/2/26 06:37, Ben Horgan wrote:
>> Hi Fenghua,
>>
>> On 6/25/26 02:26, Fenghua Yu wrote:
>>> Hi, Reinette,
>>>
>>> On 6/24/26 15:22, Reinette Chatre wrote:
>>>> Hi Fenghua,
>>>>
>>>> On 6/24/26 12:08 PM, Fenghua Yu wrote:
>>>>> Hi, Reinette, Ben, Shaopen, et al,
>>>>>
>>>>> On 5/29/26 11:06, Reinette Chatre wrote:
>>>>>
>>>>> As Shaopen and Ben mentioned earlier, we are working on two MPAM
>>>>> features that may need to change schemata interface. The CPU-less
>>>>> feature was discussed on LPC (although the interfaces will be
>>>>> slightly different from the LPC).
>>>>
>>>> I know. Here is where I tried to engage with you on needed interfaces
>>>> after LPC:
>>>> https://lore.kernel.org/lkml/fb1e2686-237b-4536-
>>>> acd6-15159abafcba@intel.com/
>>>
>>> MPAM ACPI defines MSC (Memory System Control) is defined in one of two
>>> ways (not both) on one platform:
>>> 1. L3 and memory together on each processor MSC
>>> 2. L3 in processor MSC and memory control/monitoring in different memory
>>> MSCs.
>>
>> On one platform, if there are MSC with memory bandwidth monitors or
>> controls in both your slc and at the memory controllers then the MPAM
>> ACPI tables would describe those at the memory as being at the memory
>> and those at the cache.
>>
>> This could lead to having memory bandwidth controls/monitors at both L3
>> and memory scope.
>>
>
> The locator type in MSC for this L3 is still 1, right?
>
> So the control and monitor example could be:
>
> MSC0: type 1 L3 with cache id 0 on socket 0
> MSC1: type 1 L3 with cache id 1 on socket 1
> MSC2: type 2 memory with numa node 1 on socket 0
> MSC3: type 2 memory with numa node 1 on socket 1
>
> The schemata file could be:
> L3: 0=fff;1=fff <-- cache control on cache id
> MB: 0=fff;1=fff <-- memory bandwidth control on cache id. legacy.
> MB_NODE: 1=100;2=100 <-- memory bandwidth conttrol on node id. CPU-less
>
> Cache and memory bandwidth monitoring:
> On cache id 0, both llc_occupancy and total_bytes are monitored:
> mon_data/mon_L3_00/mbm_llc_occupancy
> mon_data/mon_L3_00/mbm_total_byptes
> On cache id 1, both llc_occupancy and total_bytes are monitored::
> mon_data/mon_L3_01/mbm_llc_occupancy
> mon_data/mon_L3_01/mbm_total_bytes
>
> On NUMA node 1, only total_bytes is monitored:
> mon_data/mon_NODE_01/mbm_total_bytes
> On NUMA node 2, only total bytes is monitored:
> mon_data/mon_NODE_02/mbm_total_bytes
Yes, this all looks sensible.
>
>>> On type 1 platform, schemata is legacy:
>>> MB:1=100;2=100 <-- cache id 1 and 2 as domain id
>>>
>>> On type 2 platform, I will not reuse "MB:" name. Instead, define new
>>> resource name "MBN:" for numa node and schemata is:
>>> MBN:0=100;1=100;2=100;10=100;18=100;26=100 <-- numa id 0, 1, 2, 10, 18,
>>> 26 as domain id
>>> On type 2 platform, there won't be "MB:" line. Numa 0 and 1
>>> are for mbm allocation on socket 0 and 1. 2,10, 18 and 26 are for GPU
>>> memory nodes allocation.
>>>
>>> BTW, Slow MBA (SMBA) is different from MBA Numa (MBN). SMBA still relies
>>> on L3 and the domain id in SMBA is still cache id. MBN depends on each
>>> memory controlor with numa id as domain id for both CPU and CPU-less
>>> memory nodes.
>>>
>>> On type 1 platform, there is only MB:
>>>
>>> info
>>> └── MB
>>> └── resource_schemata
>>> ├── MB
>>> │ ├── max
>>> │ ├── min
>>> │ ├── resolution
>>> │ ├── scale
>>> │ ├── scope <== contains "L3"
>>> │ ├── tolerance
>>> │ ├── type
>>> │ └── unit
>>>
>>> On type 2 platform, there is only MBN:
>>> info
>>> └── MBN
>>> └── resource_schemata
>>> ├── MBN
>>> │ ├── max
>>> │ ├── min
>>> │ ├── resolution
>>> │ ├── scale
>>> │ ├── scope <== contains "NUMA"
>>> │ ├── tolerance
>>> │ ├── type
>>> │ └── unit
>>>
>>> This is different from the "scope" hierarchy discussed in the link. "MB"
>>> and "MBN" won't exist on the same platform.
>>>
>>> I find it's hard (and not useful) to split "MB" for memory with CPU and
>>> "MBN" for CPU-less memory node. It's easier to have either "MB" for
>>> legacy memory with CPU or "MBN" for CPU-less memory.
>>
>> yes, I don't think CPU-less memory needs special casing in the interface
>> once there is support for NUMA scope.
>>
>>>
>>> Any thoughts? Does this update make sense?
>>
>> I think a _NODE postfix for controls with NUMA scope makes sense. I
>> brought up naming of controls when they are the same but have different
>> scope earlier in the thread and Reinette pointed me at this earlier
>> discussion.
>
> Is _NODE postfix sufficient for future?
>
> e.g. SMMU locator id is IORT table node id. AFAICT, the node id is not a
> numa node. If that's the case, _NODE postfix may cause confusion here.
>
> Is explict "_NUMA" postfix clearer?
How is the SMMU locator id displayed to the user?
For the NUMA node id we already use the name node in sysfs,
/sys/devices/system/node/node<node_id>
Thanks,
Ben
>
> [SNIP]
>
> Thanks.
>
> -Fenghua
prev parent reply other threads:[~2026-07-03 13:42 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-29 18:06 [RFC] mpam,x86,fs/resctrl: Generic schema description Proof of Concept Reinette Chatre
2026-06-02 20:23 ` Babu Moger
2026-06-02 22:56 ` Reinette Chatre
2026-06-03 1:14 ` Moger, Babu
2026-06-03 3:55 ` Reinette Chatre
2026-06-03 14:40 ` Babu Moger
2026-06-02 23:32 ` Chen, Yu C
2026-06-03 3:45 ` Reinette Chatre
2026-06-03 11:53 ` Chen, Yu C
2026-06-04 16:37 ` Reinette Chatre
2026-06-05 15:43 ` Chen, Yu C
2026-06-05 16:20 ` Reinette Chatre
2026-06-03 15:15 ` Ben Horgan
2026-06-03 19:34 ` Drew Fustini
2026-06-04 11:24 ` Ben Horgan
2026-06-04 17:38 ` Drew Fustini
2026-06-12 1:30 ` Shaopeng Tan (Fujitsu)
2026-06-17 15:29 ` Reinette Chatre
2026-06-19 1:42 ` Shaopeng Tan (Fujitsu)
2026-06-22 16:10 ` Reinette Chatre
2026-06-23 5:04 ` Shaopeng Tan (Fujitsu)
2026-06-04 21:05 ` Reinette Chatre
2026-06-05 19:35 ` Drew Fustini
2026-06-06 5:10 ` Drew Fustini
2026-06-06 5:23 ` Drew Fustini
2026-06-04 17:43 ` Reinette Chatre
2026-06-05 14:53 ` Ben Horgan
2026-06-05 15:39 ` Reinette Chatre
2026-06-05 16:37 ` Ben Horgan
2026-06-08 16:16 ` Reinette Chatre
2026-06-09 10:10 ` Ben Horgan
2026-06-09 15:28 ` Reinette Chatre
2026-06-09 16:37 ` Ben Horgan
2026-06-09 17:41 ` Reinette Chatre
2026-06-10 7:09 ` Chen, Yu C
2026-06-10 14:27 ` Chen, Yu C
2026-06-10 16:13 ` Reinette Chatre
2026-06-10 17:57 ` Chen, Yu C
2026-06-10 18:10 ` Reinette Chatre
2026-06-10 15:59 ` Reinette Chatre
2026-06-10 18:05 ` Chen, Yu C
2026-06-11 3:26 ` Chen, Yu C
2026-06-11 15:45 ` Reinette Chatre
2026-06-26 15:46 ` Chen, Yu C
2026-07-02 14:27 ` Ben Horgan
2026-07-03 9:01 ` Chen, Yu C
2026-06-10 4:31 ` Drew Fustini
2026-06-10 15:14 ` Reinette Chatre
2026-06-03 18:46 ` Luck, Tony
2026-06-04 10:02 ` Ben Horgan
2026-06-04 21:42 ` Reinette Chatre
2026-07-08 12:56 ` Chen, Yu C
2026-06-03 22:14 ` Drew Fustini
2026-06-04 21:47 ` Reinette Chatre
2026-06-05 19:48 ` Drew Fustini
2026-06-15 21:05 ` Moger, Babu
2026-06-17 17:18 ` Reinette Chatre
2026-06-17 20:29 ` Babu Moger
2026-06-24 19:08 ` Fenghua Yu
2026-06-24 22:22 ` Reinette Chatre
2026-06-25 1:26 ` Fenghua Yu
2026-06-25 15:43 ` Reinette Chatre
2026-07-10 20:59 ` Fenghua Yu
2026-07-02 13:37 ` Ben Horgan
2026-07-02 15:16 ` Fenghua Yu
2026-07-03 13:42 ` Ben Horgan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=074a6766-0355-409c-bad5-855498fdb7d5@arm.com \
--to=ben.horgan@arm.com \
--cc=Dave.Martin@arm.com \
--cc=babu.moger@amd.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=fenghuay@nvidia.com \
--cc=fustini@kernel.org \
--cc=james.morse@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peternewman@google.com \
--cc=reinette.chatre@intel.com \
--cc=tglx@linutronix.de \
--cc=tony.luck@intel.com \
--cc=x86@kernel.org \
--cc=yu.c.chen@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox