From owner-freebsd-questions@FreeBSD.ORG Sat Oct 29 23:00:39 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 453B516A41F for ; Sat, 29 Oct 2005 23:00:39 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0C9143D46 for ; Sat, 29 Oct 2005 23:00:38 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by zproxy.gmail.com with SMTP id x3so645367nzd for ; Sat, 29 Oct 2005 16:00:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NA5fQ0IAvtD+fNTQqV7L6KrkrrfoBD3odaAXPGL+6Ftfr7IOdLApW22BdPHwObIV2Ly9LdtL7FHIH5/QLMI+g+eSrxgy2CpI+N3ztqumvK/FfRT84BVMucrG7eQqamL4tdkrlF6u9dYM85b416rLiB+RdbLgMJ4Ec94Iu3rDtr8= Received: by 10.36.74.8 with SMTP id w8mr378594nza; Sat, 29 Oct 2005 16:00:38 -0700 (PDT) Received: by 10.37.20.34 with HTTP; Sat, 29 Oct 2005 16:00:37 -0700 (PDT) Message-ID: Date: Sun, 30 Oct 2005 03:00:37 +0400 From: "Andrew P." To: Doug Lee , freebsd-questions@freebsd.org In-Reply-To: <20051029203404.GA9983@kirk.dlee.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20051029203404.GA9983@kirk.dlee.org> Cc: Subject: Re: Can a process be made immune to out-of-swap-space kills? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Oct 2005 23:00:39 -0000 On 10/30/05, Doug Lee wrote: > Sometimes, I accidentally run something that eats up too much memory > and causes the pager to run out of swap space and start shooting down > processes to rectify the situation. Sometimes, the process chosen for > demolition happens to be `screen.' Since this process sorta manages a > whole lot of others and, on being zapped out of existence, leaves many > of them running but inaccessible, I find this choice decidedly > inconvenient. > > Is there a way for me to force FreeBSD to leave `screen' (or any other > process) alone when selecting something to kill to free memory? > > Please Cc me any answers. > > Thanks much. > > > -- > Doug Lee dgl@dlee.org http://www.dlee.org > SSB + BART Group doug@bartsite.com http://www.bartsite.com > "Is your cucumber bitter? Throw it away. Are there briars in your > path? Turn aside. That is enough. Do not go on to say, `Why were > things of this sort ever brought into the world?'" > --Marcus Aurelius > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > I don't know how to do that, but by all means you shouldn't allow that to happen. It's not windoze, where everything is meant to be swapped. Read limits(1) manpage to know how to prevent a user from messing with other processes in such an unfriendly way. Last time I ran into a problem alike was upgrading from fedora core 3 to FC4. Yum requested about 4000GB (4 Terabytes) of RAM. The machine became inaccessible (as in "showing no signs of life whatsoever") for 5 hours, but in the end something coredumped and I could login :-)