cgroup: add pids.peak interface for pids controller
authorJosh Don <joshdon@google.com>
Wed, 31 Aug 2022 22:49:03 +0000 (15:49 -0700)
committerTejun Heo <tj@kernel.org>
Sun, 4 Sep 2022 19:26:51 +0000 (09:26 -1000)
commit5251c6c436edf81e5f27de31ca34bcdc12fc94e1
tree8bc0c6ccbd7ec56530f1779063716b729fd83534
parentdc79ec1b232ad2c165d381d3dd2626df4ef9b5a4
cgroup: add pids.peak interface for pids controller

pids.peak tracks the high watermark of usage for number of pids. This
helps give a better baseline on which to set pids.max. Polling
pids.current isn't really feasible, since it would potentially miss
short-lived spikes.

This interface is analogous to memory.peak.

Signed-off-by: Josh Don <joshdon@google.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/pids.c