Re: [PATCH 1/2] mm/page_alloc: add tracepoints for zone->lock acquisitions
From: Dmitry Ilvokhin
Date: Fri May 08 2026 - 14:08:02 EST
On Fri, May 08, 2026 at 07:40:51PM +0200, Vlastimil Babka (SUSE) wrote:
> On 5/8/26 7:38 PM, Vlastimil Babka (SUSE) wrote:
> > 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/
>
> And this is the generic solution I think?
>
> https://lore.kernel.org/all/cover.1777999826.git.d@xxxxxxxxxxxx/
Thanks for cc'ing me, Vlastimil.
Yes, this is an attempt at a generic solution for tracing contended
locks, including spinlocks, so it should also cover the use case
proposed in this patchset.
In fact, zone->lock contention was one of the primary motivations for
this work.