Re: resctrl2 - status
From: Peter Newman
Date: Tue Sep 19 2023 - 08:53:24 EST
Hi Tony,
On Wed, Sep 6, 2023 at 8:21 PM Tony Luck <tony.luck@xxxxxxxxx> wrote:
> I've just pushed an updated set of patches to:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux.git resctrl_v65
I'm trying to understand the purpose of the resctrl_resource struct
defined here:
https://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux.git/tree/include/linux/resctrl.h?h=resctrl2_v65#n356
>From the common fields, it seems to be something with a name and some
info files that can be divided into domains and should be told when
CPUs are hotplugged. (I skipped the scope field because I couldn't
find any references outside fs/resctrl2/arch). The remaining fields
are explicitly disjoint depending on whether we're talking about
monitoring or allocation.
>From this I don't get a strong sense that a "resource" is really a
thing and I think James's resctrl_schema struct only for the purpose
of resource allocation was more the right direction for common code.
Outwardly, resctrl groups seem to be the only thing relating
monitoring to allocation.
Is there a good reason for the common code to understand relationships
between monitors and schemas with the same name? If not, I think it
would make more sense to register monitors and control schemata
independently.
-Peter