*BSD News Article 87330


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!vixen.cso.uiuc.edu!uwm.edu!news-peer.gsl.net!news.gsl.net!EU.net!Ireland.EU.net!maths.tcd.ie!not-for-mail
From: dwmalone@maths.tcd.ie (David Malone)
Newsgroups: comp.unix.bsd.freebsd.misc,comp.lang.c,comp.sys.sun.apps
Subject: Re: Alternative malloc ?
Date: 23 Jan 1997 12:15:38 -0000
Organization: Dept. of Maths, Trinity College, Dublin, Ireland.
Lines: 11
Message-ID: <5c7kpa$ldo@graves.maths.tcd.ie>
References: <5bjh02$j64@chronicle.concentric.net> <5bo0vq$8hd@halon.vggas.com>
NNTP-Posting-Host: graves.maths.tcd.ie
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:34425 comp.lang.c:186738 comp.sys.sun.apps:14768

>>        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.

>Try the malloc() from recent versions of GNU glibc...

There is also a limit on the data size built into the Kernel. Have a
look in the FAQ to find out how to increase it.

	David.