All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Horgan <ben.horgan@arm.com>
To: Reinette Chatre <reinette.chatre@intel.com>,
	linux-kernel@vger.kernel.org
Cc: tony.luck@intel.com, Dave.Martin@arm.com, james.morse@arm.com,
	babu.moger@amd.com, tglx@kernel.org, mingo@redhat.com,
	bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org,
	hpa@zytor.com, fenghuay@nvidia.com, tan.shaopeng@fujitsu.com
Subject: Re: [PATCH v2 4/6] fs/resctrl: Disallow the software controller when mbm counters are assignable
Date: Tue, 17 Mar 2026 11:13:23 +0000	[thread overview]
Message-ID: <c8d097a4-4efd-4bf5-a03e-7aa28103db65@arm.com> (raw)
In-Reply-To: <43a47ac0-5d49-47da-9740-9789df9bda96@intel.com>

Hi Reinette,

On 3/16/26 21:35, Reinette Chatre wrote:
> Hi Ben,
> 
> On 3/13/26 10:45 AM, Ben Horgan wrote:
>> The software controller requires that there are free running mbm counters
> 
> How is "free running" defined?

I mean that for each control group (and it's associated monitor groups) there are
dedicated MBM counters which are always present and always counting.
So, mon_event_count() always provides a value representative of the traffic
for that control group.

> 
> (sidenote: please use upper case for acronyms throughout: mbm -> MBM)

Ack

> 
>> for each control group in order to provide the feedback necessary to
>> control the memory bandwidth allocation for that control group.  Previous
>> to the introduction counter assignment support (ABMC) resctrl required this
> 
> I am not able to parse this second sentence. "to the introduction" -> "to
> the introduction of"? What does "this" refer to?

The 'this' was referring to the first sentence, that you need dedicated counters.

> 
>> in order to advertise support for mbm but now if the mbm counters are
>> assignable then this can't be guaranteed.
>>
>> Currently, only AMD systems support counter assignment but the MBA is non
>> linear and so the software controller is never supported anyway. For MPAM
>> systems the MBA is linear and so the dependency on counters not being
>> assignable needs to made explicit. Hence, fail the mount if the user
> 
> It is not clear to me that software controller depends on counters not being
> assignable. Is the problem not instead that the current implementation does not
> support this since it allows the event used by software controller to not have a
> counter assigned? So, instead of adding support for software controller by ensuring
> that the event used by software controller has a counter assigned, this patch opts
> for the simpler disabling of software controller when assignable counters are in use?

Yes, they are not fundamentally incompatible but it would require some changes
to the resctrl interface. Unless there are sufficient counters to have one per monitor
group it will always be the case that creating more groups will lead to missing a counter
for the software controller on one of the control groups. As I understand it, resctrl
doesn't have a way to indicate that you only get a control on certain control groups.

For MPAM it is possible to have counters that only match on PARTID and ignore PMG which
could reduce the counters needed to support the software controller. However, one
complication is that the (ignore PMG) counter doesn't match the count for the control
group if it has monitor groups with unassigned counters.

Thanks,

Ben
> 
>> requests the software controller, the mba_MBps option, and the mbm counters
>> are assignable.
> 
> Reinette
> 


  reply	other threads:[~2026-03-17 11:13 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-13 17:45 [PATCH v2 0/6] x86,fs/resctrl: Pave the way for MPAM counter assignment Ben Horgan
2026-03-13 17:45 ` [PATCH v2 1/6] x86,fs/resctrl: Make resctrl_arch_is_evt_configurable() aware of mbm_assign_mode Ben Horgan
2026-03-13 17:45 ` [PATCH v2 2/6] fs/resctrl: Tidy up the error path in resctrl_mkdir_event_configs() Ben Horgan
2026-03-13 17:45 ` [PATCH v2 3/6] fs/resctrl: Make 'event_filter' files read only if they're not configurable Ben Horgan
2026-03-13 18:33   ` Luck, Tony
2026-03-16  9:51     ` Ben Horgan
2026-03-16 16:27       ` Luck, Tony
2026-03-16 17:02         ` Ben Horgan
2026-03-16 17:29           ` Reinette Chatre
2026-03-17 12:05             ` Ben Horgan
2026-03-13 17:45 ` [PATCH v2 4/6] fs/resctrl: Disallow the software controller when mbm counters are assignable Ben Horgan
2026-03-16 21:35   ` Reinette Chatre
2026-03-17 11:13     ` Ben Horgan [this message]
2026-03-17 17:17       ` Reinette Chatre
2026-03-18 15:44         ` Ben Horgan
2026-03-18 15:55           ` Ben Horgan
2026-03-18 22:17           ` Reinette Chatre
2026-03-13 17:45 ` [PATCH v2 5/6] x86,fs/resctrl: Add resctrl_arch_mbm_cntr_assign_fixed() Ben Horgan
2026-03-13 17:45 ` [PATCH v2 6/6] arm_mpam: resctrl: Adapt to new or changed resctrl arch functions Ben Horgan

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=c8d097a4-4efd-4bf5-a03e-7aa28103db65@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=hpa@zytor.com \
    --cc=james.morse@arm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=reinette.chatre@intel.com \
    --cc=tan.shaopeng@fujitsu.com \
    --cc=tglx@kernel.org \
    --cc=tony.luck@intel.com \
    --cc=x86@kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.