Thread (11 messages) 11 messages, 5 authors, 2012-03-23

Re: [PATCH] memcg: change behavior of moving charges at task move

From: KAMEZAWA Hiroyuki <hidden>
Date: 2012-03-23 09:02:26
Also in: cgroups, lkml
Subsystem: control group - memory resource controller (memcg), documentation, memory management, memory management - swap, the rest · Maintainers: Johannes Weiner, Michal Hocko, Roman Gushchin, Shakeel Butt, Jonathan Corbet, Andrew Morton, Chris Li, Kairui Song, Linus Torvalds

(2012/03/23 17:53), Johannes Weiner wrote:
On Fri, Mar 23, 2012 at 09:52:28AM +0900, KAMEZAWA Hiroyuki wrote:
quoted
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index b2ee6df..ca8b3a1 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -5147,7 +5147,7 @@ static struct page *mc_handle_present_pte(struct vm_area_struct *vma,
 		return NULL;
 	if (PageAnon(page)) {
 		/* we don't move shared anon */
-		if (!move_anon() || page_mapcount(page) > 2)
+		if (!move_anon())
 			return NULL;
 	} else if (!move_file())
 		/* we ignore mapcount for file pages */
@@ -5158,26 +5158,32 @@ static struct page *mc_handle_present_pte(struct vm_area_struct *vma,
 	return page;
 }
 
+#ifdef CONFFIG_SWAP
That will probably disable it for good :)

Thank you for your good eyes.. I feel I can't trust my eyes ;(


==
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help