From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx175.postini.com [74.125.245.175]) by kanga.kvack.org (Postfix) with SMTP id 7CC8F6B0081 for ; Mon, 14 May 2012 23:01:54 -0400 (EDT) Received: from m2.gw.fujitsu.co.jp (unknown [10.0.50.72]) by fgwmail5.fujitsu.co.jp (Postfix) with ESMTP id 0F0AD3EE0C5 for ; Tue, 15 May 2012 12:01:53 +0900 (JST) Received: from smail (m2 [127.0.0.1]) by outgoing.m2.gw.fujitsu.co.jp (Postfix) with ESMTP id D641B45DE4E for ; Tue, 15 May 2012 12:01:52 +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 BCE8145DE50 for ; Tue, 15 May 2012 12:01:52 +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 AE15F1DB8041 for ; Tue, 15 May 2012 12:01:52 +0900 (JST) Received: from m1001.s.css.fujitsu.com (m1001.s.css.fujitsu.com [10.240.81.139]) by s2.gw.fujitsu.co.jp (Postfix) with ESMTP id 654CE1DB803C for ; Tue, 15 May 2012 12:01:52 +0900 (JST) Message-ID: <4FB1C6A1.1020602@jp.fujitsu.com> Date: Tue, 15 May 2012 11:59:45 +0900 From: KAMEZAWA Hiroyuki MIME-Version: 1.0 Subject: Re: [PATCH v2 11/29] cgroups: ability to stop res charge propagation on bounded ancestor References: <1336758272-24284-1-git-send-email-glommer@parallels.com> <1336758272-24284-12-git-send-email-glommer@parallels.com> In-Reply-To: <1336758272-24284-12-git-send-email-glommer@parallels.com> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Glauber Costa Cc: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, Tejun Heo , Li Zefan , Greg Thelen , Suleiman Souhlal , Michal Hocko , Johannes Weiner , devel@openvz.org, Frederic Weisbecker , Li Zefan , Aditya Kali , Oleg Nesterov , Kay Sievers , Tim Hockin , Tejun Heo , Andrew Morton (2012/05/12 2:44), Glauber Costa wrote: > From: Frederic Weisbecker > > Moving a task from a cgroup to another may require to substract its > resource charge from the old cgroup and add it to the new one. > > For this to happen, the uncharge/charge propagation can just stop when we > reach the common ancestor for the two cgroups. Further the performance > reasons, we also want to avoid to temporarily overload the common > ancestors with a non-accurate resource counter usage if we charge first > the new cgroup and uncharge the old one thereafter. This is going to be a > requirement for the coming max number of task subsystem. > > To solve this, provide a pair of new API that can charge/uncharge a > resource counter until we reach a given ancestor. > > Signed-off-by: Frederic Weisbecker > Acked-by: Paul Menage > Acked-by: Glauber Costa > Cc: Li Zefan > Cc: Johannes Weiner > Cc: Aditya Kali > Cc: Oleg Nesterov > Cc: Kay Sievers > Cc: Tim Hockin > Cc: Tejun Heo > Acked-by: Kirill A. Shutemov > Signed-off-by: Andrew Morton Where is this function called in this series ? 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 internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org