Re: [discuss] memrlimit - potential applications that can use

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <balbir@...>
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@...>
Date: Thursday, August 21, 2008 - 6:59 am

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



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [discuss] memrlimit - potential applications that can use, KAMEZAWA Hiroyuki, (Thu Aug 21, 3:43 am)
Re: [discuss] memrlimit - potential applications that can use, KAMEZAWA Hiroyuki, (Thu Aug 21, 6:59 am)