mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Zeno Davatz <zdavatz@gmail.com>
To: David Rientjes <rientjes@google.com>
Cc: linux-kernel@vger.kernel.org, Hannes Wyss <hwyss@ywesee.com>
Subject: Re: Kernel 2.6.29 runs out of memory and hangs.
Date: Mon, 27 Apr 2009 10:53:51 +0200	[thread overview]
Message-ID: <40a4ed590904270153q306e80f2v62499434c64d92a6@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.00.0904270129350.26825@chino.kir.corp.google.com>

Dear David

On Mon, Apr 27, 2009 at 10:32 AM, David Rientjes <rientjes@google.com> wrote:

> All allowable zones have minimum watermarks that define how much memory
> an oom killed task may use so that it can quickly exit.  This is the
> purpose of the TIF_MEMDIE flag in the kernel.

Thanks for the info.

> The policy is better defined in userspace to determine what memory-hogging
> task should be killed in low memory situations.  Users can already tune
> the /proc/pid/oom_adj score of any task so that the oom killer can prefer
> it over other tasks (see Documentation/filesystems/proc.txt).  For low
> memory situations, however, userspace can act in any number of ways to
> prevent reaching an oom condition.

This may be off-Topic, but: Can I assign a PID to a process at
startup? Say Apache always should have PID 2755, or Ruby should always
have PID 1003. Otherwise how would I set the score for a PID at
Kernel-Boop-Up?

> Once the oom condition has been reached, however, the oom killer must act
> to free some memory, otherwise the kernel usually livelocks.

Interesting. In our case we did not have a score for Apache in

/proc/pid/oom_adj

that must have caused the livelock because oom_kill could not kill the
biggest task (Apache) in full.

Best
Zeno

  reply	other threads:[~2009-04-27  8:54 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-24 10:09 Zeno Davatz
2009-04-24 17:17 ` David Rientjes
2009-04-24 18:13   ` Zeno Davatz
2009-04-24 19:00     ` David Rientjes
2009-04-24 19:16       ` Zeno Davatz
2009-04-24 19:26         ` David Rientjes
2009-04-25  8:32           ` Zeno Davatz
2009-04-26 19:55             ` David Rientjes
2009-04-27  6:33               ` Zeno Davatz
2009-04-27  8:32                 ` David Rientjes
2009-04-27  8:53                   ` Zeno Davatz [this message]
2009-04-27 12:03                     ` Zeno Davatz
2009-04-27 13:35               ` Greg Stark
2009-04-27 13:39                 ` Zeno Davatz
2009-04-27 14:07                   ` Zeno Davatz
2009-04-27 14:48                 ` Zeno Davatz
2009-04-24 18:24   ` Zeno Davatz

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=40a4ed590904270153q306e80f2v62499434c64d92a6@mail.gmail.com \
    --to=zdavatz@gmail.com \
    --cc=hwyss@ywesee.com \
    --cc=linux-kernel@vger.kernel.org \
    --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

all inboxes | Powered by JetHome®