mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Rientjes <rientjes@google.com>
To: Geoffrey Thomas <geofft@mit.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] sysrq: Don't panic_on_oom if the user requested an OOM kill.
Date: Mon, 18 May 2009 13:52:26 -0700 (PDT)	[thread overview]
Message-ID: <alpine.DEB.2.00.0905181350400.2281@chino.kir.corp.google.com> (raw)
In-Reply-To: <1242643274-26733-1-git-send-email-geofft@mit.edu>

On Mon, 18 May 2009, Geoffrey Thomas wrote:

> If I specifically request an OOM kill via magic sysrq, I don't want
> panic_on_oom to apply and crash the machine. I ran into this on a server
> with panic_on_oom and automatic reboot after panic configured on the
> assumption that nobody is likely physically present. If I'm able to use
> magic sysrq, though, I can use that to reboot the machine slightly more
> safely, if that's what I wanted.
> 
> This patch adds an extra parameter to out_of_memory to ignore the value
> of sysctl_panic_on_oom, and just proceed with the OOM kill.
> 
> Signed-off-by: Geoffrey Thomas <geofft@mit.edu>

Nack, it's your own fault for asking for panic_on_oom and then not wanting 
it to panic on oom.

Disable /proc/sys/vm/panic_on_oom before invoking the oom killer and then 
reenable it afterwards.

  reply	other threads:[~2009-05-18 20:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-18 10:41 Geoffrey Thomas
2009-05-18 20:52 ` David Rientjes [this message]
     [not found] <cD8Tq-1IB-7@gated-at.bofh.it>
     [not found] ` <cDi6w-7CM-27@gated-at.bofh.it>
2009-05-18 22:35   ` Bodo Eggert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.00.0905181350400.2281@chino.kir.corp.google.com \
    --to=rientjes@google.com \
    --cc=geofft@mit.edu \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®