From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Lameter Subject: Re: [patch v2] slub: add option to disable higher order debugging slabs Date: Tue, 7 Jul 2009 11:57:19 -0400 (EDT) Message-ID: References: <1246374095.8014.28.camel@penberg-laptop> <84144f020906302253n2424d4a5k3aaf124838a041df@mail.gmail.com> <84144f020907030023v2d09632bt13b6c25f96c0b803@mail.gmail.com> Mime-Version: 1.0 Return-path: In-Reply-To: Sender: kernel-testers-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: TEXT/PLAIN; charset="us-ascii" Content-Transfer-Encoding: 7bit To: David Rientjes Cc: Pekka Enberg , Larry Finger , "Rafael J. Wysocki" , Linux Kernel Mailing List , Kernel Testers List , Johannes Berg On Tue, 7 Jul 2009, David Rientjes wrote: > + * Debugging flags that require metadata to be stored in the slab, up to > + * DEBUG_SIZE in size. > + */ > +#define DEBUG_SIZE_FLAGS (SLAB_RED_ZONE | SLAB_POISON | SLAB_STORE_USER) > +#define DEBUG_SIZE (3 * sizeof(void *) + 2 * sizeof(struct track)) There is no need for DEBUG_SIZE since slub keeps both the size of the object kmem_cache->objsize and the size with the metadata kmem_cache->size If the order of both is different then the order would increase.