Re: [-mm][PATCH 4/4] Add memrlimit controller accounting and control (v4)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Balbir Singh
Date: Thursday, May 15, 2008 - 12:03 am

* Paul Menage <menage@google.com> [2008-05-14 23:55:07]:


I want to focus on this conclusion/assertion, since it takes care of
most of the locking related discussion above, unless I missed
something.

My concern with using mmap_sem, is that

1. It's highly contended (every page fault, vma change, etc)
2. It's going to make the locking hierarchy deeper and complex
3. It's not appropriate to call all the accounting callbacks with
   the mmap_sem() held, since the undo operations _can get_ complicated
   at the caller.

I would prefer introducing a new lock, so that other subsystems are
not affected. 

-- 
	Warm Regards,
	Balbir Singh
	Linux Technology Center
	IBM, ISTL
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[-mm][PATCH 0/4] Add memrlimit controller (v4), Balbir Singh, (Wed May 14, 6:09 am)
[-mm][PATCH 2/4] Setup the memrlimit controller (v4), Balbir Singh, (Wed May 14, 6:09 am)
Re: [-mm][PATCH 2/4] Setup the memrlimit controller (v4), Pavel Emelyanov, (Wed May 14, 6:29 am)
Re: [-mm][PATCH 4/4] Add memrlimit controller accounting a ..., Balbir Singh, (Thu May 15, 12:03 am)