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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Balbir Singh
Date: Wednesday, August 20, 2008 - 8:25 pm

Dave Hansen wrote:

Not really, how does an application know how to trade-off between maximum
performance on a system vs consuming so much of the memory resource that it OOMs?


And oom_adj is not a hack? What if several memory hungry applications striving
for performance all turn oom_adj to preven themselves from being oom'ed?


The other ways of locking memory down is mlock(), which by default is limited on
most distros. We'll end up implementing mlock() control per control group as well.


I've looked at http://wiki.openvz.org/User_pages_accounting and it states

"Account a part of memory on mmap/brk and reject there, and account the rest of
the memory in page fault handlers without any rejects."
    This type of accounting is used in UBC.

I looked through the code in mm/mmap.c for beancounters, ub_memory_charge() is
called from almost the same places that the memrlimit controller does
accounting. Please see their git tree at git.openvz.org. My understanding of the
code is the private vm and locked vm pages are only charged in that
implementation. Agreed, they have additional finer accounting of kernel data
structures, but beancounters account for VM usage too.



No, you've been offered several, including php and apache that use memory limits.


Is your suggestion beancounters?

-- 
	Balbir

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

Messages in current thread:
[discuss] memrlimit - potential applications that can use, Balbir Singh, (Tue Aug 19, 12:18 am)
Re: [discuss] memrlimit - potential applications that can use, Balbir Singh, (Wed Aug 20, 8:25 pm)
Re: [discuss] memrlimit - potential applications that can use, KAMEZAWA Hiroyuki, (Thu Aug 21, 12:43 am)
Re: [discuss] memrlimit - potential applications that can use, KAMEZAWA Hiroyuki, (Thu Aug 21, 3:59 am)