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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...>
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 - 7:13 am

KAMEZAWA Hiroyuki wrote:

Yes, true that will happen. Why will A die because it sees NULL? Yes, many
applications do die, but that is not how malloc == NULL is expected to be
handled. If that is a concern, do not use any memrlimits for A and B, if you do
you will find the bug early.

Now consider the other scenario, if there really is a memory leak and process B
is using all that memory, two things to consider

1. Without swap controller, B will start swapping out A's memory and cause
excessive swapping and performance loss
2. With swap controller enabled, at some point we will hit the swap limit, what
happens then?


Yes and that's why we have the flexibility, if the application can't deal with
it don't set memrlimits for those applications :)

-- 
	Balbir

--
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)
Re: [discuss] memrlimit - potential applications that can use, Balbir Singh, (Thu Aug 21, 7:13 am)