Re: Misleading OOM messages

From: Dave Hansen
Date: Fri May 15 2009 - 14:22:26 EST


On Fri, 2009-05-15 at 13:59 -0400, Christoph Lameter wrote:
> On Fri, 15 May 2009, Pavel Machek wrote:
> > Ok, so kernel should be fixed to make limits 30% of non-mlocked
> > memory.
>
> There is already ulimit.

There is, but it gets overridden anyway since there are users that
"need" tons of mlock() space. We also shouldn't be allowing things to
get into crazy configurations. Having a max dirty ratio doesn't even
have an effect when you can dirty all unlocked memory several times over
and still not be hitting the max dirty mark.

Perhaps we should ensure that total RAM mlock()ed + vm_dirty_bytes is
always under total ram. That'll force people to either stop mlocking or
do the safe thing which is drop vm_dirty_bytes.

-- Dave

--
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/