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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul Menage
Date: Thursday, May 15, 2008 - 12:39 am

On Thu, May 15, 2008 at 12:03 AM, Balbir Singh
<balbir@linux.vnet.ibm.com> wrote:

But the only *new* cases of taking the mmap_sem that this would
introduce would be:

- on a failed vm limit charge
- when a task exit/exec causes an mm ownership change
- when a task moves between two cgroups in the memrlimit hierarchy.

All of these should be rare events, so I don't think the additional
contention is a worry.


Yes, potentially. But if the upside of that is that we eliminate a
lock/unlock on a shared lock on every mmap/munmap call, it might well
be worth it.


Can you give an example?


For getting the first cut of the memrlimit controller working this may
well make sense. But it would be nice to avoid it longer-term.

Paul
--
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 ..., Paul Menage, (Thu May 15, 12:39 am)