LWN.net Logo

mm/slub: Add SLUB_RANDOMIZE support

From:  George Spelvin <linux@horizon.com>
To:  penberg@cs.helsinki.fi, herbert@gondor.apana.org.au, mpm@selenic.com
Subject:  [PATCH 0/8] mm/slub: Add SLUB_RANDOMIZE support
Date:  Sun, 13 Mar 2011 20:20:44 -0400
Message-ID:  <20110316022804.27676.qmail@science.horizon.com>
Cc:  linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux@horizon.com
Archive-link:  Article, Thread

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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Copyright © 2011, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds