From owner-freebsd-arch Tue Feb 18 21: 5:19 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 98BDB37B401 for ; Tue, 18 Feb 2003 21:05:18 -0800 (PST) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2759643F3F for ; Tue, 18 Feb 2003 21:05:18 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.6/8.12.6) with ESMTP id h1J55G8h001041; Tue, 18 Feb 2003 21:05:16 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.6/8.12.6/Submit) id h1J55GXt001040; Tue, 18 Feb 2003 21:05:16 -0800 (PST) Date: Tue, 18 Feb 2003 21:05:16 -0800 (PST) From: Matthew Dillon Message-Id: <200302190505.h1J55GXt001040@apollo.backplane.com> To: David Schultz Cc: Bosko Milekic , Andrew Gallatin , freebsd-arch@FreeBSD.ORG Subject: Re: mb_alloc cache balancer / garbage collector References: <20030216213552.A63109@unixdaemons.com> <15952.62746.260872.18687@grasshopper.cs.duke.edu> <20030217095842.D64558@unixdaemons.com> <200302171742.h1HHgSOq097182@apollo.backplane.com> <20030218055438.GA10838@HAL9000.homeunix.com> 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 :To give you an idea of how big Solaris' per-CPU caches are, the :ranges are described in the following table from :_Solaris_Internals_. As I mentioned, they are occasionally :adjusted within these ranges. Keep in mind that this is for a :generic memory allocator, though, and not an mbuf allocator. : :Object Size Range Min PCPU Cache Size Max PCPU Cache Size :0-63 15 143 :64-127 7 95 :128-255 3 47 :256-511 1 31 :512-1023 1 15 :1024-2047 1 7 :2048-16383 1 3 :16384- 1 1 Interesting. They are using fairly low object counts, which is what I would expect since the only real goal is to minimize global contention. It doesn't take much to reap the benefit. -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message