linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Davis <linux@j-davis.com>
To: linux-mm@kvack.org
Subject: OOM killer overcounts memory usage
Date: Mon, 06 Aug 2007 17:12:12 -0700	[thread overview]
Message-ID: <1186445532.27681.28.camel@dogma.ljc.laika.com> (raw)

The OOM killer badness() function (mm/oom_kill.c) overcounts shared
memory many times over when the memory is shared between a parent
process and its children.

Each byte of shared memory is counted 1+N/2 times for the parent, where
N is the number of children of the process with which the parent shares
memory.

We may not even want to count the parent's shared memory at all, because
there's already limit with kernel.shmmax.

Regards,
        Jeff Davis

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

                 reply	other threads:[~2007-08-07  0:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1186445532.27681.28.camel@dogma.ljc.laika.com \
    --to=linux@j-davis.com \
    --cc=linux-mm@kvack.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