From: Bill Davidsen <davidsen@tmr.com>
To: linux-kernel@vger.kernel.org
To: Parag Warudkar <kernel-stuff@comcast.net>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>
Subject: Re: [PATCH 2.6.11-rc4] oom_kill.c: Kill obvious processes first
Date: Mon, 28 Feb 2005 17:30:53 -0500 [thread overview]
Message-ID: <42239B9D.80001@tmr.com> (raw)
In-Reply-To: <200502250024.30450.kernel-stuff@comcast.net>
Parag Warudkar wrote:
> oom_kill.c misses very obvious targets - For example, a process occupying >
> 80% memory, not superuser and not having hardware access gets ignored by it.
> Logically, such a process, if killed , is going to make things return to
> normal thereby eliminating the need for oom killer to further scan for more
> processes.
>
> This patch calculates the approximate integer percentage of memory occupied by
> the process by looking at num_physpages and p->mm->total_vm. If this process
> is not super user and doesn't have hardware access, and the percentage of
> occupied memory is more than 60%, it immediately selects this process for
> killing by returning unusually high points from badness().
>
> Without this patch, when KDevelop running as non root user gobbles up 90%
> memory, the OOM killer kills many other irrelevant processes but not KDevelop
> And machine never recovers.. (Pls see LKML for my previous message with
> subject "2.6.11-rc4 OOM Killer - Kill the Innocent".)
>
> With this patch OOM killer immediately kills kdevelop and machine recovers.
Thank you for the patch, I'm in agreement with the idea, and I'll give
it a try after I look at the code a bit. The current code frequently
seems bit... non-deterministic.
--
-bill davidsen (davidsen@tmr.com)
"The secret to procrastination is to put things off until the
last possible moment - but no longer" -me
next prev parent reply other threads:[~2005-02-28 22:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-25 5:24 [PATCH 2.6.11-rc4] oom_kill.c: Kill obvious processes first Parag Warudkar
2005-02-28 22:30 ` Bill Davidsen [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-03-01 0:55 Parag Warudkar
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=42239B9D.80001@tmr.com \
--to=davidsen@tmr.com \
--cc=akpm@osdl.org \
--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