Re: [Devel] [PATCH] mm: allow kmem limit bypassing if reclaimable slabs detected

2019-02-11 Thread Andrey Ryabinin
On 2/8/19 2:19 PM, Konstantin Khorenko wrote: > If we generate a lot of kmem (dentries and inodes in particular) > we may hit cgroup kmem limit in GFP_NOFS context (e.g. in > ext4_alloc_inode()) and fail to free reclaimable inodes due to NOFS > context. > > Detect reclaimable kmem on hitting th

[Devel] [PATCH] mm: allow kmem limit bypassing if reclaimable slabs detected

2019-02-08 Thread Konstantin Khorenko
If we generate a lot of kmem (dentries and inodes in particular) we may hit cgroup kmem limit in GFP_NOFS context (e.g. in ext4_alloc_inode()) and fail to free reclaimable inodes due to NOFS context. Detect reclaimable kmem on hitting the limit and allow to bypass the limit - reclaim will happen o