Re: [PATCH 00/13] mm, swap: rework of swap allocator locks

From: Andrew Morton
Date: Wed Oct 23 2024 - 06:28:26 EST


On Wed, 23 Oct 2024 03:24:38 +0800 Kairui Song <ryncsn@xxxxxxxxx> wrote:

> After this series, lock contention on si->lock is nearly unobservable
> with `perf lock` with the same test above :
>
> contended total wait max wait avg wait type caller
> ... snip ...
> 91 204.62 us 4.51 us 2.25 us spinlock cluster_move+0x2e
> ... snip ...
> 47 125.62 us 4.47 us 2.67 us spinlock cluster_move+0x2e
> ... snip ...
> 23 63.15 us 3.95 us 2.74 us spinlock cluster_move+0x2e
> ... snip ...
> 17 41.26 us 4.58 us 2.43 us spinlock cluster_isolate_lock+0x1d
> ... snip ...

Were any overall runtime benefits observed?