Re: [PATCH 06/30] mm: kmem_alloc_estimate()

!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@...>, <cl@...>
Date: Wednesday, July 30, 2008 - 8:21 am

Hi Peter,

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

Just a nitpick, but:


kmalloc_estimate_objs()?


kmalloc_estimate_bytes()?


Hmm, I'm not sure why slab with just one object is treated separately
here. Surely you have per-CPU slabs then as well?


Isn't this problematic with CPU hotplug? Shouldn't we use
num_possible_cpus() here?


For bytes > PAGE_SIZE this doesn't look right (for SLUB). We do page
allocator pass-through which means that we'll be grabbing high order
pages which can be bigger than what 'pages' is here.


Heh, yes please. Or add a comment why it doesn't matter.


--
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 06/30] mm: kmem_alloc_estimate(), Peter Zijlstra, (Thu Jul 24, 10:00 am)
Re: [PATCH 06/30] mm: kmem_alloc_estimate(), Pekka Enberg, (Wed Jul 30, 8:21 am)
Re: [PATCH 06/30] mm: kmem_alloc_estimate(), Peter Zijlstra, (Wed Jul 30, 9:31 am)
Re: [PATCH 06/30] mm: kmem_alloc_estimate(), Christoph Lameter, (Wed Jul 30, 4:02 pm)