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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Peter Zijlstra <a.p.zijlstra@...>
Cc: Linus Torvalds <torvalds@...>, Andrew Morton <akpm@...>, <linux-kernel@...>, <linux-mm@...>, <netdev@...>, <trond.myklebust@...>, Daniel Lezcano <dlezcano@...>, Neil Brown <neilb@...>, <mpm@...>, <cl@...>
Date: Monday, July 28, 2008 - 6:06 am

Hi Peter,

On Thu, 2008-07-24 at 16:00 +0200, Peter Zijlstra wrote:

Hmm, I'm not sure I like the use of __kmalloc_track_caller() (even
though you do add the wrappers for SLUB). The functions really are SLAB
internals so I'd prefer to see kmalloc_reserve() moved to the
allocators.


This function could use some comments...


Why do we discharge here?


If the allocation fails, we try again (but nothing has changed, right?).
Why?


Why don't we discharge from the reserve here if !obj?


I don't see 'emerg' used anywhere.


We're trying to get rid of kfree() so I'd __kfree_reserve() could to
mm/sl?b.c. Matt, thoughts?


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