Re: [PATCH] inotify, memcg: account inotify instances to kmemcg

2020-12-20 Thread Amir Goldstein
On Sun, Dec 20, 2020 at 7:56 PM Shakeel Butt wrote: > > On Sun, Dec 20, 2020 at 3:31 AM Amir Goldstein wrote: > > > > On Sun, Dec 20, 2020 at 6:24 AM Shakeel Butt wrote: > > > > > > On Sat, Dec 19, 2020 at 8:25 AM Amir Goldstein wrote: > > > > > > > > On Sat, Dec 19, 2020 at 4:31 PM Shakeel

Re: [PATCH] inotify, memcg: account inotify instances to kmemcg

2020-12-20 Thread Shakeel Butt
On Sun, Dec 20, 2020 at 3:31 AM Amir Goldstein wrote: > > On Sun, Dec 20, 2020 at 6:24 AM Shakeel Butt wrote: > > > > On Sat, Dec 19, 2020 at 8:25 AM Amir Goldstein wrote: > > > > > > On Sat, Dec 19, 2020 at 4:31 PM Shakeel Butt wrote: > > > > > > > > On Sat, Dec 19, 2020 at 1:48 AM Amir

Re: [PATCH] inotify, memcg: account inotify instances to kmemcg

2020-12-20 Thread Amir Goldstein
On Sun, Dec 20, 2020 at 6:24 AM Shakeel Butt wrote: > > On Sat, Dec 19, 2020 at 8:25 AM Amir Goldstein wrote: > > > > On Sat, Dec 19, 2020 at 4:31 PM Shakeel Butt wrote: > > > > > > On Sat, Dec 19, 2020 at 1:48 AM Amir Goldstein wrote: > > > > > > > > On Sat, Dec 19, 2020 at 12:11 AM Shakeel

Re: [PATCH] inotify, memcg: account inotify instances to kmemcg

2020-12-19 Thread Shakeel Butt
On Sat, Dec 19, 2020 at 8:25 AM Amir Goldstein wrote: > > On Sat, Dec 19, 2020 at 4:31 PM Shakeel Butt wrote: > > > > On Sat, Dec 19, 2020 at 1:48 AM Amir Goldstein wrote: > > > > > > On Sat, Dec 19, 2020 at 12:11 AM Shakeel Butt wrote: > > > > > > > > Currently the fs sysctl

Re: [PATCH] inotify, memcg: account inotify instances to kmemcg

2020-12-19 Thread Amir Goldstein
On Sat, Dec 19, 2020 at 4:31 PM Shakeel Butt wrote: > > On Sat, Dec 19, 2020 at 1:48 AM Amir Goldstein wrote: > > > > On Sat, Dec 19, 2020 at 12:11 AM Shakeel Butt wrote: > > > > > > Currently the fs sysctl inotify/max_user_instances is used to limit the > > > number of inotify instances on the

Re: [PATCH] inotify, memcg: account inotify instances to kmemcg

2020-12-19 Thread Shakeel Butt
On Sat, Dec 19, 2020 at 1:48 AM Amir Goldstein wrote: > > On Sat, Dec 19, 2020 at 12:11 AM Shakeel Butt wrote: > > > > Currently the fs sysctl inotify/max_user_instances is used to limit the > > number of inotify instances on the system. For systems running multiple > > workloads, the per-user

Re: [PATCH] inotify, memcg: account inotify instances to kmemcg

2020-12-19 Thread Amir Goldstein
On Sat, Dec 19, 2020 at 12:11 AM Shakeel Butt wrote: > > Currently the fs sysctl inotify/max_user_instances is used to limit the > number of inotify instances on the system. For systems running multiple > workloads, the per-user namespace sysctl max_inotify_instances can be > used to further

[PATCH] inotify, memcg: account inotify instances to kmemcg

2020-12-18 Thread Shakeel Butt
Currently the fs sysctl inotify/max_user_instances is used to limit the number of inotify instances on the system. For systems running multiple workloads, the per-user namespace sysctl max_inotify_instances can be used to further partition inotify instances. However there is no easy way to set a