From: Mahmood Naderan <nt_mahmood@yahoo.com>
To: David Rientjes <rientjes@google.com>
Cc: Randy Dunlap <rdunlap@xenotime.net>,
"\"linux-kernel@vger.kernel.org\"" <linux-kernel@vger.kernel.org>,
"linux-mm@kvack.org" <linux-mm@kvack.org>
Subject: Re: running of out memory => kernel crash
Date: Wed, 10 Aug 2011 01:14:58 -0700 (PDT) [thread overview]
Message-ID: <1312964098.7449.YahooMailNeo@web111712.mail.gq1.yahoo.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1108090900170.30199@chino.kir.corp.google.com>
>If you're using cpusets or mempolicies, you must ensure that all tasks
>attached to either of them are not set to OOM_DISABLE. It seems unlikely
>that you're using those, so it seems like a system-wide oom condition.
I didn't do that manually. What is the default behaviour? Does oom
working or not?
>If you're using cpusets or mempolicies, you must ensure that all tasks
>attached to either of them are not set to OOM_DISABLE. It seems unlikely
>that you're using those, so it seems like a system-wide oom condition.
For a user process:
root@srv:~# cat /proc/18564/oom_score
9198
root@srv:~# cat /proc/18564/oom_adj
0
And for "init" process:
root@srv:~# cat /proc/1/oom_score
17509
root@srv:~# cat /proc/1/oom_adj
0
Based on my understandings, in an out of memory condition (oom),
the init process is more eligible to be killed!!!!!!! Is that right?
Again I didn't get my answer yet:
What is the default behavior of linux in an oom condition? If the default is,
crash (kernel panic), then how can I change that in such a way to kill
the hungry process?
Thanks a lot.
// Naderan *Mahmood;
----- Original Message -----
From: David Rientjes <rientjes@google.com>
To: Mahmood Naderan <nt_mahmood@yahoo.com>
Cc: Randy Dunlap <rdunlap@xenotime.net>; "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>; linux-mm@kvack.org
Sent: Tuesday, August 9, 2011 8:33 PM
Subject: Re: running of out memory => kernel crash
On Tue, 9 Aug 2011, Mahmood Naderan wrote:
> >Do you have any kernel log panic/oops/Bug messages?
>
> Actually, that happened for one my diskless nodes 10 days ago.
> What I saw on the screen (not the logs), was
> "running out of memory.... kernel panic....."
>
The only similar message in the kernel is "Out of memory and no killable
processes..." and that panics the machine when there are no eligible
tasks to kill.
If you're using cpusets or mempolicies, you must ensure that all tasks
attached to either of them are not set to OOM_DISABLE. It seems unlikely
that you're using those, so it seems like a system-wide oom condition. Do
cat /proc/*/oom_score and make sure at least some threads have a non-zero
badness score. Otherwise, you'll need to adjust their
/proc/pid/oom_score_adj settings to not be -1000.
Randy also added linux-mm@kvack.org to the cc, but you removed it; please
don't do that.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2011-08-10 8:15 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1312872786.70934.YahooMailNeo@web111712.mail.gq1.yahoo.com>
2011-08-09 7:06 ` Randy Dunlap
[not found] ` <1312874259.89770.YahooMailNeo@web111704.mail.gq1.yahoo.com>
2011-08-09 16:03 ` David Rientjes
2011-08-10 8:14 ` Mahmood Naderan [this message]
2011-08-11 4:09 ` David Rientjes
2011-08-11 7:07 ` Mahmood Naderan
2011-08-11 7:13 ` David Rientjes
2011-08-11 8:02 ` Mahmood Naderan
2011-08-11 12:47 ` Denys Vlasenko
2011-08-11 15:13 ` Mahmood Naderan
2011-08-11 17:38 ` Denys Vlasenko
2011-08-17 8:50 ` Mahmood Naderan
2011-08-18 2:18 ` Pavel Ivanov
2011-08-18 12:44 ` Denys Vlasenko
2011-08-18 14:26 ` Pavel Ivanov
2011-08-18 22:25 ` Denys Vlasenko
2011-08-19 19:21 ` David Rientjes
2011-08-19 19:29 ` Bryan Donlan
2011-08-19 21:19 ` Chris Friesen
2011-08-19 21:38 ` Alan Cox
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=1312964098.7449.YahooMailNeo@web111712.mail.gq1.yahoo.com \
--to=nt_mahmood@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=rdunlap@xenotime.net \
--cc=rientjes@google.com \
/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