From owner-freebsd-questions Sat Nov 11 15:10:37 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 7942137B479; Sat, 11 Nov 2000 15:10:35 -0800 (PST) Received: (from dan@localhost) by dan.emsphone.com (8.11.1/8.11.1) id eABNAX523055; Sat, 11 Nov 2000 17:10:33 -0600 (CST) (envelope-from dan) Date: Sat, 11 Nov 2000 17:10:33 -0600 From: Dan Nelson To: Mitch Collinsworth Cc: Doug Barton , freebsd-questions@FreeBSD.ORG, Mitch Collinsworth Subject: Re: Linux malloc better on FreeBSD than FreeBSD malloc? Message-ID: <20001111171033.A21628@dan.emsphone.com> References: <3A0DC4EC.509A982C@FreeBSD.org> <20001111164754.A9356@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: <20001111164754.A9356@dan.emsphone.com>; from "Dan Nelson" on Sat Nov 11 16:47:54 GMT 2000 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Nov 11), Dan Nelson said: > In the last episode (Nov 11), Mitch Collinsworth said: > > Well I did include the version, but you clipped it from the text > > you included in your message: > > > > > The system the tests are being run on is a 900 MHz Xeon running > > > FreeBSD 4.1-R with 1 GB RAM and 18 GB swap: > > > > I have not yet done any special kernel tuning but I'll try some of > > the options suggested. None of this explains however, why the > > Linux binary running on FreeBSD was able to do what the FreeBSD > > binary could not. That was my first question. > > The "datasize" limits only apply to memory allocated via sbrk(). If > Linux's glibc allocator mmaps /dev/zero for new pages, I don't think > resource limits apply. You might want to try installing the "libdlmalloc" port, linking with that, and re-running your FreeBSD test; dlmalloc implements mmap()-based allocation for large requests. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message