On Wed, Jun 11, 2008 at 04:09:47PM -0400, Jeff Layton wrote:Ah, I missed that! I'm a little confused as to how those flags behavior affect the collection of the leak debugging data, but I can verify that the below does result in size-4096 showing up in /proc/slab_allocators; hopefully there's no more negative result than the performance penalty. Norman, do you think you could try applying this and then trying again? --b. diff --git a/mm/slab.c b/mm/slab.c index 06236e4..b379e31 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -2202,7 +2202,7 @@ kmem_cache_create (const char *name, size_t size, size_t align, * 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 + + if (size < 8192 || fls(size - 1) == fls(size-1 + REDZONE_ALIGN + 2 * sizeof(unsigned long long))) flags |= SLAB_RED_ZONE | SLAB_STORE_USER; if (!(flags & SLAB_DESTROY_BY_RCU)) --
| Jan Engelhardt | intel iommu (Re: -mm merge plans for 2.6.23) |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Linus Torvalds | Linux 2.6.25-rc4 |
| Jon Smirl | Re: 463 kernel developers missing! |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | [GIT]: Networking |
| Jarek Poplawski | Re: HTB accuracy for high speed |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
