Skip to content

SLUB: calculate_order() cleanups

Vlastimil Babka linux-mm linux-patches lkml oe-lkp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mm/slub: simplify the last resort slab order calculationmm/slub.c+1 -13 replies
2/4mm/slub: remove min_objects loop from calculate_order()mm/slub.c+18 -200 replies
3/4mm/slub: attempt to find layouts up to 1/2 waste in calculate_order()mm/slub.c+4 -101 reply
4/4mm/slub: refactor calculate_order() and calc_slab_order()mm/slub.c+9 -106 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchFeng TangJay Patel
SeriesT-b
1/4
2/4
3/4R-b
4/4R-b

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

Read the v1 thread

Cover letter [PATCH 0/4] SLUB: calculate_order() cleanups

Since reviewing recent patches made me finally dig into these functions in details for the first time, I've also noticed some opportunities for cleanups that should make them simpler and also deliver more consistent results for some corner case object sizes (probably not seen in practice). Thus patch 3 can increase slab orders somewhere, but only in the way that was already intended. Otherwise it's almost no functional changes.

Vlastimil Babka (4):
mm/slub: simplify the last resort slab order calculation mm/slub: remove min_objects loop from calculate_order() mm/slub: attempt to find layouts up to 1/2 waste in calculate_order() mm/slub: refactor calculate_order() and calc_slab_order()

 mm/slub.c | 63 ++++++++++++++++++++++++-------------------------------
 1 file changed, 27 insertions(+), 36 deletions(-)
Signature · 1 line
2.42.0