From owner-cvs-src Fri Mar 14 9:16:11 2003 Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2419537B404; Fri, 14 Mar 2003 09:16:08 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id B324843F75; Fri, 14 Mar 2003 09:16:06 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.8/8.12.8) with ESMTP id h2EHG1h8008024; Fri, 14 Mar 2003 18:16:01 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: "Daniel C. Sobral" Cc: Garance A Drosihn , 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 ... SIGDANGER From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 14 Mar 2003 14:11:32 -0300." <3E720D44.6010300@tcoip.com.br> Date: Fri, 14 Mar 2003 18:16:01 +0100 Message-ID: <8023.1047662161@critter.freebsd.dk> Sender: owner-cvs-src@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 ? >> >> Many programs (directly or implicitly through the use of malloc(3)) >> can adapt their behaviour, but lack the means to when to do that. > >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. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-src" in the body of the message