Re: [PATCH RFC 1/3] cgroup: list all subsystem states in debugfs files

2018-08-14 Thread Konstantin Khlebnikov
On 13.08.2018 20:53, Roman Gushchin wrote: On Mon, Aug 13, 2018 at 01:11:19PM -0400, Johannes Weiner wrote: On Mon, Aug 13, 2018 at 06:48:42AM -0700, Tejun Heo wrote: Hello, Konstantin. On Mon, Aug 13, 2018 at 09:58:05AM +0300, Konstantin Khlebnikov wrote: After removing cgroup subsystem stat

Re: [PATCH RFC 1/3] cgroup: list all subsystem states in debugfs files

2018-08-13 Thread Roman Gushchin
On Mon, Aug 13, 2018 at 01:11:19PM -0400, Johannes Weiner wrote: > On Mon, Aug 13, 2018 at 06:48:42AM -0700, Tejun Heo wrote: > > Hello, Konstantin. > > > > On Mon, Aug 13, 2018 at 09:58:05AM +0300, Konstantin Khlebnikov wrote: > > > After removing cgroup subsystem state could leak or live in back

Re: [PATCH RFC 1/3] cgroup: list all subsystem states in debugfs files

2018-08-13 Thread Johannes Weiner
On Mon, Aug 13, 2018 at 06:48:42AM -0700, Tejun Heo wrote: > Hello, Konstantin. > > On Mon, Aug 13, 2018 at 09:58:05AM +0300, Konstantin Khlebnikov wrote: > > After removing cgroup subsystem state could leak or live in background > > forever because it is pinned by some reference. For example memo

Re: [PATCH RFC 1/3] cgroup: list all subsystem states in debugfs files

2018-08-13 Thread Tejun Heo
Hello, Konstantin. On Mon, Aug 13, 2018 at 09:58:05AM +0300, Konstantin Khlebnikov wrote: > After removing cgroup subsystem state could leak or live in background > forever because it is pinned by some reference. For example memory cgroup > could be pinned by pages in cache or tmpfs. > > This pat

[PATCH RFC 1/3] cgroup: list all subsystem states in debugfs files

2018-08-12 Thread Konstantin Khlebnikov
After removing cgroup subsystem state could leak or live in background forever because it is pinned by some reference. For example memory cgroup could be pinned by pages in cache or tmpfs. This patch adds common debugfs interface for listing basic state for each controller. Controller could define