sbrk(2) broken
Robert Watson
rwatson at FreeBSD.org
Fri Jan 4 03:06:04 PST 2008
On Fri, 4 Jan 2008, Dag-Erling Smørgrav wrote:
> Robert Watson <rwatson at FreeBSD.org> writes:
>> The right answer is presumably to introduce a new LIMIT_SWAP, which
>> limits the allocation of anonymous memory by processes, and size it to
>> something like 90% of swap space by default.
>
> Not a good solution on its own. You need a per-process limit as well,
> otherwise a malloc() bomb will still cause other processes to fail randomly.
That was what I had in mind, the above should read RLIMIT_SWAP.
Robert N M Watson
Computer Laboratory
University of Cambridge
More information about the freebsd-current
mailing list