From owner-freebsd-arch Wed Feb 27 11:55:14 2002 Delivered-To: freebsd-arch@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id BCFFD37B402 for ; Wed, 27 Feb 2002 11:55:10 -0800 (PST) Received: (from dillon@localhost) by apollo.backplane.com (8.11.6/8.9.1) id g1RJtAj30178; Wed, 27 Feb 2002 11:55:10 -0800 (PST) (envelope-from dillon) Date: Wed, 27 Feb 2002 11:55:10 -0800 (PST) From: Matthew Dillon Message-Id: <200202271955.g1RJtAj30178@apollo.backplane.com> To: Alfred Perlstein Cc: Julian Elischer , Jeff Roberson , arch@FreeBSD.ORG Subject: Re: Slab allocator References: <200202271926.g1RJQCm29905@apollo.backplane.com> <20020227194256.GR80761@elvis.mu.org> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG : :* Julian Elischer [020227 11:40] wrote: :> :> :> On Wed, 27 Feb 2002, Matthew Dillon wrote: :> :> > :> > :PS Sorry for the long winded email. :-) :> > :> > Well, one thing I've noticed right off the bat is that the code :> > is trying to take advantage of per-cpu queues but is still :> > having to obtain a per-cpu mutex to lock the per-cpu queue. :> :> I was wondering abuot that myself :-) : :It's basically the pre-emption stuff you guys are wondering about :along with the possiblity of free'ing back to another cpu's :cache that may be an issue. : :Jeff, are you fee'ing memory back to the cache it was initially :allocated from or not? : :-Alfred I don't know what Jeff is doing there but I do seem to recall a paper from somewhere that indicated it was more efficient to free memory to the current cpu's per-cpu cache rather then back to the original cpu's cache because the current cpu's hardware L1/L2 cache likely already has mastership of the memory. I think Linux does things this way. -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message