Re: [PATCH] mm, slub: splice cpu and page freelists in deactivate_slab()

2021-01-15 Thread Jann Horn
On Fri, Jan 15, 2021 at 7:35 PM Vlastimil Babka wrote: > In deactivate_slab() we currently move all but one objects on the cpu freelist > to the page freelist one by one using the costly cmpxchg_double() operation. > Then we unfreeze the page while moving the last object on page freelist, with >

[PATCH] mm, slub: splice cpu and page freelists in deactivate_slab()

2021-01-15 Thread Vlastimil Babka
In deactivate_slab() we currently move all but one objects on the cpu freelist to the page freelist one by one using the costly cmpxchg_double() operation. Then we unfreeze the page while moving the last object on page freelist, with a final cmpxchg_double(). This can be optimized to avoid the