--- mm/slub.c | 5 +++++ 1 file changed, 5 insertions(+) Index: linux-2.6/mm/slub.c =================================================================== --- linux-2.6.orig/mm/slub.c 2008-03-17 00:15:32.814856378 -0700 +++ linux-2.6/mm/slub.c 2008-03-17 00:18:33.612761906 -0700 @@ -149,8 +149,13 @@ static inline void ClearSlabDebug(struct /* Enable to test recovery from slab corruption on boot */ #undef SLUB_RESILIENCY_TEST +#ifdef CONFIG_SLUB_DEBUG +#define DEFAULT_MAX_ORDER 0 +#define DEFAULT_MIN_OBJECTS 2 +#else #define DEFAULT_MAX_ORDER PAGE_ALLOC_COSTLY_ORDER #define DEFAULT_MIN_OBJECTS (2 << PAGE_ALLOC_COSTLY_ORDER) +#endif /* * Mininum number of partial slabs. These will be left on the partial