Re: [PATCH 1/3] mm/slub: fix the race between validate_slab and slab_free

From: Christoph Lameter
Date: Thu Jun 02 2022 - 11:14:50 EST


On Mon, 30 May 2022, David Rientjes wrote:

> > Unconditionally taking n->list_lock will degrade performance.
>
> This is a good point, it would be useful to gather some benchmarks for
> workloads that are known to thrash some caches and would hit this path
> such as netperf TCP_RR.

Its obvious that adding new spinlocks to some of the hottest functions in
the kernel will degrade performance. This goes against the basic design of
these functions to be as efficient as possible.