Re: [PATCH v2 2/3] mm/page_alloc: Add trace event for per-zone lowmem reserve setup
From: David Rientjes
Date: Sun Mar 09 2025 - 20:54:07 EST
On Sat, 8 Mar 2025, Martin Liu wrote:
> This commit introduces the `mm_setup_per_zone_lowmem_reserve` trace
> event,which provides detailed insights into the kernel's per-zone lowmem
> reserve configuration.
>
> The trace event provides precise timestamps, allowing developers to
>
> 1. Correlate lowmem reserve changes with specific kernel events and
> able to diagnose unexpected kswapd or direct reclaim behavior
> triggered by dynamic changes in lowmem reserve.
>
> 2. know memory allocation failures that occur due to insufficient lowmem
> reserve, by precisely correlating allocation attempts with reserve
> adjustments.
>
> Signed-off-by: Martin Liu <liumartin@xxxxxxxxxx>
Acked-by: David Rientjes <rientjes@xxxxxxxxxx>