Re: sbrk(2) broken

From: Robert Watson <rwatson_at_FreeBSD.org>
Date: Fri, 4 Jan 2008 11:06:03 +0000 (GMT)
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
Received on Fri Jan 04 2008 - 10:06:04 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:24 UTC