Cc: Paul Menage <menage@...>, Dave Hansen <haveblue@...>, Andrea Righi <righi.andrea@...>, Hugh Dickins <hugh@...>, Andrew Morton <akpm@...>, Linux Memory Management List <linux-mm@...>, linux kernel mailing list <linux-kernel@...>
On Tue, 2008-08-19 at 22:15 +0530, Balbir Singh wrote:
OK, let's get back to describing the basic problem here. What is the
basic problem being solved? Applications basically want to get a
failure back from malloc() when the machine is (nearly?) out of memory
so they can stop consuming?
Is this the only way to do autonomic computing with memory? Or, are
there other or better approaches?
Surely an autonomic computing app could keep track of its own memory
footprint.
Heh. That suggestion is, at best, working around a kernel bug. The DB
guys are just saying to do that because they're the biggest memory users
and always seem to get OOM killed first.
The base problem here is the OOM killer, not an application that truly
uses memory overcommit restriction in an interesting way.
I think that too many of the users of (1) probably fall into the
PostgreSQL category. They found that turning it on "fixed" their bugs,
but it really just swept them under the rug.
So, before we expand the use of those features to control groups by
adding a bunch of new code, let's make sure that there will be users for
it and that those users have no better way of doing it.
-- Dave
--