[Devel] [PATCH rh7 2/3] tswap: do not account kmem allocations to memcg
Vladimir Davydov
vdavydov at parallels.com
Mon Jul 27 08:49:50 PDT 2015
The reason is the same as in case of tcache: auxiliary kmem allocations,
namely radix-tree nodes, are used for storing tswap pages on the host
and so belong to the host and reclaimed only on global pressure.
https://jira.sw.ru/browse/PSBM-35205
Signed-off-by: Vladimir Davydov <vdavydov at parallels.com>
---
mm/tswap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/tswap.c b/mm/tswap.c
index dc1253f8e5b2..349a83dc0578 100644
--- a/mm/tswap.c
+++ b/mm/tswap.c
@@ -16,7 +16,7 @@
#define TSWAP_GFP_MASK (GFP_NOIO | __GFP_NORETRY | __GFP_NOWARN)
-static RADIX_TREE(tswap_page_tree, GFP_ATOMIC | __GFP_NOWARN);
+static RADIX_TREE(tswap_page_tree, GFP_ATOMIC | __GFP_NOWARN | __GFP_NOACCOUNT);
static DEFINE_SPINLOCK(tswap_lock);
struct tswap_lru {
--
2.1.4
More information about the Devel
mailing list