Re: [PATCH v2 3/3] mm/page_alloc: Add trace event for totalreserve_pages calculation

From: David Rientjes
Date: Sun Mar 09 2025 - 20:54:27 EST


On Sat, 8 Mar 2025, Martin Liu wrote:

> This commit introduces a new trace event,
> `mm_calculate_totalreserve_pages`, which reports the new reserve value
> at the exact time when it takes effect.
>
> The `totalreserve_pages` value represents the total amount of memory
> reserved across all zones and nodes in the system. This reserved memory
> is crucial for ensuring that critical kernel operations have access to
> sufficient memory, even under memory pressure.
>
> By tracing the `totalreserve_pages` value, developers can gain insights
> that how the total reserved memory changes over time.
>
> Signed-off-by: Martin Liu <liumartin@xxxxxxxxxx>

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>