Re: [PATCH v2] perf/aux: Avoid reclaim for optional higher-order allocations
From: Leo Yan
Date: Thu Nov 26 2026 - 04:20:41 EST
On Thu, Nov 26, 2026 at 11:08:10AM +0530, Dev Jain wrote:
>
>
> On 25/11/26 5:24 pm, Leo Yan wrote:
> > PERF_AUX_GFP includes GFP_KERNEL, which contains __GFP_RECLAIM. On
> > fragmented systems, costly AUX allocations can wake kswapd. When perf
> > falls back to lower orders, the allocating task can stall in direct
> > reclaim or compaction. Yabin Cui reported that the resulting memory
>
> When perf falls back to lower orders, how can the allocating task stall
> in direct reclaim? It stalls when it is performing the high order allocation.
>
> So let us write this as:
>
> "On fragmented systems, costly AUX allocations can wake kswapd/kcompactd,
> or worse, they can stall in direct reclaim/compaction."
Will do.
> Reviewed-by: Dev Jain <dev.jain@xxxxxxx>
Thanks for review, Dev and Yabin!