Re: [PATCH 2/3] fs: fsnotify: account fsnotify metadata to kmemcg

2018-06-19 Thread Shakeel Butt
On Tue, Jun 19, 2018 at 12:20 AM Amir Goldstein wrote: > > On Tue, Jun 19, 2018 at 8:13 AM, Shakeel Butt wrote: > > A lot of memory can be consumed by the events generated for the huge or > > unlimited queues if there is either no or slow listener. This can cause > > system level memory

Re: [PATCH 2/3] fs: fsnotify: account fsnotify metadata to kmemcg

2018-06-19 Thread Shakeel Butt
On Tue, Jun 19, 2018 at 12:20 AM Amir Goldstein wrote: > > On Tue, Jun 19, 2018 at 8:13 AM, Shakeel Butt wrote: > > A lot of memory can be consumed by the events generated for the huge or > > unlimited queues if there is either no or slow listener. This can cause > > system level memory

Re: [PATCH 2/3] fs: fsnotify: account fsnotify metadata to kmemcg

2018-06-19 Thread Amir Goldstein
On Tue, Jun 19, 2018 at 8:13 AM, Shakeel Butt wrote: > A lot of memory can be consumed by the events generated for the huge or > unlimited queues if there is either no or slow listener. This can cause > system level memory pressure or OOMs. So, it's better to account the > fsnotify kmem caches

Re: [PATCH 2/3] fs: fsnotify: account fsnotify metadata to kmemcg

2018-06-19 Thread Amir Goldstein
On Tue, Jun 19, 2018 at 8:13 AM, Shakeel Butt wrote: > A lot of memory can be consumed by the events generated for the huge or > unlimited queues if there is either no or slow listener. This can cause > system level memory pressure or OOMs. So, it's better to account the > fsnotify kmem caches

[PATCH 2/3] fs: fsnotify: account fsnotify metadata to kmemcg

2018-06-18 Thread Shakeel Butt
A lot of memory can be consumed by the events generated for the huge or unlimited queues if there is either no or slow listener. This can cause system level memory pressure or OOMs. So, it's better to account the fsnotify kmem caches to the memcg of the listener. There are seven fsnotify kmem

[PATCH 2/3] fs: fsnotify: account fsnotify metadata to kmemcg

2018-06-18 Thread Shakeel Butt
A lot of memory can be consumed by the events generated for the huge or unlimited queues if there is either no or slow listener. This can cause system level memory pressure or OOMs. So, it's better to account the fsnotify kmem caches to the memcg of the listener. There are seven fsnotify kmem