Re: [PATCH 0/2 v4] oom: capture unreclaimable slab info in oom message when kernel panic

From: Michal Hocko
Date: Tue Sep 26 2017 - 03:56:45 EST


On Tue 26-09-17 05:52:50, Yang Shi wrote:
> Maybe we can set a unreclaimable slab/total mem ratio. For example, when
> unreclaimable slab size >= 50% total memory size, then we print out slab
> stats in oom? And, the ratio might be adjustable in /proc.

This sounds quite reasonable to me. I would compare the slab amount to
the directly user backed memory (LRU ages) though.

--
Michal Hocko
SUSE Labs