From: Hillf Danton <dhillf@gmail.com>
To: David Rientjes <rientjes@google.com>
Cc: linux-mm@kvack.org, LKML <linux-kernel@vger.kernel.org>,
Ingo Molnar <mingo@elte.hu>,
Andrew Morton <akpm@linux-foundation.org>,
Yong Zhang <yong.zhang0@gmail.com>
Subject: Re: [Question] how to detect mm leaker and kill?
Date: Sun, 8 May 2011 16:21:20 +0800 [thread overview]
Message-ID: <BANLkTi=WORnf0PrQZQ79ZpqFv2NaC-dPUg@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1105061547150.2451@chino.kir.corp.google.com>
On Sat, May 7, 2011 at 6:48 AM, David Rientjes <rientjes@google.com> wrote:
> On Fri, 6 May 2011, Hillf Danton wrote:
>
>> Hi
>>
>> In the scenario that 2GB physical RAM is available, and there is a
>> database application that eats 1.4GB RAM without leakage already
>> running, another leaker who leaks 4KB an hour is also running, could
>> the leaker be detected and killed in mm/oom_kill.c with default
>> configure when oom happens?
>>
>
> Yes, if you know the database application is going to use 70% of your
> system RAM and you wish to discount that from its memory use when being
> considered for oom kill, set its /proc/pid/oom_score_adj to -700.
>
> This is only possible on 2.6.36 and later kernels when oom_score_adj was
> introduced.
>
> If you'd like to completely disable oom killing, set
> /proc/pid/oom_score_adj to -1000.
>
Thank you very much, David, for cool answer to my question.
Hillf
--
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>
prev parent reply other threads:[~2011-05-08 8:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-06 15:04 Hillf Danton
2011-05-06 22:48 ` David Rientjes
2011-05-08 8:21 ` Hillf Danton [this message]
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='BANLkTi=WORnf0PrQZQ79ZpqFv2NaC-dPUg@mail.gmail.com' \
--to=dhillf@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mingo@elte.hu \
--cc=rientjes@google.com \
--cc=yong.zhang0@gmail.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