Skip site navigation (1)Skip section navigation (2)
Date:               Fri, 11 Aug 1995 13:04:24 -0800
From:      "Jim Howard" <jiho@sierra.net>
To:        jdli@csie.nctu.edu.tw (Chien-Ta Lee), freebsd-questions@freefall.FreeBSD.org
Subject:         Re: gnumalloc
Message-ID:  <199508112133.AA07370@diamond.sierra.net>

next in thread | raw e-mail | index | archive | help
> 	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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199508112133.AA07370>