Re: [PATCH v5 00/16] x86/resctrl: Add kernel-mode (e.g., PLZA) support to the resctrl subsystem
From: Chen Yu
Date: Sun Sep 20 2026 - 23:38:20 EST
Hi Babu,
On Wed, Aug 26, 2026 at 02:32:14PM -0500, Babu Moger wrote:
>
>
> # Create a CTRL_MON group and associate kernel-mode allocation with it.
> # mkdir ctrl1
> # echo "assign_global_enable_per_cpu:ctrl=assign;mon=inherit;group=ctrl1//" \
> > info/kernel_mode
> # cat info/kernel_mode
> inherit_user
> [assign_global_enable_per_cpu:ctrl=assign;mon=inherit;group=ctrl1//]
>
> # kmode_cpus and kmode_cpus_list are visible only on the associated group.
> # ls ctrl1/kmode_cpus*
> ctrl1/kmode_cpus ctrl1/kmode_cpus_list
>
Just curious, would the other existing files like "tasks" be exposed under ctrl1?
If this ctrl1 is used only for "kernel space" mode, would the schemata of ctrl1 be
shared by all tasks in the system? That is to say, it seems that there is no need to
expose "tasks" under ctrl1. Should we hide "tasks" for the kernel group? Please
correct me if I misunderstood.
thanks,
Chenyu