Re: [PATCH 04/16] slab: remove nodeid in struct slab

From: Christoph Lameter
Date: Thu Aug 22 2013 - 14:06:18 EST


On Thu, 22 Aug 2013, Joonsoo Kim wrote:

> @@ -1099,8 +1098,7 @@ static void drain_alien_cache(struct kmem_cache *cachep,
>
> static inline int cache_free_alien(struct kmem_cache *cachep, void *objp)
> {
> - struct slab *slabp = virt_to_slab(objp);
> - int nodeid = slabp->nodeid;
> + int nodeid = page_to_nid(virt_to_page(objp));
> struct kmem_cache_node *n;
> struct array_cache *alien = NULL;
> int node;

virt_to_page is a relatively expensive operation. How does this affect
performance?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/