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

Andrey Ryabinin aryabinin at virtuozzo.com
Mon Feb 11 17:54:34 MSK 2019



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 the limit and allow to bypass the
> limit - reclaim will happen on next kmem alloc in GFP_KERNEL context.
> 
> Honor "vm.vfs_cache_min_ratio" sysctl and don't bypass in case the
> amount of reclaimable kmem is not enough.
> 
> https://jira.sw.ru/browse/PSBM-91566
> 
> Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
> ---

Acked-by: Andrey Ryabinin <aryabinin at virtuozzo.com>


More information about the Devel mailing list