Re: [PATCH 1/2] mm/page_alloc: add tracepoints for zone->lock acquisitions

From: Vlastimil Babka (SUSE)

Date: Fri May 08 2026 - 13:39:57 EST


On 5/8/26 7:29 PM, Andrew Morton wrote:
> e .configOn Fri, 8 May 2026 18:22:06 +0200 hawk@xxxxxxxxxx wrote:
>
>> Add tracepoints to the page allocator fast paths that acquire
>> zone->lock, allowing diagnosis of lock contention in production.
>
> Thanks, I'm surprised we haven't done this yet.

There was a recent attempt [1]. Not being a generic solution wasn't welcome.

[1] https://lore.kernel.org/all/cover.1772206930.git.d@xxxxxxxxxxxx/

> Unfortunately "mm: use spinlock guards for zone lock" messed this up
> (https://lore.kernel.org/all/cover.1777462630.git.d@xxxxxxxxxxxx/).
>
> So please let's give it a few days for reviewers to comment then redo
> against mm.git's mm-unstable branch?