Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jan 2008 11:06:03 +0000 (GMT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
Cc:        freebsd-current@freebsd.org, Jason Evans <jasone@freebsd.org>, Poul-Henning Kamp <phk@FreeBSD.org>
Subject:   Re: sbrk(2) broken
Message-ID:  <20080104110511.S77222@fledge.watson.org>
In-Reply-To: <86wsqqaqbe.fsf@ds4.des.no>
References:  <477C82F0.5060809@freebsd.org> <863ateemw2.fsf@ds4.des.no> <20080104002002.L30578@fledge.watson.org> <86wsqqaqbe.fsf@ds4.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--621616949-938840691-1199444763=:77222
Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE

On Fri, 4 Jan 2008, Dag-Erling Sm=F8rgrav wrote:

> Robert Watson <rwatson@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,=20
> otherwise a malloc() bomb will still cause other processes to fail random=
ly.

That was what I had in mind, the above should read RLIMIT_SWAP.

Robert N M Watson
Computer Laboratory
University of Cambridge
--621616949-938840691-1199444763=:77222--



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