Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.syd.connect.com.au!phaedrus.kralizec.net.au!news.mel.aone.net.au!grumpy.fl.net.au!news.webspan.net!newsfeeds.sol.net!uwm.edu!math.ohio-state.edu!jussieu.fr!oleane!plug.news.pipex.net!pipex!hole.news.pipex.net!pipex!bowl.news.pipex.net!pipex!halon.vggas.com!news From: JYoungman@vggas.com (James Youngman) Newsgroups: comp.unix.bsd.freebsd.misc,comp.lang.c,comp.sys.sun.apps Subject: Re: Alternative malloc ? Date: 17 Jan 1997 14:05:46 GMT Organization: VG Gas Analysis Systems Lines: 18 Message-ID: <5bo0vq$8hd@halon.vggas.com> References: <5bjh02$j64@chronicle.concentric.net> NNTP-Posting-Host: uriel.vggas.com Mime-Version: 1.0 Content-Type: Text/Plain; charset=US-ASCII X-Newsreader: WinVN 0.99.8 (x86 32bit) Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:34345 comp.lang.c:186478 comp.sys.sun.apps:14759 In article <5bjh02$j64@chronicle.concentric.net>, dantso@cris.com says... > > I am running a big program on FreeBSD 2.1. It is 66Mb and wants to >grow a bit and malloc is failing. I presume that it is because, as I recall, >the behavior of the BSD default malloc is to allocate in powers of two and the >next step would be 130Mb, which is bigger than free swap at the moment. > > Can someone recommend an alternative malloc() that is fast (the >program does a lot of malloc() calls, it is an interactive interpreted >language), and yet does not have this power of two behavior ? Try the malloc() from recent versions of GNU glibc... -- James Youngman VG Gas Analysis Systems |The trouble with the rat-race Before sending advertising material, read |is, even if you win, you're http://www.law.cornell.edu/uscode/47/227.html|still a rat.