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

2020-12-21 Thread Jan Kara
On Sun 20-12-20 13:32:46, Amir Goldstein wrote: > On Sun, Dec 20, 2020 at 6:46 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

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

2020-12-20 Thread Shakeel Butt
On Sun, Dec 20, 2020 at 3:32 AM Amir Goldstein wrote: > > On Sun, Dec 20, 2020 at 6:46 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 v2] inotify, memcg: account inotify instances to kmemcg

2020-12-20 Thread Amir Goldstein
On Sun, Dec 20, 2020 at 6:46 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 v2] inotify, memcg: account inotify instances to kmemcg

2020-12-19 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