login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
March
»
7
Re: [SLUB 2/3] Large kmalloc pass through. Removal of large general slabs
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Peter Zijlstra <a.p.zijlstra@...>
To: Christoph Lameter <clameter@...>
Cc: <akpm@...>, Marcelo Tosatti <marcelo@...>, <linux-kernel@...>, <linux-mm@...>, <mpm@...>, Manfred Spraul <manfred@...>
Subject:
Re: [SLUB 2/3] Large kmalloc pass through. Removal of large general slabs
Date: Wednesday, March 7, 2007 - 5:01 am
On Tue, 2007-03-06 at 18:35 -0800, Christoph Lameter wrote:
quoted text
> Unlimited kmalloc size and removal of general caches >=4. > > We can directly use the page allocator for all allocations 4K and larger. This > means that no general slabs are necessary and the size of the allocation passed > to kmalloc() can be arbitrarily large. Remove the useless general caches over 4k. >
quoted text
> Index: linux-2.6.21-rc2-mm1/include/linux/slub_def.h > =================================================================== > --- linux-2.6.21-rc2-mm1.orig/include/linux/slub_def.h 2007-03-06 17:56:14.000000000 -0800 > +++ linux-2.6.21-rc2-mm1/include/linux/slub_def.h 2007-03-06 17:57:11.000000000 -0800 > @@ -55,7 +55,7 @@ struct kmem_cache { > */ > #define KMALLOC_SHIFT_LOW 3 > > -#define KMALLOC_SHIFT_HIGH 18 > +#define KMALLOC_SHIFT_HIGH 11 > > #if L1_CACHE_BYTES <= 64 > #define KMALLOC_EXTRAS 2 > @@ -93,13 +93,6 @@ static inline int kmalloc_index(int size > if (size <= 512) return 9; > if (size <= 1024) return 10; > if (size <= 2048) return 11; > - if (size <= 4096) return 12; > - if (size <= 8 * 1024) return 13; > - if (size <= 16 * 1024) return 14; > - if (size <= 32 * 1024) return 15; > - if (size <= 64 * 1024) return 16; > - if (size <= 128 * 1024) return 17; > - if (size <= 256 * 1024) return 18; > return -1; > }
Perhaps so something with PAGE_SIZE here, as you know there are platforms/configs where PAGE_SIZE != 4k :-) -
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[SLUB 0/3] SLUB: The unqueued slab allocator V4
, Christoph Lameter
, (Tue Mar 6, 10:35 pm)
Re: [SLUB 0/3] SLUB: The unqueued slab allocator V4
, Mel Gorman
, (Thu Mar 8, 6:54 am)
Re: [SLUB 0/3] SLUB: The unqueued slab allocator V4
, Christoph Lameter
, (Thu Mar 8, 1:46 pm)
Re: [SLUB 0/3] SLUB: The unqueued slab allocator V4
, Christoph Lameter
, (Thu Mar 8, 12:48 pm)
Re: [SLUB 0/3] SLUB: The unqueued slab allocator V4
, Mel Gorman
, (Thu Mar 8, 1:40 pm)
Re: [SLUB 0/3] SLUB: The unqueued slab allocator V4
, Christoph Lameter
, (Thu Mar 8, 5:54 pm)
Re: [SLUB 0/3] SLUB: The unqueued slab allocator V4
, Mel Gorman
, (Fri Mar 9, 11:06 am)
Re: [SLUB 0/3] SLUB: The unqueued slab allocator V4
, Christoph Lameter
, (Fri Mar 9, 1:21 pm)
Re: [SLUB 0/3] SLUB: The unqueued slab allocator V4
, Mel Gorman
, (Fri Mar 9, 10:00 am)
Re: [SLUB 0/3] SLUB: The unqueued slab allocator V4
, Christoph Lameter
, (Fri Mar 9, 12:40 pm)
Re: [SLUB 0/3] SLUB: The unqueued slab allocator V4
, Christoph Lameter
, (Thu Mar 8, 2:16 pm)
Re: [SLUB 0/3] SLUB: The unqueued slab allocator V4
, Mel Gorman
, (Fri Mar 9, 9:55 am)
[SLUB 1/3] SLUB core
, Christoph Lameter
, (Tue Mar 6, 10:35 pm)
[SLUB 3/3] Guarantee minimum number of objects in a slab
, Christoph Lameter
, (Tue Mar 6, 10:35 pm)
[SLUB 2/3] Large kmalloc pass through. Removal of large gene...
, Christoph Lameter
, (Tue Mar 6, 10:35 pm)
Re: [SLUB 2/3] Large kmalloc pass through. Removal of large ...
, Peter Zijlstra
, (Wed Mar 7, 5:01 am)
Re: [SLUB 2/3] Large kmalloc pass through. Removal of large ...
, Christoph Lameter
, (Wed Mar 7, 11:34 am)
Re: [SLUB 2/3] Large kmalloc pass through. Removal of large ...
, Matt Mackall
, (Wed Mar 7, 2:03 pm)
Re: [SLUB 2/3] Large kmalloc pass through. Removal of large ...
, Christoph Lameter
, (Wed Mar 7, 2:23 pm)
Re: [SLUB 2/3] Large kmalloc pass through. Removal of large ...
, Matt Mackall
, (Tue Mar 6, 10:40 pm)
Re: [SLUB 2/3] Large kmalloc pass through. Removal of large ...
, Christoph Lameter
, (Tue Mar 6, 11:22 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Andrew Morton
Re: Linux 2.6.21-rc4
Andrew Morton
-mm merge plans for 2.6.23
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Balbir Singh
Re: [RFC][PATCH 2/7] RSS controller core
git
:
linux-netdev
:
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
David Miller
[GIT]: Networking
Andreas Henriksson
[PATCH 06/12] Remove bogus reference to tc-filters(8) from tc(8) manpage.
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
821 guests
online.
Online users
kevdimech
Syndicate