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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Pekka Enberg <penberg@...>
Cc: Peter Zijlstra <a.p.zijlstra@...>, 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 - 12:49 pm

On Mon, 2008-07-28 at 13:06 +0300, Pekka Enberg wrote:

I think you mean ksize there. My big issue is that we need to make it
clear that ksize pairs -only- with kmalloc and that
ksize(kmem_cache_alloc(...)) is a categorical error. Preferably, we do
this by giving it a distinct name, like kmalloc_size(). We can stick an
underbar in front of it to suggest you ought not be using it too.


SLOB doesn't do this, of course. But does that matter? I think you want
to charge the actual allocation size to the reserve in all cases, no?
That probably means calling ksize() on both alloc and free.

-- 
Mathematics is the supreme nostalgia of our time.

--
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)