Re: [PATCH 12/30] mm: memory reserve management

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Matt Mackall <mpm@...>
Cc: Pekka Enberg <penberg@...>, Linus Torvalds <torvalds@...>, Andrew Morton <akpm@...>, <linux-kernel@...>, <linux-mm@...>, <netdev@...>, <trond.myklebust@...>, Daniel Lezcano <dlezcano@...>, Neil Brown <neilb@...>, <cl@...>
Date: Monday, July 28, 2008 - 1:13 pm

On Mon, 2008-07-28 at 11:49 -0500, Matt Mackall wrote:

Right, both make sense, so _kmalloc_size() has my vote.


Like said, I still need to do all the SLOB reservation stuff. That
includes coming up with upper bound fragmentation loss.

For SL[UA]B I use roundup_power_of_two for kmalloc sizes. Thus with the
above ksize(), if we did p=kmalloc(x), then we'd account
roundup_power_of_two(x), and that should be equal to
roundup_power_of_two(ksize(p)), as ksize will always be smaller or equal
to the roundup.

I'm guessing the power of two upper bound is good for SLOB too -
although I haven't tried proving it wrong or tighetening it.

Only the kmem_cache_* reservation stuff would need some extra attention
with SLOB.

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 12/30] mm: memory reserve management, Peter Zijlstra, (Thu Jul 24, 10:00 am)
Re: [PATCH 12/30] mm: memory reserve management, Pekka Enberg, (Mon Jul 28, 6:06 am)
Re: [PATCH 12/30] mm: memory reserve management, Matt Mackall, (Mon Jul 28, 12:49 pm)
Re: [PATCH 12/30] mm: memory reserve management, Peter Zijlstra, (Mon Jul 28, 1:13 pm)
Re: [PATCH 12/30] mm: memory reserve management, Peter Zijlstra, (Mon Jul 28, 6:17 am)
Re: [PATCH 12/30] mm: memory reserve management, Pekka Enberg, (Mon Jul 28, 6:29 am)
Re: [PATCH 12/30] mm: memory reserve management, Peter Zijlstra, (Mon Jul 28, 6:39 am)
Re: [PATCH 12/30] mm: memory reserve management, Matt Mackall, (Mon Jul 28, 12:59 pm)
Re: [PATCH 12/30] mm: memory reserve management, Peter Zijlstra, (Mon Jul 28, 1:13 pm)
Re: [PATCH 12/30] mm: memory reserve management, Pekka Enberg, (Mon Jul 28, 6:41 am)