Patch "mm: memcontrol: let v2 cgroups follow changes in system swappiness" has been added to the 4.5-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
mm: memcontrol: let v2 cgroups follow changes in system swappiness
to the 4.5-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
mm-memcontrol-let-v2-cgroups-follow-changes-in-system-swappiness.patch
and it can be found in the queue-4.5 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
4550c4e157ca3da929593bb6c64080a59141af35Mon Sep 17 00:00:00 2001
From: Johannes Weiner <[email protected]>
Date: Thu, 5 May 2016 16:22:03 -0700
Subject: mm: memcontrol: let v2 cgroups follow changes in system swappiness
From: Johannes Weiner <[email protected]>
commit 4550c4e157ca3da929593bb6c64080a59141af35 upstream.
Cgroup2 currently doesn't have a per-cgroup swappiness setting. We might want to add one later - that's a different discussion - but until we do, the cgroups should always follow the system setting. Otherwise it will be unchangeably set to whatever the ancestor inherited from the system setting at the time of cgroup creation.
include/linux/swap.h +4 -0
@@ -533,6 +533,10 @@ static inline swp_entry_t get_swap_page(void)#ifdef CONFIG_MEMCG static inline int mem_cgroup_swappiness (struct mem_cgroup *memcg) { +/* Cgroup2 doesn't have per-cgroup swappiness */ +if (cgroup_subsys_on_dfl (memory_cgrp_subsys)) +return vm_swappiness; +/* root ? */ if (mem_cgroup_disabled () || !memcg->css.parent)return vm_swappiness;
Patches currently in stable-queue which might be from [email protected] are
queue-4.5/mm-memcontrol-let-v2-cgroups-follow-changes-in-system-swappiness.patch