From owner-cvs-all Fri Mar 14 10:34:28 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 740B037B401; Fri, 14 Mar 2003 10:34:26 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3768E43F85; Fri, 14 Mar 2003 10:34:25 -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 h2EIYJh8008723; Fri, 14 Mar 2003 19:34:19 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Wilko Bulte Cc: "Daniel C. Sobral" , 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 19:03:35 +0100." <20030314190335.A8491@freebie.xs4all.nl> Date: Fri, 14 Mar 2003 19:34:19 +0100 Message-ID: <8722.1047666859@critter.freebsd.dk> 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 In message <20030314190335.A8491@freebie.xs4all.nl>, Wilko Bulte writes: >> >> * 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. > >Implement SIGWORRY? ... signal(SIGWORRY, what_me); ... Yeah, I can see the potential :-) -- 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-all" in the body of the message