From: Jinjie Ruan <ruanjinjie@huawei.com>
To: Reinette Chatre <reinette.chatre@intel.com>,
<tony.luck@intel.com>, <Dave.Martin@arm.com>,
<james.morse@arm.com>, <babu.moger@amd.com>, <corbet@lwn.net>,
<skhan@linuxfoundation.org>, <rdunlap@infradead.org>,
<tglx@kernel.org>, <mingo@redhat.com>, <bp@alien8.de>,
<dave.hansen@linux.intel.com>, <hpa@zytor.com>,
<ben.horgan@arm.com>, <fenghuay@nvidia.com>,
<tan.shaopeng@fujitsu.com>, <will@kernel.org>, <gshan@redhat.com>,
<zengheng4@huawei.com>, <jic23@kernel.org>, <x86@kernel.org>,
<linux-kernel@vger.kernel.org>, <linux-doc@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH v5 RESEND 7/7] fs/resctrl: Add info/moveable_mon_group
Date: Thu, 12 Nov 2026 09:42:31 +0800 [thread overview]
Message-ID: <7d27b172-d186-4b7a-87af-d0d25554b964@huawei.com> (raw)
In-Reply-To: <efd9c3d5-a732-47bf-bca1-50a8650fd0ef@intel.com>
在 2026/11/12 2:34, Reinette Chatre 写道:
> Hi Jinjie and Ben,
Hi Reinette,
>
> On 11/10/26 5:39 AM, Jinjie Ruan wrote:
>> Moving a MON group into the mon_groups directory of another CTRL_MON
>> group changes the CLOSID of the group while its RMID stays the same.
>> Where the RMID is only meaningful together with the CLOSID, as on arm64
>> MPAM, the move changes the RMID index of the group and is rejected with
>> -EOPNOTSUPP.
>>
>> Userspace cannot tell whether the move is supported without trying it.
>> Add "info/moveable_mon_group", which reads 1 when a MON group can be
>> moved to another CTRL_MON group and 0 when the move is rejected, and
>> refer to it where resctrl.rst describes the move.
>>
>> Suggested-by: Ben Horgan <ben.horgan@arm.com>
>> Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
>
> Do you find that this binary "supported/unsupported" accurately captures
I think this behavior is deterministic on MPAMv1, so that's enough for mpam.
> everything that MPAM may ever want to do in this area? Could it be that, for
That would be what the new version of MPAM does (such as v2 mentioned
below), the behavior of the mapmv1 version is already determined..
> example, one day MPAM may be asked to support the move of a monitor group to
> support scenarios where the reset of monitor counts is acceptable to the customer
> and availability of PMG will be managed as part of the scenario needing support?
As stated in the MPAM manual, MPAMv2 completely separates PARTID and
PMG, allowing for more flexible and fine-grained monitoring statistics
across partitions, so the CONFIG_RESCTRL_RMID_DEPENDS_ON_CLOSID will not
set for v2, However, it might need to be changed to a dynamic switch..
>
> When adding a new interface it helps to consider future possible changes and
> aim to create an interface that solves the immediate problem while leaving room
> for future enhancements. If we do not do that the interface becomes a maze due
> to new files just being added to address the problem of the day.
>
I agree with your idea. We need to think twice before we act.
> I would like to propose that this patch be submitted separately with the goal
> to obtain more feedback on the new interface.
I don't object, but I understand this is the same thing as the previous
patch. I'd like to hear Ben's advice.
>
> Reinette
--
Best regards,
Jinjie
prev parent reply other threads:[~2026-11-12 1:42 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-10 13:39 [PATCH v5 RESEND 0/7] fs/resctrl: Fix some resctl bugs related to mpam Jinjie Ruan
2026-11-10 13:39 ` [PATCH v5 RESEND 1/7] fs/resctrl: Report a temporary RMID shortage per CLOSID Jinjie Ruan
2026-11-10 13:39 ` [PATCH v5 RESEND 2/7] fs/resctrl: Do not allocate a monitor context when releasing limbo RMIDs Jinjie Ruan
2026-11-10 13:39 ` [PATCH v5 RESEND 3/7] fs/resctrl: Clear the CDP state after the cleanup Jinjie Ruan
2026-11-11 18:27 ` Reinette Chatre
2026-11-12 1:44 ` Jinjie Ruan
2026-11-10 13:39 ` [PATCH v5 RESEND 4/7] fs/resctrl: Stop the limbo handler while resctrl is unmounted Jinjie Ruan
2026-11-11 18:26 ` Reinette Chatre
2026-11-10 13:39 ` [PATCH v5 RESEND 5/7] fs/resctrl: Release the limbo RMIDs when the CDP state changes Jinjie Ruan
2026-11-11 18:33 ` Reinette Chatre
2026-11-10 13:39 ` [PATCH v5 RESEND 6/7] fs/resctrl: Disallow monitor group move when the RMID index changes Jinjie Ruan
2026-11-11 18:33 ` Reinette Chatre
2026-11-10 13:39 ` [PATCH v5 RESEND 7/7] fs/resctrl: Add info/moveable_mon_group Jinjie Ruan
2026-11-11 18:34 ` Reinette Chatre
2026-11-12 1:42 ` Jinjie Ruan [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=7d27b172-d186-4b7a-87af-d0d25554b964@huawei.com \
--to=ruanjinjie@huawei.com \
--cc=Dave.Martin@arm.com \
--cc=babu.moger@amd.com \
--cc=ben.horgan@arm.com \
--cc=bp@alien8.de \
--cc=corbet@lwn.net \
--cc=dave.hansen@linux.intel.com \
--cc=fenghuay@nvidia.com \
--cc=gshan@redhat.com \
--cc=hpa@zytor.com \
--cc=james.morse@arm.com \
--cc=jic23@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=rdunlap@infradead.org \
--cc=reinette.chatre@intel.com \
--cc=skhan@linuxfoundation.org \
--cc=tan.shaopeng@fujitsu.com \
--cc=tglx@kernel.org \
--cc=tony.luck@intel.com \
--cc=will@kernel.org \
--cc=x86@kernel.org \
--cc=zengheng4@huawei.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
all inboxes | Powered by JetHome®