linux/arch/x86/kernel/cpu/resctrl
Peter Newman 8da2b938eb x86/resctrl: Implement rename op for mon groups
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: Peter Newman <peternewman@google.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Tested-by: Babu Moger <babu.moger@amd.com>
Link: https://lore.kernel.org/r/20230419125015.693566-3-peternewman@google.com
2023-06-07 12:40:36 +02:00
..
core.c x86/resctrl: Add __init attribute to rdt_get_mon_l3_config() 2023-01-23 17:40:11 +01:00
ctrlmondata.c x86/resctrl: Clear staged_config[] before and after it is used 2023-03-15 15:19:43 -07:00
internal.h x86/resctrl: Clear staged_config[] before and after it is used 2023-03-15 15:19:43 -07:00
Makefile x86/resctrl: Avoid confusion over the new X86_RESCTRL config 2019-02-02 10:34:52 +01:00
monitor.c Reduce redundant counter reads with resctrl refactoring 2023-04-28 09:30:51 -07:00
pseudo_lock_event.h
pseudo_lock.c driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
rdtgroup.c x86/resctrl: Implement rename op for mon groups 2023-06-07 12:40:36 +02:00