Skip to content

guarantee natural alignment for kmalloc()

Vlastimil Babka linux-block linux-btrfs linux-fsdevel linux-mm linux-xfs lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 37 repliesIn review
  2. v1 RFC2 patches 15 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm, sl[ou]b: improve memory accountingmm/slab_common.c mm/slob.c mm/slub.c+33 -90 replies
2/2mm, sl[aou]b: guarantee natural alignment for kmalloc(power-of-two)Documentation/core-api/memory-allocation.rst include/linux/slab.h mm/slab_common.c +1 more+49 -1237 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMatthew Wilcox (Oracle)Michal HockoKirill A. Shutemov
1/2
2/2R-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/2] guarantee natural alignment for kmalloc()

After a while, here's v2 of the series, also discussed at LSF/MM [1]. I've updated the documentation bits and expanded changelog. Also measured effect on SLOB, and found it to be within noise. That required first adding some accounting for SLOB, which I believe is useful in general, so that became Patch 1. All other details are in Patch 2 changelog.

[1] https://lwn.net/Articles/787740/

Vlastimil Babka (2):
mm, sl[ou]b: improve memory accounting
mm, sl[aou]b: guarantee natural alignment for kmalloc(power-of-two)

 Documentation/core-api/memory-allocation.rst |  4 ++
 include/linux/slab.h                         |  4 ++
 mm/slab_common.c                             | 19 +++++-
 mm/slob.c                                    | 62 +++++++++++++++-----
 mm/slub.c                                    | 14 ++++-
 5 files changed, 82 insertions(+), 21 deletions(-)
Signature · 1 line
2.22.1