Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: nelson@reed.edu (Nelson Minar)
Subject: Re: lmalloc advantages
Date: 9 Mar 92 03:09:17 GMT	[thread overview]
Message-ID: <1992Mar9.030917.2492@reed.edu> (raw)
In-Reply-To: 1616@pvi.UUCP

In article <1616@pvi.UUCP> ncar!pvi!james() writes:
>First let me apoligize, I know this is probably a RTFM issue.

Only if TFM has the answer.. It is more properly a comp.unix.ultrix
issue.

>[Ultrix 4.2]
>Some folks are telling us that we should link our application with the
>-lmalloc linker directive.  They say the default version of malloc has
>a bug/limitation on the amount of memory a process can malloc.  By
>including -lmalloc they say the process can malloc more memory.

I don't know anything about -lmalloc, but the standard Ultrix malloc
can be wasteful. I am working with a simulator that tends to create
and destroy lots of data structures, a 500 byte malloc and a 3000 byte
malloc. Ultrix malloc was essentially using 8k for those two things,
while GNU malloc was just as fast and was only using 4k per structure.

GNU malloc seems to be about as fast, is free, and you get source.
The version I used came out of the emacs sources.
-- 
                __
nelson@reed.edu \/                              The piper pulled down the sky


      parent reply	other threads:[~1992-03-09  3:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-03-09  0:46 lmalloc advantages James Phillips x308
1992-03-09  2:12 ` Marcus J. OpenRanum
1992-03-09  3:09 ` Nelson Minar [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox