malloc does not return null when out of memory

Brooks Davis brooks at one-eyed-alien.net
Wed Jul 23 15:44:47 PDT 2003


On Thu, Jul 24, 2003 at 12:36:54AM +0200, Matthias Buelow wrote:
> Barney Wolff writes:
> 
> >One might argue that this is a config error, and ulimit should be used
> >to cut the address space to below actually available memory.
> 
> Wasn't there a sysctl flag to enable/disable overcommitting?
> I think I remember something but I can't find it; it might
> not have been on FreeBSD.

No there isn't.  Overcommit is a fundamental design feature of the BSD
VM.  If you don't like it, find an OS that doesn't do it.  The only one
I can think of off the top of my head in Irix where I've found it to be
a serious pain in the ass.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20030723/b8a3836e/attachment.bin


More information about the freebsd-stable mailing list