Re: [PATCH] badness() dramatically overcounts memory

From: David Rientjes
Date: Tue Feb 05 2008 - 18:13:36 EST


On Tue, 5 Feb 2008, Jeff Davis wrote:

> > The interesting thing is the use of total_vm and not the RSS which is used as
> > the basis by the OOM killer. I need to read/understand the code a bit more.
>
> RSS makes more sense to me as well.
>
> To me, it makes no sense to count shared memory, because killing a
> process doesn't free the shared memory.
>

Andrea Arcangeli has patches pending which change this to the RSS.
Specifically:

http://marc.info/?l=linux-mm&m=119977937126925
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/