Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] mm/slub: batch partial slab list operations
@ 2026-05-28  9:52 Hao Li
  2026-05-28  9:52 ` [PATCH v2 1/2] mm/slub: detach and reattach partial slabs in batch Hao Li
  2026-05-28  9:52 ` [PATCH v2 2/2] mm/slub: introduce helper to decrement partial slab count and clear flag Hao Li
  0 siblings, 2 replies; 3+ messages in thread
From: Hao Li @ 2026-05-28  9:52 UTC (permalink / raw)
  To: vbabka, harry, akpm
  Cc: cl, rientjes, roman.gushchin, linux-mm, linux-kernel, Hao Li

The loops in get_partial_node_bulk() and __refill_objects_node() perform
individual list operations for each slab. This patchset optimize this.

Patch 1 reduces the number of list operations by processing slabs in
batches, thereby minimizing the time spent inside the critical section.

Patch 2 is a cleanup patch that wraps duplicated code into a helper
function.

Changes in v2:
- Patch 1 apply the same optimization to __refill_objects_node. (Thanks
  Harry and Vlastimil)
- Patch 2 introduce a helper to wraps duplicated code. (Thanks Harry)

Hao Li (2):
  mm/slub: detach and reattach partial slabs in batch
  mm/slub: introduce helper to decrement partial slab count and clear
    flag

 mm/slub.c | 43 +++++++++++++++++++++++++++++++------------
 1 file changed, 31 insertions(+), 12 deletions(-)

base-commit: 6b41dc6749232c14f3e069f8115084a7bbeee402
-- 
2.54.0



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-28  9:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-28  9:52 [PATCH v2 0/2] mm/slub: batch partial slab list operations Hao Li
2026-05-28  9:52 ` [PATCH v2 1/2] mm/slub: detach and reattach partial slabs in batch Hao Li
2026-05-28  9:52 ` [PATCH v2 2/2] mm/slub: introduce helper to decrement partial slab count and clear flag Hao Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox