*BSD News Article 86582


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.mel.aone.net.au!grumpy.fl.net.au!news.webspan.net!newsfeeds.sol.net!uwm.edu!math.ohio-state.edu!jussieu.fr!oleane!in2p3.fr!swidir.switch.ch!mc5.mcnet.ch!usenet
From: Benoit.Rossier@mcnet.ch (Benoit Rossier)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Alternative malloc ?
Date: 16 Jan 1997 10:14:02 GMT
Organization: MCNET InterNetNews site
Lines: 28
Message-ID: <5bkv1a$r8e@mc5.mcnet.ch>
References: <5bjh02$j64@chronicle.concentric.net>
NNTP-Posting-Host: pcwin95.mcnet.ch
Mime-Version: 1.0
Content-Type: Text/Plain; charset=ISO-8859-1
X-Newsreader: WinVN 0.99.5
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:33887

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 ?
>
>        Thanks.
>
>               Cheers,
>               Dan Ts'o
>               dantso@cris.com


See at address http://www.cs.colorado.edu/~zorn/Malloc.html
This is a list of malloc implementations.

Try with gnumalloc which is in FreeBSD. It seems to be better than the standard
malloc.

Benoit

brossier@mcnet.ch