[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0803062108210.1143@schroedinger.engr.sgi.com>
Date: Thu, 6 Mar 2008 21:11:39 -0800 (PST)
From: Christoph Lameter <clameter@....com>
To: Nick Piggin <npiggin@...e.de>
cc: netdev@...r.kernel.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
yanmin_zhang@...ux.intel.com, David Miller <davem@...emloft.net>,
Eric Dumazet <dada1@...mosbay.com>
Subject: Re: [rfc][patch 2/3] slab: introduce SMP alignment
On Fri, 7 Mar 2008, Nick Piggin wrote:
> > No the slab allocators were optimized for VSMP so that the
> > internode_alignment is not necessary there. That was actually one of the
> > requirements that triggered the slab numa work.
>
> BTW. can you explain this incredible claim that the slab allocators
> do not need internode_alignment to avoid false sharing of allocated
> objects on VSMP? I don't understand how that would work at all.
The queues are per node which means that pages from which we allocate are
distinct per node. As long as processes allocate and free object on a
single node all is fine. Problems can arise though if objects are used
across node. The earlier incarnation of SLAB had a single global queue for
slab pages and objects could be allocated from an arbitrary processor.
Objects from the same page were allocated from all processors.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists