Skip to content

mm/slub: batch partial slab list operations

Hao Li linux-mm lkml 3 versions – Applied

Status from this message: Applied to slab/for-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 5 repliesApplied
  2. v22 patches 0 repliesSuperseded
  3. v11 patch 4 repliesSuperseded

Changes in v3 from the cover letter

- Reorder the two patches for better logical flow. (Thanks Vlastimil)
- Introduce set_node_partial_state for symmetry. (Thanks Vlastimil)

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2mm/slub: introduce helpers for node partial slab statemm/slub.c+17 -63 replies
2/2mm/slub: detach and reattach partial slabs in batchmm/slub.c+20 -81 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchHarry Yoo (Oracle)
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] mm/slub: batch partial slab list operations

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

Patch 1 is a cleanup patch that wraps duplicated code into helper functions.

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

Changes in v3:
- Reorder the two patches for better logical flow. (Thanks Vlastimil)
- Introduce set_node_partial_state for symmetry. (Thanks Vlastimil)

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

Hao Li (2):
mm/slub: introduce helpers for node partial slab state mm/slub: detach and reattach partial slabs in batch

 mm/slub.c | 51 +++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 37 insertions(+), 14 deletions(-)

base-commit: 6b41dc6749232c14f3e069f8115084a7bbeee402

Signature · 1 line
2.54.0