Re: [PATCH v2 1/3] mm/page_alloc: Add trace event for per-zone watermark setup

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


On Sat, 8 Mar 2025, Martin Liu wrote:

> This commit introduces the `mm_setup_per_zone_wmarks` trace event,
> which provides detailed insights into the kernel's per-zone watermark
> configuration, offering precise timing and the ability to correlate
> watermark changes with specific kernel events.
>
> While `/proc/zoneinfo` provides some information about zone watermarks,
> this trace event offers:
>
> 1. The ability to link watermark changes to specific kernel events and
> logic.
>
> 2. The ability to capture rapid or short-lived changes in watermarks
> that may be missed by user-space polling
>
> 3. Diagnosing unexpected kswapd activity or excessive direct reclaim
> triggered by rapidly changing watermarks.
>
> Signed-off-by: Martin Liu <liumartin@xxxxxxxxxx>

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>