cgroup: Add *.peak cgroup control files
JIRA: https://issues.redhat.com/browse/RHEL-10093
MR: !3138 (merged)
There are 3 peak cgroup control files:
- memory.peak
- pids.peak
- memory.swap.peak
The first 2 have already been in RHEL9. The last one is still missing and is being introduced by this MR.
These peak control files show the high watermark that have ever been reached for a particular metrics for that cgroup. It reduces the gap between cgroup v1 and v2. It can also help layered products like OpenShift to migrate from cgroup v1 to v2 and help customers to figure out the proper values to use for setting the correspond high or max values.
Signed-off-by: Waiman Long longman@redhat.com
Edited by Waiman Long