From: Reinette Chatre <reinette.chatre@intel.com>
To: Ben Horgan <ben.horgan@arm.com>, Richard Cheng <icheng@nvidia.com>
Cc: <tony.luck@intel.com>, <x86@kernel.org>, <shuah@kernel.org>,
<fenghuay@nvidia.com>, <Dave.Martin@arm.com>,
<james.morse@arm.com>, <babu.moger@amd.com>,
<linux-kernel@vger.kernel.org>, <linux-kselftest@vger.kernel.org>,
<kaihengf@nvidia.com>, <kobak@nvidia.com>, <newtonl@nvidia.com>,
<kristinc@nvidia.com>
Subject: Re: [PATCH v5 1/2] selftests/resctrl: Implement cl_flush() and sb() for aarch64
Date: Mon, 9 Nov 2026 09:01:18 -0800 [thread overview]
Message-ID: <0583dad3-f761-48d5-a9a2-f2ad39567a6b@intel.com> (raw)
In-Reply-To: <89549a38-4764-466b-b66e-98bab801fefc@arm.com>
Hi Ben,
On 11/13/26 7:16 PM, Ben Horgan wrote:
> On 07/11/2026 00:29, Reinette Chatre wrote:
...
>>
>> If you do end up using a benchmark I'd suggest to make the checks as forgiving as
>> possible. For example, instead of checking something like "LLC occupancy needs to be
>> X when bitmap is Y" it should check something like "LLC occupancy when bitmap is all ones
>> is larger than LLC occupancy when only half of bitmap is ones".
>
> Do you think it's too strong to say that a bitmap with n + 1 bits set
> has higher occupancy than one with n bits set? I think it has slightly
> more utility in that all bits of the bitmap are plumbed down to a
> working control but I'm ok with a weaker check if a stronger check will
> just be problematic and maintenance heavy.
My comment was motivated by the recent change I needed to make to the CAT test
that uses cache misses measured via perf instead of cache occupancy. Originally
this test incremented the bitmap with one at each cycle but incrementing it with
two proved to be more robust.
What you are proposing sounds more like an enhancement to the CMT test that
uses cache occupancy as measurement while following the same methodology as the
CAT test. At the moment the CMT test just uses a single cycle of a hardcoded
(unless user provides something else) bitmap with five bits set. Even with this
I needed add enhancements to make it more robust:
commit ca0ea39288c9 ("selftests/resctrl: Reduce interference from L2 occupancy during cache occupancy test")
commit 7a214b4ec1c9 ("selftests/resctrl: Improve accuracy of cache occupancy test")
As one enhancement highlights the accuracy can be managed better on a system that
supports L2 as well as L3 allocation. Not all systems able to run such test will have such
capability. Also, looks like CMT does not require there to not be interference as the CAT
test does but with MPAM systems having each cache portion as shareable this may also be
a big influence on accuracy.
I am not able to judge if a test that uses LLC occupancy and relies on single bit increments
will be robust across all platforms of all architectures. Even so, I do see several risks
for such test to be reliable while I do not see how such fine grained increment provides
insight into resctrl kernel subsystem health.
Reinette
next prev parent reply other threads:[~2026-11-09 17:02 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-12 7:47 [PATCH v5 0/2] selftests/resctrl: Fix resctrl selftests issues on aarch64 Richard Cheng
2026-10-12 7:47 ` [PATCH v5 1/2] selftests/resctrl: Implement cl_flush() and sb() for aarch64 Richard Cheng
2026-10-20 16:30 ` Ben Horgan
2026-10-21 9:55 ` Ben Horgan
2026-11-04 6:43 ` Richard Cheng
2026-11-04 17:09 ` Ben Horgan
2026-11-05 9:41 ` Richard Cheng
2026-11-06 15:53 ` Ben Horgan
2026-11-07 0:29 ` Reinette Chatre
2026-11-14 3:16 ` Ben Horgan
2026-11-09 10:21 ` Ben Horgan
2026-11-09 17:01 ` Reinette Chatre [this message]
2026-11-10 7:33 ` Richard Cheng
2026-11-10 13:50 ` Ben Horgan
2026-11-10 12:35 ` Ben Horgan
2026-11-14 12:59 ` Richard Cheng
2026-11-16 16:53 ` Ben Horgan
2026-11-20 9:39 ` Richard Cheng
2026-11-24 12:15 ` Ben Horgan
2026-10-12 7:47 ` [PATCH v5 2/2] selftests/resctrl: Recognise aarch64 as a vendor for L3_NONCONT_CAT Richard Cheng
2026-10-20 16:18 ` Ben Horgan
2026-10-21 14:56 ` Reinette Chatre
2026-10-21 16:31 ` Ben Horgan
2026-10-12 22:09 ` [PATCH v5 0/2] selftests/resctrl: Fix resctrl selftests issues on aarch64 Reinette Chatre
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=0583dad3-f761-48d5-a9a2-f2ad39567a6b@intel.com \
--to=reinette.chatre@intel.com \
--cc=Dave.Martin@arm.com \
--cc=babu.moger@amd.com \
--cc=ben.horgan@arm.com \
--cc=fenghuay@nvidia.com \
--cc=icheng@nvidia.com \
--cc=james.morse@arm.com \
--cc=kaihengf@nvidia.com \
--cc=kobak@nvidia.com \
--cc=kristinc@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=newtonl@nvidia.com \
--cc=shuah@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 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®