Babu wrote:
I am thinking loud here. Have you thought of addressing this problem?Good point. This is a gap. I haven't handled assigning CPUs to resctrl groups when SNC is enabled.
When a new monitor group is created, new RMID is assigned. This is done by alloc_rmid. It does not know about the rmid_offset details. This will allocate the one of the free RMIDs.
When CPUs are assigned to the group, then per cpu pqr_state is updated. At that point, this RMID becomes default_rmid for that cpu.