Skip to content

mm/slub: Add SLUB_RANDOMIZE support

George Spelvin linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 30 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8drivers/random: Cache align ip_random betterdrivers/char/random.c+1 -110 replies
2/8drivers/char/random: Split out __get_random_intdrivers/char/random.c+17 -106 replies
3/8drivers/char/random: make get_random_int_hash a structuredrivers/char/random.c+7 -40 replies
4/8drivers/char/random: Add get_random_mod() functionsdrivers/char/random.c include/linux/random.h+77 -01 reply
5/8mm/slub: Factor out some common code.mm/slub.c+43 -509 replies
6/8mm/slub: Remove unnecessary parametermm/slub.c+6 -91 reply
7/8mm/slub.c: Add slab randomization.include/linux/slab.h mm/slub.c+59 -120 replies
8/8mm/slub.c: Enable Kconfig control.drivers/char/Kconfig drivers/char/random.c include/linux/random.h +3 more+72 -30 replies

Reviews trailers per patch

3 of 8 patches have a Reviewed-by or Acked-by.

PatchMatt MackallPekka EnbergDavid Rientjes
1/8A-b A-b
2/8
3/8
4/8
5/8A-b
6/8A-b
7/8
8/8

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 v1 thread

Cover letter [PATCH 0/8] mm/slub: Add SLUB_RANDOMIZE support

As a followup to the "[PATCH] Make /proc/slabinfo 0400" thread, this is a patch series to randomize the order of object allocations within a page. It can be extended to SLAB and SLOB if desired. Mostly it's for benchmarking and discussion.

It Boots For Me(tm).

Patches 1-4 and 8 touch drivers/char/random.c, to add support for efficiently generating a series of uniform random integers in small ranges. Is this okay with Herbert & Matt?

I did a bit of code cleanup while I was at it, but kept it to separate patches. Patches 4 and 7 are the heart of the new code, but I'd particularly like comments on patch 8, as I don't understand the kconfig stuff very well. Is the feature description good and are the control knobs adequate?

Checkpatch complains about a too-short CONFIG option description on 8/8; I think it's spurious.