Re: [PATCH 3/4] mm: Centralize & improve oom reporting in show_mem.c

Michal Hocko
2022-04-20T06:58:40Z

On Tue 19-04-22 16:32:01, Kent Overstreet wrote:
> This patch:
> - Moves lib/show_mem.c to mm/show_mem.c

Sure, why not. Should be a separate patch.

> - Changes show_mem() to always report on slab usage
> - Instead of reporting on all slabs, we only report on top 10 slabs,
> and in sorted order
> - Also reports on shrinkers, with the new shrinkers_to_text().

Why do we need/want this? It would be also great to provide an example
of why the new output is better (in which cases) than the existing one.
--
Michal Hocko
SUSE Labs