From owner-cvs-all Thu Mar 20 0:58:30 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59F2A37B401; Thu, 20 Mar 2003 00:58:28 -0800 (PST) Received: from vinyl.catpipe.net (vinyl.catpipe.net [195.249.214.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 652C643FAF; Thu, 20 Mar 2003 00:58:27 -0800 (PST) (envelope-from regnauld@vinyl.catpipe.net) Received: by vinyl.catpipe.net (Postfix, from userid 1006) id BFCD32E13; Thu, 20 Mar 2003 09:57:07 +0100 (CET) Date: Thu, 20 Mar 2003 09:57:07 +0100 From: Phil Regnauld To: Anton Berezin Cc: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= , Wes Peters , Juli Mallett , Eivind Eklund , Mike Silbersack , David Schultz , src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/vm vm_map.c vm_map.h vm_pageout.c Message-ID: <20030320085707.GD47243@catpipe.net> References: <200303122313.h2CNDHMU046431@repoman.freebsd.org> <20030314012954.A42430@FreeBSD.org> <20030314101857.A98861@FreeBSD.org> <200303171156.40901.wes@softweyr.com> <20030319143619.GA47243@catpipe.net> <20030320081820.GA81566@heechee.tobez.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030320081820.GA81566@heechee.tobez.org> User-Agent: Mutt/1.3.27i X-message-flag: Outlook: spreading viruses since 1997! http://www.rodos.net/outlook/ X-Operating-System: FreeBSD 4.8-RC i386 Organization: catpipe Systems ApS Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Anton Berezin (tobez) writes: > > > > man setrlimit > > setrlimit is a contract signed by a process, while what Phil suggests is > a contract signed by a process _and_ the kernel. Actually, I was thinking about the possibility to extend setrlimit semantics to support this. i.e. an extra parameter which would indicate that we want to be notified (via the return value) that our contract request could not be fulfilled. Using this extra parameter would modify's the kernel's behaviour in that the kernel will "agree" to preserver this process as much as possible in case of resource starvation (that's the main difference with setrlimit). Phil -- _ _ |_ | regnauld@catpipe.net catpipe Systems ApS | (_(_||_ | *BSD solutions, consulting, development | | Tlf.: +45 7021 0050 http://www.catpipe.net/ | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message