mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Rientjes <rientjes@google.com>
To: Chris Fowler <cfowler@opsdc.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Panic on OOM
Date: Tue, 14 Jun 2011 19:32:18 -0700 (PDT)	[thread overview]
Message-ID: <alpine.DEB.2.00.1106141908100.7025@chino.kir.corp.google.com> (raw)
In-Reply-To: <1308103443.2074.357.camel@compaq-desktop>

On Tue, 14 Jun 2011, Chris Fowler wrote:

> > Using /proc/sys/vm/panic_on_oom also won't panic the machine if you
> > happen to use a cpuset or mempolicy.  You'll want to write '2' instead
> > if you want to panic in all possible oom conditions.
> > 
> > 
> 
> 2 did it.  Thank you.
> 
> perl -e 'my @mem = (); while(1) { push @mem, "XXXXXXXXXXXXXXXX"; }'
> 
> I lost connection and it came back after about 30s.  Reboot worked.
> 

That wasn't meant as a fix for the problem but rather just a suggestion 
based on how you're using the device.

It's just a coincidence that it worked that time, because 
/proc/sys/vm/panic_on_oom == 2 is the exact same as 
/proc/sys/vm/panic_on_oom == 1 with the .config you posted (since you 
don't have CONFIG_NUMA, constrained_alloc() always returns CONSTRAINT_NONE 
in the oom killer).

More supporting evidence is that in the initial report that you said you 
had seen the panic and "Rebooting in 10 seconds..." message, yet no 
reboot.  That indicates the oom killer is working fine in both conditions.

So it's definitely the reboot code that is causing an issue that either 
hangs or takes excessively long, and that only happens sporadically for 
your machine.  The only differences between this code between v2.6.33 and 
v2.6.38 is how reboots are handled for Dell Precision T7400, VersaLogic 
Menlow based, and Apple iMac9,1.

  reply	other threads:[~2011-06-15  2:32 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-14 13:31 Chris Fowler
2011-06-15  0:13 ` David Rientjes
2011-06-15  2:04   ` Chris Fowler
2011-06-15  2:32     ` David Rientjes [this message]
2011-06-15  2:41       ` Chris Fowler
2011-06-15  2:51         ` David Rientjes
2011-06-15  2:53           ` Chris Fowler
2011-06-15 13:50           ` Chris Fowler
2011-06-15 20:07             ` David Rientjes
2011-06-15 20:11               ` Chris Fowler
2011-06-15  2:48       ` Chris Fowler
2011-06-15  0:41 ` KAMEZAWA Hiroyuki
2011-06-15  1:44   ` Chris Fowler
2011-06-15  2:05     ` David Rientjes
2011-06-15  0:54 ` KOSAKI Motohiro

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.1106141908100.7025@chino.kir.corp.google.com \
    --to=rientjes@google.com \
    --cc=cfowler@opsdc.com \
    --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®