[PATCH][RFC] dirty balancing for cgroups

Paul Menage menage at google.com
Thu Aug 14 01:38:17 PDT 2008

On Mon, Jul 14, 2008 at 6:49 AM, Peter Zijlstra <a.p.zijlstra at 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


More information about the Containers mailing list