linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* OOM killer overcounts memory usage
@ 2007-08-07  0:12 Jeff Davis
  0 siblings, 0 replies; only message in thread
From: Jeff Davis @ 2007-08-07  0:12 UTC (permalink / raw)
  To: linux-mm

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>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-07  0:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-07  0:12 OOM killer overcounts memory usage Jeff Davis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox