Re: CONFIG_DEBUG_SLAB_LEAK omits size-4096 and larger?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: J. Bruce Fields <bfields@...>
Cc: <linux-kernel@...>, <linux-nfs@...>, Weathers, Norman R. <Norman.R.Weathers@...>
Date: Wednesday, June 11, 2008 - 4:09 pm

On Wed, 11 Jun 2008 15:52:22 -0400
"J. Bruce Fields" <bfields@fieldses.org> wrote:



Hmm...I've never used this, but in kmem_cache_alloc():

        /*
         * Enable redzoning and last user accounting, except for caches with
         * large objects, if the increased size would increase the object size
         * above the next power of two: caches with object sizes just above a
         * power of two have a significant amount of internal fragmentation.
         */
        if (size < 4096 || fls(size - 1) == fls(size-1 + REDZONE_ALIGN +
                                                2 * sizeof(unsigned long long)))
                flags |= SLAB_RED_ZONE | SLAB_STORE_USER;


...looks like it specifically excludes some caches.




-- 
Jeff Layton <jlayton@poochiereds.net>
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
CONFIG_DEBUG_SLAB_LEAK omits size-4096 and larger?, J. Bruce Fields, (Wed Jun 11, 3:52 pm)
Re: CONFIG_DEBUG_SLAB_LEAK omits size-4096 and larger?, Jeff Layton, (Wed Jun 11, 4:09 pm)
Re: CONFIG_DEBUG_SLAB_LEAK omits size-4096 and larger?, J. Bruce Fields, (Wed Jun 11, 4:57 pm)
RE: CONFIG_DEBUG_SLAB_LEAK omits size-4096 and larger?, Weathers, Norman R., (Wed Jun 11, 6:46 pm)
Re: CONFIG_DEBUG_SLAB_LEAK omits size-4096 and larger?, J. Bruce Fields, (Wed Jun 11, 6:54 pm)
RE: CONFIG_DEBUG_SLAB_LEAK omits size-4096 and larger?, Weathers, Norman R., (Thu Jun 12, 3:54 pm)
Re: CONFIG_DEBUG_SLAB_LEAK omits size-4096 and larger?, J. Bruce Fields, (Fri Jun 13, 4:15 pm)
RE: CONFIG_DEBUG_SLAB_LEAK omits size-4096 and larger?, Weathers, Norman R., (Fri Jun 13, 5:53 pm)
Re: CONFIG_DEBUG_SLAB_LEAK omits size-4096 and larger?, J. Bruce Fields, (Fri Jun 13, 6:04 pm)
RE: CONFIG_DEBUG_SLAB_LEAK omits size-4096 and larger?, Weathers, Norman R., (Fri Jun 13, 6:53 pm)
Re: CONFIG_DEBUG_SLAB_LEAK omits size-4096 and larger?, J. Bruce Fields, (Mon Jun 16, 1:43 pm)
RE: CONFIG_DEBUG_SLAB_LEAK omits size-4096 and larger?, Weathers, Norman R., (Thu Jun 19, 11:53 am)
Re: CONFIG_DEBUG_SLAB_LEAK omits size-4096 and larger?, J. Bruce Fields, (Thu Jun 19, 2:46 pm)