Re: [PATCH 3/3] mm: oom: show unreclaimable slab info when unreclaimable slabs > user memory

From: David Rientjes
Date: Tue Oct 17 2017 - 18:39:17 EST


On Wed, 18 Oct 2017, Yang Shi wrote:

> > Yes, this should catch occurrences of "huge unreclaimable slabs", right?
>
> Yes, it sounds so. Although single "huge" unreclaimable slab might not result
> in excessive slabs use in a whole, but this would help to filter out "small"
> unreclaimable slab.
>

Keep in mind this is regardless of SLAB_RECLAIM_ACCOUNT: your patch has
value beyond only unreclaimable slab, it can also be used to show
instances where the oom killer was invoked without properly reclaiming
slab. If the total footprint of a slab cache exceeds 5%, I think a line
should be emitted unconditionally to the kernel log.