lkml.org 
[lkml]   [2006]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC/PATCH 2/2] slab: consolidate allocation paths
On Thu, 15 Jun 2006, Pekka Enberg wrote:

> -static inline void *cache_alloc_cpucache(struct kmem_cache *cache, gfp_t flags)
> +static inline void *__cache_alloc(struct kmem_cache *cache, gfp_t flags,
> + int nodeid)
> {
> + if (nodeid != -1 && nodeid != numa_node_id() &&
> + cache->nodelists[nodeid])
> + return __cache_alloc_node(cache, flags, nodeid);
> +
> if (unlikely(current->flags & (PF_SPREAD_SLAB | PF_MEMPOLICY))) {
> void *objp = alternate_node_alloc(cache, flags);

So we always run through the additional code that you added for each
allocation on a numa system? The case of nodeid != -1 is a rare case.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-06-17 18:41    [W:0.087 / U:8.880 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site