From: "Chris Friesen" <cfriesen@nortel.com>
To: Alan <alan@lxorguk.ukuu.org.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: additional oom-killer tuneable worth submitting?
Date: Thu, 07 Dec 2006 17:21:21 -0600 [thread overview]
Message-ID: <4578A1F1.7050907@nortel.com> (raw)
In-Reply-To: <20061207232207.01af3a79@localhost.localdomain>
Alan wrote:
>>The "oom-thresh" value maps to the max expected memory consumption for
>>that process. As long as a process uses less memory than the specified
>>threshold, then it is immune to the oom-killer.
> You've just introduced a deadlock. What happens if nobody is over that
> predicted memory and the kernel uses more resource ?
Based on the discussion with Jesper, we fall back to regular behaviour.
(Or possibly hang or reboot, if we added another switch).
>>On an embedded platform this allows the designer to engineer the system
>>and protect critical apps based on their expected memory consumption.
>>If one of those apps goes crazy and starts chewing additional memory
>>then it becomes vulnerable to the oom killer while the other apps remain
>>protected.
> That is why we have no-overcommit support. Now there is an argument for
> a meaningful rlimit-as to go with it, and together I think they do what
> you really need.
No overcommit only protects the system as a whole, not any particular
processes. The purpose of this is to protect specific daemons from
being killed when the system as a whole is short on memory. Same
rationale as for oomadj, but different knob to twiddle.
Chris
next prev parent reply other threads:[~2006-12-07 23:21 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-07 18:30 additional oom-killer tuneable worth submitting? Chris Friesen
2006-12-07 18:50 ` Jesper Juhl
2006-12-07 21:25 ` Chris Friesen
2006-12-07 21:37 ` Jesper Juhl
2006-12-07 21:57 ` Chris Friesen
2006-12-07 22:25 ` Jesper Juhl
2006-12-07 19:21 ` Peter Zijlstra
2006-12-07 21:26 ` Chris Friesen
2006-12-07 23:22 ` Alan
2006-12-07 23:21 ` Chris Friesen [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-12-08 13:58 Al Boldi
2006-12-08 14:56 ` Alan
2006-12-08 15:19 ` Al Boldi
2006-12-08 15:55 ` Alan
2006-12-08 16:59 ` Al Boldi
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=4578A1F1.7050907@nortel.com \
--to=cfriesen@nortel.com \
--cc=alan@lxorguk.ukuu.org.uk \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.