From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail138.messagelabs.com (mail138.messagelabs.com [216.82.249.35]) by kanga.kvack.org (Postfix) with SMTP id D8C888D0039 for ; Mon, 17 Jan 2011 21:12:03 -0500 (EST) Received: from m2.gw.fujitsu.co.jp (unknown [10.0.50.72]) by fgwmail6.fujitsu.co.jp (Postfix) with ESMTP id 4FE583EE0B3 for ; Tue, 18 Jan 2011 11:12:01 +0900 (JST) Received: from smail (m2 [127.0.0.1]) by outgoing.m2.gw.fujitsu.co.jp (Postfix) with ESMTP id 29CA645DE61 for ; Tue, 18 Jan 2011 11:12:01 +0900 (JST) Received: from s2.gw.fujitsu.co.jp (s2.gw.fujitsu.co.jp [10.0.50.92]) by m2.gw.fujitsu.co.jp (Postfix) with ESMTP id 10F9445DE4E for ; Tue, 18 Jan 2011 11:12:01 +0900 (JST) Received: from s2.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s2.gw.fujitsu.co.jp (Postfix) with ESMTP id 008871DB803C for ; Tue, 18 Jan 2011 11:12:01 +0900 (JST) Received: from m108.s.css.fujitsu.com (m108.s.css.fujitsu.com [10.249.87.108]) by s2.gw.fujitsu.co.jp (Postfix) with ESMTP id BE9ED1DB8038 for ; Tue, 18 Jan 2011 11:12:00 +0900 (JST) Date: Tue, 18 Jan 2011 11:06:04 +0900 From: KAMEZAWA Hiroyuki Subject: [PATCH 0/4] fix THP and memcg issues v2. Message-Id: <20110118110604.e2528324.kamezawa.hiroyu@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: "akpm@linux-foundation.org" Cc: "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "hannes@cmpxchg.org" , "nishimura@mxp.nes.nec.co.jp" , "balbir@linux.vnet.ibm.com" , Greg Thelen List-ID: Now, when THP is enabled, memcg's counter goes wrong. Moreover, rmdir() may not end. I fixed some races since v1. This series is a fix for obviouse counter breakage. When you test, CONFIG_TRANSPARENT_HUGEPAGE=y CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y is appreciated. Tests should be done is: # mount -t cgroup none /cgroup/memory -omemory # mkdir /cgroup/memory/A # mkdir /cgroup/memory/A/B # run some programs under B. # echo 0 > /cgroup/memory/A/B/memory.force_empty and check B's memory.stat shows RSS/CACHE/LRU are all 0. Moving tasks while running is another good test. I know there are another problem when memory cgroup hits limit and reclaim in busy. But I will fix it in another patch. Thanks, -Kame -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/ Don't email: email@kvack.org