• Peter Newman's avatar
    x86/resctrl: Implement rename op for mon groups · 8da2b938
    Peter Newman authored
    To change the resources allocated to a large group of tasks, such as an
    application container, a container manager must write all of the tasks'
    IDs into the tasks file interface of the new control group. This is
    challenging when the container's task list is always changing.
    
    In addition, if the container manager is using monitoring groups to
    separately track the bandwidth of containers assigned to the same
    control group, when moving a container, it must first move the
    container's tasks to the default monitoring group of the new control
    group before it can move these tasks into the container's replacement
    monitoring group under the destination control group. This is
    undesirable because it makes bandwidth usage during the move
    unattributable to the correct tasks and resets monitoring event counters
    and cache usage information for the group.
    
    Implement the rename operation only for resctrlfs monitor groups to
    enable users to move a monitoring group from one control group to
    another. This effects a change in resources allocated to all the tasks
    in the monitoring group while otherwise leaving the monitoring data
    intact.
    Signed-off-by: default avatarPeter Newman <peternewman@google.com>
    Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
    Reviewed-by: default avatarReinette Chatre <reinette.chatre@intel.com>
    Tested-by: default avatarBabu Moger <babu.moger@amd.com>
    Link: https://lore.kernel.org/r/20230419125015.693566-3-peternewman@google.com
    8da2b938
rdtgroup.c 93.7 KB