Cc: Dave Hansen <dave@...>, 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 Thu, 21 Aug 2008 15:56:41 +0530
Balbir Singh <balbir@linux.vnet.ibm.com> wrote:
Today's overcommit is also unlucky ;)
For example) process A and B is under a memrlimit.
process A no memory leak, it often calls malloc() and free().
process B does memory leak, 100MB per night.
process A cannot do anything when it notices malloc() returns NULL.
It controls his memory usage perfectly. He is unlucky and will die.
process B can use up VSZ which is freed by process A.
(OOM-killer, is disliked by everyone, have some kind of fairness.
It checks usage.)
Not "running out of memory" Just "VSZ is over the limit you set/expected".
My point is an application witch can handle NULL returned by malloc() is
not very popular, I think.
Sorry for noise.
Thanks,
-Kame
--