[PATCH v9 13/13] memcg: check memcg dirty limits in page writeback

KAMEZAWA Hiroyuki kamezawa.hiroyu at jp.fujitsu.com
Wed Aug 17 18:40:20 PDT 2011


On Wed, 17 Aug 2011 09:15:05 -0700
Greg Thelen <gthelen at google.com> wrote:

> If the current process is in a non-root memcg, then
> balance_dirty_pages() will consider the memcg dirty limits as well as
> the system-wide limits.  This allows different cgroups to have distinct
> dirty limits which trigger direct and background writeback at different
> levels.
> 
> If called with a mem_cgroup, then throttle_vm_writeout() queries the
> given cgroup for its dirty memory usage limits.
> 
> Signed-off-by: Andrea Righi <andrea at betterlinux.com>
> Signed-off-by: Greg Thelen <gthelen at google.com>

Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu at jp.fujitsu.com>




More information about the Containers mailing list