Messages in this thread | | | Date | Thu, 14 Aug 2008 01:38:17 -0700 | From | "Paul Menage" <> | Subject | Re: [PATCH][RFC] dirty balancing for cgroups |
| |
On Mon, Jul 14, 2008 at 6:49 AM, Peter Zijlstra <a.p.zijlstra@chello.nl> wrote: > > The dirty page limit avoids deadlocks under certain situations, the per > BDI dirty limit avoids even mode deadlocks by providing isolation > between BDIs. >
As well as deadlocks, in the case of cgroups a big advantage of dirty limits is that it makes it easier to "loan" memory to groups above and beyond what they have been guaranteed. As long as we limit the dirty/locked memory for a cgroup to its guarantee, and require any extra memory to be clean and unlocked, then we can reclaim it in a hurry if another cgroup (that had been guaranteed that memory) needs it.
Paul
| |