From owner-freebsd-current@FreeBSD.ORG Fri Jan 4 13:59:23 2008 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BBD816A41A; Fri, 4 Jan 2008 13:59:23 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay02.kiev.sovam.com (relay02.kiev.sovam.com [62.64.120.197]) by mx1.freebsd.org (Postfix) with ESMTP id B2BCE13C4DB; Fri, 4 Jan 2008 13:59:22 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from [212.82.216.226] (helo=deviant.kiev.zoral.com.ua) by relay02.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1JAn4r-0001sJ-EW; Fri, 04 Jan 2008 15:59:21 +0200 Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m04DxC5s015102; Fri, 4 Jan 2008 15:59:12 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m04DxCvY015100; Fri, 4 Jan 2008 15:59:12 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 4 Jan 2008 15:59:12 +0200 From: Kostik Belousov To: Skip Ford Message-ID: <20080104135912.GB57756@deviant.kiev.zoral.com.ua> References: <477C82F0.5060809@freebsd.org> <863ateemw2.fsf@ds4.des.no> <20080104002002.L30578@fledge.watson.org> <86wsqqaqbe.fsf@ds4.des.no> <20080104110511.S77222@fledge.watson.org> <20080104135438.GA788@menantico.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="A/AdVN8FDkvpDdxN" Content-Disposition: inline In-Reply-To: <20080104135438.GA788@menantico.com> User-Agent: Mutt/1.4.2.3i X-Scanner-Signature: 1118cf21f7425d415ed61e91afc5cb63 X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 1976 [Dec 29 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {received from trusted relay: not dialup} X-SpamTest-Method: none X-SpamTest-Method: Local Lists X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release Cc: Dag-Erling =?koi8-r?B?U23DuHJncmF2?= , freebsd-current@FreeBSD.org, Robert Watson , Jason Evans , Poul-Henning Kamp Subject: Re: sbrk(2) broken X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2008 13:59:23 -0000 --A/AdVN8FDkvpDdxN Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 04, 2008 at 08:54:38AM -0500, Skip Ford wrote: > Robert Watson wrote: > > On Fri, 4 Jan 2008, Dag-Erling Sm=F8rgrav wrote: > > >Robert Watson 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=20 > > >randomly. > >=20 > > That was what I had in mind, the above should read RLIMIT_SWAP. >=20 > Are you referring to the implementation of RLIMIT_SWAP in the > overcommit-disable patch at: >=20 > http://people.freebsd.org/~kib/overcommit/index.html >=20 > ...or some other as yet unwritten implementation? That patch doesn't > currently do 90% of swap but easily can. That's been available for almos= t 3 > years now. I tested it at one point but not lately and it never went into > production. Do you, and others, have a problem with that implementation? Oh, I thought that I was the sole user of the patch. What problems did you encountered while testing it ? What you mean by "do 90% of swap" ? --A/AdVN8FDkvpDdxN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHfjuwC3+MBN1Mb4gRAgu6AJ0WRUc3vHQ9y+Xpk70YFOQZLoX+wwCggMq7 MRGydd9Q74RMjOes7k72EdE= =YVBD -----END PGP SIGNATURE----- --A/AdVN8FDkvpDdxN--