From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,4d22f69d43e551b6 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-03-08 23:33:08 PST Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!reed!nelson From: nelson@reed.edu (Nelson Minar) Newsgroups: comp.sys.dec Subject: Re: lmalloc advantages Message-ID: <1992Mar9.030917.2492@reed.edu> Date: 9 Mar 92 03:09:17 GMT Article-I.D.: reed.1992Mar9.030917.2492 References: <1616@pvi.UUCP> Organization: Reed College, Portland, OR 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