public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Xavier Roche <roche+kml2@exalead.com>
To: linux-kernel@vger.kernel.org
Subject: Re: Kernels Out Of Memoy(OOM) killer Problem ?
Date: Tue, 09 Aug 2005 10:06:04 +0200	[thread overview]
Message-ID: <42F863EC.3040908@exalead.com> (raw)
In-Reply-To: <W727852995526691123573922@burntmail>

vinay wrote:
> I have a problem with linux kernel's Out Of Memory (OOM) killer.
> I wanted to know, is there any way that we can force OOM killer to send a signal other than SIGKILL to kill a process when ever OOM detects a system memory crunch. 

As far as I understand the kernel, oom is called when the system has no
memory pages left, and MUST get one to continue normal (ie. kernel)
processing. The kernel just do not have the time to execute some
user-space code, it MUST get free pages where they are (and hence, kill
immediately some innocent process).

This condition should not occur without using overcommit. Are you sure
you are not using overcommit ? (cat /proc/sys/vm/overcommit_memory)

To dasable it:
echo 0 > /proc/sys/vm/overcommit_memory

Overcommit is quite dangerous on production systems, because it leads to
oom kills on heavy loads (at least, this is what I experienced).


  reply	other threads:[~2005-08-09  8:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-09  7:52 Kernels Out Of Memoy(OOM) killer Problem ? vinay
2005-08-09  8:06 ` Xavier Roche [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-08-09  9:23 vinay

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=42F863EC.3040908@exalead.com \
    --to=roche+kml2@exalead.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