mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: "Martin MOKREJŠ" <mmokrejs@ribosome.natur.cuni.cz>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.23.8: OOM killer kills wrong jobs
Date: Fri, 7 Dec 2007 14:44:13 +0000	[thread overview]
Message-ID: <20071207144413.02607168@the-village.bc.nu> (raw)
In-Reply-To: <47591183.8050402@ribosome.natur.cuni.cz>

On Fri, 07 Dec 2007 10:25:23 +0100
Martin MOKREJŠ <mmokrejs@ribosome.natur.cuni.cz> wrote:

> Hi,
>   first of all, sorry for not being up to date with how the OOM killer
> works. I think there used to be a kernel config option to disable
> OOM killer and instead kill the process which actually asks for the
> memory and supposedly caused the memory lack. That is what I would
> like to have on my system. I a have a 1GB RAM laptop and use t-coffee
> software from http://www.tcoffee.org/Projects_home_page/t_coffee_home_page.html
> to do some science. ;)

The OOM killer triggers where there is no way to fulfill a page request.
Something has to go and there is no real notion of "right" or "wrong"
process at that point.

You can either set no overcommit in which case you'll get failed malloc
and similar rather than allow overcommit, or you can set the OOM priority
of tasks yourself so that your specific app of choice always dies first.

Alan

  reply	other threads:[~2007-12-07 14:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-07  9:25 Martin MOKREJŠ
2007-12-07 14:44 ` Alan Cox [this message]
2007-12-07 14:44 Dan Kegel
     [not found] <9xMQB-5XC-25@gated-at.bofh.it>
     [not found] ` <9xHQH-6oR-5@gated-at.bofh.it>
2007-12-17  5:20   ` Steven Winikoff
2007-12-17 13:30     ` Alan Cox
2007-12-17 15:44       ` taow
2007-12-17 15:51         ` Sylvain Robitaille
2007-12-17 15:59         ` 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=20071207144413.02607168@the-village.bc.nu \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mmokrejs@ribosome.natur.cuni.cz \
    /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®