Re: [PATCH] procfs: provide slub's /proc/slabinfo

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Matt Mackall <mpm@...>
Cc: Ingo Molnar <mingo@...>, Linus Torvalds <torvalds@...>, Pekka Enberg <penberg@...>, Hugh Dickins <hugh@...>, Andi Kleen <andi@...>, Peter Zijlstra <a.p.zijlstra@...>, Linux Kernel Mailing List <linux-kernel@...>
Date: Saturday, January 5, 2008 - 4:16 pm

On Fri, 4 Jan 2008, Matt Mackall wrote:


Right I am thinking about 64 bit systems where the alignment is 8 bytes.


Yup that hits it by forcing a rounding up to a size of 512 bytes because 
there is no intermediate cache size before 1024. The rounding up is 
a pretty weak spot in terms of memory use.


Well we can actually turn this around. What I gave was not actually the 
worst case for SLOB. The worst case is an 8 byte allocation where SLOB 
needs double the memory of SLUB.

SLUB 	512	(Nothing wasted)
SLOB 	256	(Half of the page wasted for metadata)
SLAB	119	(32 byte mininum alloc size + management struct needs)

But these are all extreme cases. Depends on the mix of allocs who wins and 
from what I can tell the avoiding of rounding up to a power of two gives 
SLOB a key advantage. If we would find the worst offenders there and use 
kmem_cache_alloc instead then we may be able to offset that advantage.



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] procfs: provide slub's /proc/slabinfo, Hugh Dickins, (Wed Jan 2, 2:43 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Pekka Enberg, (Wed Jan 2, 3:09 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Linus Torvalds, (Wed Jan 2, 3:35 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Matt Mackall, (Wed Jan 2, 6:50 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Ingo Molnar, (Thu Jan 3, 4:52 am)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Christoph Lameter, (Thu Jan 3, 4:31 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Matt Mackall, (Thu Jan 3, 12:46 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Christoph Lameter, (Thu Jan 3, 10:21 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Matt Mackall, (Fri Jan 4, 12:11 am)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Pekka J Enberg, (Sat Jan 5, 12:21 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Matt Mackall, (Sun Jan 6, 1:51 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Pekka J Enberg, (Mon Jan 7, 2:06 pm)
[RFC PATCH] greatly reduce SLOB external fragmentation, Matt Mackall, (Wed Jan 9, 3:15 pm)
Re: [RFC PATCH] greatly reduce SLOB external fragmentation, Pekka J Enberg, (Thu Jan 10, 6:03 am)
Re: [RFC PATCH] greatly reduce SLOB external fragmentation, Pekka J Enberg, (Thu Jan 10, 6:02 am)
Re: [RFC PATCH] greatly reduce SLOB external fragmentation, Pekka J Enberg, (Thu Jan 10, 6:54 am)
Re: [RFC PATCH] greatly reduce SLOB external fragmentation, Linus Torvalds, (Thu Jan 10, 12:13 pm)
Re: [RFC PATCH] greatly reduce SLOB external fragmentation, Pekka J Enberg, (Wed Jul 30, 5:51 pm)
Re: [RFC PATCH] greatly reduce SLOB external fragmentation, Linus Torvalds, (Wed Jul 30, 6:00 pm)
Re: [RFC PATCH] greatly reduce SLOB external fragmentation, Christoph Lameter, (Thu Jul 31, 10:26 am)
Re: [RFC PATCH] greatly reduce SLOB external fragmentation, Christoph Lameter, (Thu Jul 31, 11:42 am)
Re: [RFC PATCH] greatly reduce SLOB external fragmentation, Christoph Lameter, (Thu Jul 31, 11:25 am)
Re: [RFC PATCH] greatly reduce SLOB external fragmentation, Christoph Lameter, (Thu Jul 31, 12:05 pm)
Re: [RFC PATCH] greatly reduce SLOB external fragmentation, Linus Torvalds, (Wed Jul 30, 6:35 pm)
Re: [RFC PATCH] greatly reduce SLOB external fragmentation, Christoph Lameter, (Thu Jan 10, 3:16 pm)
Re: [RFC PATCH] greatly reduce SLOB external fragmentation, Christoph Lameter, (Thu Jan 10, 3:31 pm)
Re: [RFC PATCH] greatly reduce SLOB external fragmentation, Linus Torvalds, (Thu Jan 10, 2:28 pm)
Re: [RFC PATCH] greatly reduce SLOB external fragmentation, Linus Torvalds, (Thu Jan 10, 3:41 pm)
Re: [RFC PATCH] greatly reduce SLOB external fragmentation, Christoph Lameter, (Thu Jan 10, 3:52 pm)
Re: [RFC PATCH] greatly reduce SLOB external fragmentation, Christoph Lameter, (Thu Jan 10, 3:46 pm)
Re: [RFC PATCH] greatly reduce SLOB external fragmentation, Christoph Lameter, (Thu Jan 10, 3:24 pm)
Re: [RFC PATCH] greatly reduce SLOB external fragmentation, Christoph Lameter, (Thu Jan 10, 3:51 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Matt Mackall, (Mon Jan 7, 3:03 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Pekka J Enberg, (Thu Jan 10, 6:04 am)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Pekka J Enberg, (Mon Jan 7, 4:44 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Pekka J Enberg, (Mon Jan 7, 3:53 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Christoph Lameter, (Sat Jan 5, 4:05 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Pekka J Enberg, (Mon Jan 7, 4:12 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Andi Kleen, (Sat Jan 5, 1:14 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Christoph Lameter, (Fri Jan 4, 4:34 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Matt Mackall, (Fri Jan 4, 4:55 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Christoph Lameter, (Fri Jan 4, 5:36 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Matt Mackall, (Fri Jan 4, 6:30 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Christoph Lameter, (Sat Jan 5, 4:16 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Andi Kleen, (Thu Jan 3, 10:45 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Peter Zijlstra, (Fri Jan 4, 5:17 am)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Christoph Lameter, (Fri Jan 4, 4:37 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Matt Mackall, (Fri Jan 4, 12:34 am)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Pekka Enberg, (Wed Jan 2, 3:49 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Linus Torvalds, (Wed Jan 2, 3:45 pm)
Re: [PATCH] procfs: provide slub's /proc/slabinfo, Christoph Lameter, (Wed Jan 2, 2:53 pm)