From owner-freebsd-questions Fri Aug 11 14:34:27 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id OAA12463 for questions-outgoing; Fri, 11 Aug 1995 14:34:27 -0700 Received: from diamond.sierra.net (diamond.sierra.net [204.94.39.235]) by freefall.FreeBSD.org (8.6.11/8.6.6) with SMTP id OAA12453 for ; Fri, 11 Aug 1995 14:34:24 -0700 Received: from martis-d225.sierra.net by diamond.sierra.net with SMTP id AA07370 (5.67b8/IDA-1.5 for ); Fri, 11 Aug 1995 14:33:48 -0700 Message-Id: <199508112133.AA07370@diamond.sierra.net> From: "Jim Howard" To: jdli@csie.nctu.edu.tw (Chien-Ta Lee), freebsd-questions@freefall.FreeBSD.org Date: Fri, 11 Aug 1995 13:04:24 -0800 Subject: Re: gnumalloc Reply-To: jiho@sierra.net Priority: normal X-Mailer: Pegasus Mail/Windows (v1.22) Sender: questions-owner@FreeBSD.org Precedence: bulk > I found that XFree86-3.1.2 for FreeBSD-2.0.5 linked with gnumalloc, > and -lgnumalloc had been added into config/FreeBSD.cf. > > And I found that the memory useage for stuffs linked with gnu- > malloc (especially X-server) use much fewer memory than before. > > I read some discussions in the hacker mailing-list, they said > that gnumalloc use memory better but is slower (b'cos use sbrk), > and there are still bsd-malloc, dl-malloc, phk-malloc. > > which one will become default malloc in the future ? I'm wondering how I go about substituting GNU malloc for BSD malloc(). I have the XFree86 3.1 link kit for FreeBSD 2.0, and the XFree86 3.0 source tree on a Walnut Creek X11R6 CD-ROM. I wasn't able to find any way to replicate what you did. I'm actually interested in rebuilding just about everything to use GNU malloc(). I'm a fanatic about this. I've already rebuilt the entire /bin and /sbin directories to use shared libraries, even init! It works fine, but from David Greenman's complaints about shared library RAM usage, I'm not sure that it really accomplishes much, since it only saves a couple of MB on the disk. The interesting point is that I've never been able to detect any performance degradation from having done that! Of course, I run a lightly loaded desktop machine, not a server running a lot of scripts.