From owner-cvs-all Fri Mar 14 12: 5:22 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 5AD2837B401; Fri, 14 Mar 2003 12:05:20 -0800 (PST) Received: from smtp4.server.rpi.edu (smtp4.server.rpi.edu [128.113.2.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B05143FA3; Fri, 14 Mar 2003 12:05:19 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp4.server.rpi.edu (8.12.8/8.12.7) with ESMTP id h2EK5HuF014086; Fri, 14 Mar 2003 15:05:17 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <8023.1047662161@critter.freebsd.dk> References: <8023.1047662161@critter.freebsd.dk> Date: Fri, 14 Mar 2003 15:05:16 -0500 To: "Poul-Henning Kamp" , "Daniel C. Sobral" From: Garance A Drosihn Subject: Re: cvs commit: src/sys/vm ... SIGDANGER Cc: Juli Mallett , Eivind Eklund , Mike Silbersack , David Schultz , src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.28 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 At 6:16 PM +0100 3/14/03, Poul-Henning Kamp wrote: >In message <3E720D44.6010300@tcoip.com.br>, "Daniel C. Sobral" writes: >>Poul-Henning Kamp wrote: >>> > >> * Fourth: A cheap syscall or sysctl which can be used to get > >> a real-time qualified answer to the simple question: Is the > >> system short of RAM ? > > > > That's a suggested use for SIGDANGER, actually. Still bad for > > the programs that get killed. :-) > >No, SIGDANGER is too heavy-handed, it only comes in when we run >out of RAM _and_ swap-space. > >I'm looking for something which tells me when we start to _use_ >swap. The web page I gave in my other message also talks about a 'psdanger' routine, which sounds like it might be what you're talking about. [of course, as a userland-type-of-programmer, I'm hoping some kernel-type will get excited about the idea and implement the same set of ideas for FreeBSD. :-)] -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message