Re: [PATCH 1/2] cgroup_pids: track highwater mark of pids

2016-07-19 Thread Tejun Heo
Hello, On Sun, Jul 17, 2016 at 11:03:38PM +0300, Topi Miettinen wrote: > +static void pids_update_highwater_mark(struct pids_cgroup *p) > +{ > + while (1) { > + int64_t old_mark, new_mark, cur_mark; > + > + old_mark = atomic64_read(&p->highwater_mark); > + n

[PATCH 1/2] cgroup_pids: track highwater mark of pids

2016-07-17 Thread Topi Miettinen
Track maximum number of processes in cgroup, to be able to configure cgroup pids limits. The information is available in cgroup FS as file pids.highwater_mark. Example case demonstrating how to use the figure for systemd configuration: root@debian:~# cat /sys/fs/cgroup/system.slice/systemd-timesy