From owner-freebsd-hackers Wed Dec 8 14:17:51 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 21C8E1521B for ; Wed, 8 Dec 1999 14:17:38 -0800 (PST) (envelope-from bright@wintelcom.net) Received: from localhost (bright@localhost) by fw.wintelcom.net (8.9.3/8.9.3) with ESMTP id OAA20217; Wed, 8 Dec 1999 14:46:58 -0800 (PST) Date: Wed, 8 Dec 1999 14:46:58 -0800 (PST) From: Alfred Perlstein To: Kip Macy Cc: Scott Hess , Rayson Ho , freebsd-hackers@FreeBSD.ORG Subject: Re: Faster Malloc In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 8 Dec 1999, Kip Macy wrote: > > From: Rayson Ho > > > > > > http://www.cs.utexas.edu/users/emery/hoard/ > > > > > > Only Linux,Solaris,IRIX,NT, and BeOS supported at this > > > stage. Anyone wants to port it to FreeBSD? > > > > > > Sorry if everyone knows this already... > > > > On Wed, 8 Dec 1999, Scott Hess wrote: > > > From the web page: > > > > "Hoard is a fast, scalable and memory-efficient allocator for > > multiprocessors. Hoard solves the heap contention problem caused when > > multiple threads call dynamic memory allocation functions like malloc() and > > free() (or new and delete). Hoard can dramatically improve the performance > > of multithreaded programs running on multiprocessors." > > > > It doesn't sound like it would help much under the current FreeBSD pthread > > implementation, because userland threads shouldn't suffer from > > multiprocessor contention. > > It might be nice when LWP support is added. > > -Kip Userland threads can contend against themselves, right now the kernel doesn't but it would be a good thing to implement for later use. We also support shared address space fork, so this may be a good idea for programs that utilize that. This allocator is pretty much what the Dynix allocator is, it wouldn't be difficult to clean-room implement this with a BSD license. They should have given credit to Dynix or at least Uresh Vahalia (discussed on page 390 of his book Unix Internals section 12.9). -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message