Re: [PATCH] mm/show_mem: Print totalreserve_pages in show_mem output

From: Johannes Weiner
Date: Thu Aug 14 2025 - 10:28:44 EST


On Thu, Aug 14, 2025 at 05:26:21PM +0800, Ye Liu wrote:
> From: Ye Liu <liuye@xxxxxxxxxx>
>
> Add totalreserve_pages to the main show_mem output line for easier
> debugging and memory analysis. This helps developers and
> administrators quickly see how many pages are reserved by the kernel
> and not available for user allocations.

This number isn't used very widely in decision making.

For actual allocations, what matters is watermarks, lowmem_reserve,
highatomic, and cma pages - all of which are already printed out on a
per-zone basis in show_mem().