Re: [RFC PATCH v3 0/7] slub: Delay freezing of CPU partial slabs

From: Christoph Lameter
Date: Mon Oct 30 2023 - 15:25:25 EST


On Sat, 28 Oct 2023, Chengming Zhou wrote:

2. But for full slab (slab->freelist == NULL), PG_workingset is not much useful, we don't
safely know whether it's used as the cpu slab or not just from this flag. So __slab_free()
still rely on the "frozen" bit to know it.

3. And the maintaining of "frozen" has no extra cost now, since it's changed together with "freelist"
and other counter using cmpxchg, we already have the cmpxchg when start to use a slab as the cpu slab.

Maybe I missed something, I don't know how to drop the frozen flag.


Maybe frozen is now = PG_Workingset | cmpxchg-frozen?