>> Sorry FreeBSD doesn't support resource reservation for memory.
>mlock()? BTW, why can't anyone explain why the old behavior WAS THAT
>the process would get NULL? Now it's this...

Implementation quirks (bugs) and races.

brk(2) used to fail when memory (real+swap) is running short, instead
of waiting for the pagers to free some memory (it may be possible to
free almost as much memory as there is real memory, e.g., by forgetting
that pages backed by vnodes are in core).  This tended to cause innocent
processes to exit when malloc() failed.  However, in simple tests where
only one memory hog process is calling malloc(), it only affects the
guilty process.


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

Reply via email to