From owner-svn-src-head@FreeBSD.ORG Sat Jan 24 19:34:12 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C436DD33; Sat, 24 Jan 2015 19:34:12 +0000 (UTC) Received: from mail-pa0-x22f.google.com (mail-pa0-x22f.google.com [IPv6:2607:f8b0:400e:c03::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8FE6A7B8; Sat, 24 Jan 2015 19:34:12 +0000 (UTC) Received: by mail-pa0-f47.google.com with SMTP id lj1so3770313pab.6; Sat, 24 Jan 2015 11:34:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=6QqjdjotDJ0ig3AlBdasUbYmTCveORG6OJjAq2pcpPM=; b=kNdg7yxAy73vIJvPvTD7wQPlj868bXoDf1z157V019LIOkYBwTVAuIaP7+JILWV3Nz niGML9kvZicfoTWqx5Y2ScbjiZB97XlGQhwBJx1f066/qiOeO3CaptwaPtL7jeNsjVnU GWu4NxYes27xHsGrsELwztZgVVDYzCNOgHxe6Sm/acyJyQOtstFYXHD+Oo4oB0CRQR/5 SCIryw0UD4PldvEzu+4tKuvrVHqtVmxZSAAjrY22SOI22EseL4APsbn0AqP6c3hjvPRs fmJx1N6KwmNk61rMsk3mULWRTsT76v3A1NhDx3qlIbs2s0JU4btnFESF3lxx2bgZ5d1L oMfw== X-Received: by 10.70.103.5 with SMTP id fs5mr22163297pdb.16.1422128051886; Sat, 24 Jan 2015 11:34:11 -0800 (PST) Received: from [192.168.20.11] (c-98-247-240-204.hsd1.wa.comcast.net. [98.247.240.204]) by mx.google.com with ESMTPSA id kl11sm5466056pbd.89.2015.01.24.11.34.11 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 24 Jan 2015 11:34:11 -0800 (PST) References: <201501241732.t0OHWkD3089056@svn.freebsd.org> Mime-Version: 1.0 (1.0) In-Reply-To: <201501241732.t0OHWkD3089056@svn.freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: X-Mailer: iPhone Mail (12B440) From: Garrett Cooper Subject: Re: svn commit: r277651 - head/sys/vm Date: Sat, 24 Jan 2015 11:34:10 -0800 To: Will Andrews Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jan 2015 19:34:12 -0000 > On Janc 24, 2015, at 09:32, Will Andrews wrote: >=20 > Author: will > Date: Sat Jan 24 17:32:45 2015 > New Revision: 277651 > URL: https://svnweb.freebsd.org/changeset/base/277651 >=20 > Log: > Add vm.panic_on_oom sysctl, which enables those who would rather panic th= an > kill a process, when the system runs out of memory. Defaults to off. >=20 > Usually, this is most useful when the OOM condition is due to mismanageme= nt > of memory, on a system where the applications in question don't respond w= ell > to being killed. >=20 > In theory, if the system is properly managed, it shouldn't be possible to= > hit this condition. If it does, the panic can be more desirable for some > users (since it can be a good means of finding the root cause) rather tha= n > killing the largest process and continuing on its merry way. >=20 > As kib@ mentions in the differential, there is also protect(1), which use= s > procctl(PROC_SPROTECT) to ensure that some processes are immune. However= , > a panic approach is still useful in some environments. This is primarily= > intended as a development/debugging tool. Hi Will! Could you please add a kernel option to set the default from 0 to 1, or p= rovide a tunable so the value could be set in loader.conf? Thanks!=