Re: [PATCH v17 27/33] fs/resctrl: Auto assign counters on mkdir and clean up on group removal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Babu,

On 8/14/25 7:25 PM, Babu Moger wrote:
> Resctrl provides a user-configurable option mbm_assign_on_mkdir that
> determines if a counter will automatically be assigned to an RMID, event
> pair when its associated monitor group is created via mkdir.
> 
> Enable mbm_assign_on_mkdir by default to automatically assign counters to
> the two default events (MBM total and MBM local) of a new monitoring group
> created via mkdir. This maintains backward compatibility with original
> resctrl support for these two events.
> 
> Unassign and free counters belonging to a monitoring group when the group
> is deleted.
> 
> Monitor group creation does not fail if a counter cannot be assigned to one
> or both events. There may be limited counters and users have the
> flexibility to modify counter assignments at a later time. Log the error
> message "Failed to allocate counter for <event> in domain <id>" in
> /sys/fs/resctrl/info/last_cmd_status when a new monitoring group is created
> but counter assignment failed.
> 
> Signed-off-by: Babu Moger <babu.moger@xxxxxxx>
> ---

Reviewed-by: Reinette Chatre <reinette.chatre@xxxxxxxxx>

Reinette




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux