From owner-freebsd-arch Mon Mar 24 11: 2:55 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3949037B4A4 for ; Mon, 24 Mar 2003 11:02:52 -0800 (PST) Received: from uitm.zenon.net (uitm.zenon.net [195.2.69.86]) by mx1.FreeBSD.org (Postfix) with ESMTP id 809E843FDF for ; Mon, 24 Mar 2003 11:02:45 -0800 (PST) (envelope-from uitm@zenon.net) From: Andrey Alekseyev Message-Id: <200303241902.h2OJ2a252708@uitm.zenon.net> Subject: Re: Patch to protect process from pageout killing In-Reply-To: <200303240823.48262.wes@softweyr.com> from Wes Peters at "Mar 24, 2003 08:23:48 am" To: Wes Peters Date: Mon, 24 Mar 2003 22:02:36 +0300 (MSK) Cc: freebsd-arch@freebsd.org X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-3.3 required=5.0 tests=IN_REP_TO autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > As promised, here's the patch to protect a process from being killed when > pageout is in memory shortage. This allows a process to specify that it Just in case, anyone gets interested, here is another one I made about two years ago for our own needs (mass web-hosting, etc.) http://www.blackflag.ru/patches/vm_pageout.c.diff :) Allows to specify "safe" process(es) names in a sysctl variable. Doesn't touch root processes (that's what I needed as well) and sends SIGKILL if process is not willing to terminate. I recall Matt Dillon had some very useful comments about the possibility of further development of such features. Like some preferences of what processes to kill first (some other criteria in addition to the process size). -- Andrey Alekseyev. Zenon N.S.P. Senior Unix systems administrator To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message