Re: [PATCH v2 0/3] use vma locks for proc/pid/{smaps|numa_maps} reads
From: Andrew Morton
Date: Tue May 26 2026 - 21:49:50 EST
On Thu, 21 May 2026 08:16:01 -0700 Suren Baghdasaryan <surenb@xxxxxxxxxx> wrote:
> > > It might be but the point of this patchset (and the previous one that
> > > made a similar change for /proc/pid/maps) is to reduce mmap_lock
> > > contention, not to speed up the read operation, which is not a
> > > performance critical part.
> >
> > Well, this interface has been around .. forever, so if there is a noticeable
> > change in performance it should be called out.
>
> Sorry, I missed your reply. I'll see if I can adopt Paul's test for
> /proc/pid/maps [1] for benchmarking smaps but I would expect similar
> results as was reported in [2].
How's it coming along ;)
> [1] https://github.com/paulmckrcu/proc-mmap_sem-test
> [2] https://lore.kernel.org/all/20250719182854.3166724-1-surenb@xxxxxxxxxx/
I've moved this series to the tail of mm-unstable to permit more time.