Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Apr 1999 14:02:28 +0900
From:      "Daniel C. Sobral" <dcs@newsguy.com>
To:        alk@pobox.com
Cc:        current@freebsd.org
Subject:   Re: swap-related problems
Message-ID:  <371572E4.D9C64C93@newsguy.com>
References:  <14100.61923.427423.153188@avalon.east>

next in thread | previous in thread | raw e-mail | index | archive | help
Anthony Kimball wrote:
> 
> : > All I want is that a program gets NULL from malloc if there is no memory
> : > available. I find that to be a very fundamental thing about malloc.
> 
> : Do you have a solution? We don't.
> 
> Make an sbrk variant which will pre-allocate backing store.
> setenv MALLOC_PREALLOCATE

As soon as this application grabs all the memory, the next thing to
request more memory (not a malloc!) will cause the application to be
killed (largest application criteria). Change the criteria, and
*another* application gets killed. Any application getting killed is
a problem, you'll find very fast.

--
Daniel C. Sobral			(8-DCS)
dcs@newsguy.com
dcs@freebsd.org

	"nothing better than the ability to perform cunning linguistics"


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?371572E4.D9C64C93>