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 08:33:34 +0200 [thread overview]
Message-ID: <40a4ed590904262333k13dd3630t8d241eb30782bbab@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.00.0904261252010.18988@chino.kir.corp.google.com>
Dear David
On Sun, Apr 26, 2009 at 9:55 PM, David Rientjes <rientjes@google.com> wrote:
> On Sat, 25 Apr 2009, Zeno Davatz wrote:
>
>> Couldn't you start killing processes at an earlier stage? It seems to
>> me that the stage when processes are being killed by oom_killer is a
>> bit late in the game, when the machine is anyway very close to the
>> freezing point. I mean we had these messages of oom_kill several times
>> in our /var/log/kernel/current over a distributed amount of time.
>>
>
> The oom killer serves a very well-defined purpose: to kill a
> memory-hogging task when your system (or cpuset, memory controller) is out
> of memory.
Maybe sometimes to late in the process when the system _is_ already
out of memory ;) - because one task just uses 99% of the memory.
> When it kills a task, it also allows access to memory reserves
> that allow it to allocate beyond each allowable zone's min watermark.
> This is intended to allow the task to quickly exit.
Can you recommend a link where I can read up on this issue / problem?
It seems to me when the system is already out of memory it does not
have enough "memory" for freeing itself for some fresh memory,
specially if there is one application, that uses about 99% of the
memory. I would suggest, that in such a case it should just kill the
task that uses the most memory.
> There is work being done on a per-cgroup lowmem notifier which would allow
> userspace to poll() on a device file and be notified of low memory
> situations so that it can react on its own (like killing a low priority
> task, expanding a cpuset, increasing a memcontroller limit, etc.)
This sounds very interesting. Would this be working together with
udev? How would it got about to kill a task like "Apache" or "Ruby" or
any other application that is running on the linux machine.
Best
Zeno
next prev parent reply other threads:[~2009-04-27 6:33 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 [this message]
2009-04-27 8:32 ` David Rientjes
2009-04-27 8:53 ` Zeno Davatz
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=40a4ed590904262333k13dd3630t8d241eb30782bbab@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®