RE: [RFD] resctrl: reassigning a running container's CTRL_MON group

From: Luck, Tony
Date: Fri Oct 21 2022 - 16:22:33 EST


> I am not viewing this as "secretly-two-control-groups" - there would still be
> only one parent CTRL_MON group that dictates all the allocations. MON groups already
> have a CLOSID (PARTID) property but at this time it is always identical to the parent
> CTRL_MON group. The difference introduced is that some of the child MON groups
> may have a different CLOSID (PARTID) from the parent.

What would be the resctrl file system operation to change the CLOSID of a child
CTRL_MON group?

I followed the "use rename" so the user would:

# mv /sys/fs/resctrl/g1/mon_groups/work1 /sys/fs/resctrl/g2/mon_groups/

to keep the same RMID, but move from "g1" to "g2" to get a different class of service.

-Tony