[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <da854bef-a69a-4d61-bae6-3e6aa51a8081@intel.com>
Date: Wed, 16 Apr 2025 12:02:12 -0700
From: Reinette Chatre <reinette.chatre@...el.com>
To: <babu.moger@....com>, <tony.luck@...el.com>, <peternewman@...gle.com>
CC: <corbet@....net>, <tglx@...utronix.de>, <mingo@...hat.com>,
<bp@...en8.de>, <dave.hansen@...ux.intel.com>, <x86@...nel.org>,
<hpa@...or.com>, <paulmck@...nel.org>, <akpm@...ux-foundation.org>,
<thuth@...hat.com>, <rostedt@...dmis.org>, <ardb@...nel.org>,
<gregkh@...uxfoundation.org>, <daniel.sneddon@...ux.intel.com>,
<jpoimboe@...nel.org>, <alexandre.chartre@...cle.com>,
<pawan.kumar.gupta@...ux.intel.com>, <thomas.lendacky@....com>,
<perry.yuan@....com>, <seanjc@...gle.com>, <kai.huang@...el.com>,
<xiaoyao.li@...el.com>, <kan.liang@...ux.intel.com>, <xin3.li@...el.com>,
<ebiggers@...gle.com>, <xin@...or.com>, <sohil.mehta@...el.com>,
<andrew.cooper3@...rix.com>, <mario.limonciello@....com>,
<linux-doc@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<maciej.wieczor-retman@...el.com>, <eranian@...gle.com>
Subject: Re: [PATCH v12 14/26] x86/resctrl: Add the functionality to assign
MBM events
Hi Babu,
On 4/16/25 10:09 AM, Moger, Babu wrote:
> On 4/15/25 11:53, Reinette Chatre wrote:
>> On 4/15/25 7:20 AM, Moger, Babu wrote:
>>> On 4/11/25 16:04, Reinette Chatre wrote:
>>>> On 4/3/25 5:18 PM, Babu Moger wrote:
>>>>> The mbm_cntr_assign mode offers "num_mbm_cntrs" number of counters that
>>>>> can be assigned to an RMID, event pair and monitor the bandwidth as long
>>>>> as it is assigned.
>>>>
>>>> Above makes it sound as though multiple counters can be assigned to
>>>> an RMID, event pair.
>>>>
>>>
>>> Yes. Multiple counter-ids can be assigned to RMID, event pair.
>>
>> oh, are you referring to the assignments of different counters across multiple
>> domains?
>
> May be I am confusing you here. This is what I meant.
>
> Here is one example.
>
> In a same group,
"same group" means single RMID, eg. RMID_A
> Configure cntr_id 0, to count reads only (This maps to total event).
This will be one event, event0, so one counter assigned to RMID_A, event0 pair.
> Configure cntr_id 1, to count write only (This maps to local event).
... event1, one counter assigned to RMID_A, event1 pair, ...
> Configure cntr_id 2, to count dirty victims.
... event2, one counter assigned to RMID_A, event2 pair, ...
> so on..
> so on..
> Configure cntr_id 31, to count remote read only.
... and event31, one counter assigned to RMID_A, event31 pair.
The example reflects that a *single* counter can be assigned to an RMID, event pair.
Considering above, perhaps changelog can start with something like:
mbm_cntr_assign mode offers "num_mbm_cntrs" number of counters that
can be assigned to RMID, event pairs ....
>
> We have 32 counter ids in a domain. Basically, we can configure all the
> counters in a domain to just one group if you want to.
Understood.
>
> We cannot do that right now because our data structures cannot do that.
> We can only configure 2 events(local and total) right now.
>
> My understanding it is same with MPAM also.
Reinette
Powered by blists - more mailing lists