From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konstantin Khlebnikov Subject: Re: [PATCH 2/2] memcg: use vm_swappiness from current memcg Date: Thu, 16 Feb 2012 11:02:43 +0400 Message-ID: <4F3CAA13.1090906@openvz.org> References: <20120215162830.13902.60256.stgit@zurg> <20120215162834.13902.37262.stgit@zurg> <20120216091511.350882a7.kamezawa.hiroyu@jp.fujitsu.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=IcvEyQbINbPfs9Dvo+1i4lNeNeUB1BrTiqDlR45ylVY=; b=r3ZXQV+ltgE7CWdr1yqDNRTGTd+QDtY8Zh/tuph84wZCsmrLhStrVM6ngxcuXPa7sP nASn0+vh7QYFoxhoRlebAMrYUzbRmn2ylK6shmyTmV7YzCDVzgjIyQPHBYPn/vsR8MsI bfAGLvsbKa/Kdgum2fLts8q/k9Ec+YEzImkuU= In-Reply-To: <20120216091511.350882a7.kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: KAMEZAWA Hiroyuki Cc: "linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org" , Andrew Morton , Johannes Weiner , "cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" KAMEZAWA Hiroyuki wrote: > On Wed, 15 Feb 2012 20:28:34 +0400 > Konstantin Khlebnikov wrote: > >> At this point this is always the same cgroup, but it allows to drop one argument. >> >> Signed-off-by: Konstantin Khlebnikov > > Do you mean "no logic change but clean up, dropping an argument" ? > > I'm not sure using complicated sc-> is easier than passing an argument.. It also was cleanup-preparation for "memory book keeping", there I replace struct mem_cgroup_zone *mz with struct book *book, struct book doesn't know anything about memory-cgroups. > > Acked-by: KAMEZAWA Hiroyuki > > -- > To unsubscribe, send a message with 'unsubscribe linux-mm' in > the body to majordomo-Bw31MaZKKs0EbZ0PF+XxCw@public.gmane.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-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx101.postini.com [74.125.245.101]) by kanga.kvack.org (Postfix) with SMTP id ADBC56B004A for ; Thu, 16 Feb 2012 02:02:49 -0500 (EST) Received: by bkty12 with SMTP id y12so2163620bkt.14 for ; Wed, 15 Feb 2012 23:02:47 -0800 (PST) Message-ID: <4F3CAA13.1090906@openvz.org> Date: Thu, 16 Feb 2012 11:02:43 +0400 From: Konstantin Khlebnikov MIME-Version: 1.0 Subject: Re: [PATCH 2/2] memcg: use vm_swappiness from current memcg References: <20120215162830.13902.60256.stgit@zurg> <20120215162834.13902.37262.stgit@zurg> <20120216091511.350882a7.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <20120216091511.350882a7.kamezawa.hiroyu@jp.fujitsu.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: KAMEZAWA Hiroyuki Cc: "linux-mm@kvack.org" , Andrew Morton , Johannes Weiner , "cgroups@vger.kernel.org" , "linux-kernel@vger.kernel.org" KAMEZAWA Hiroyuki wrote: > On Wed, 15 Feb 2012 20:28:34 +0400 > Konstantin Khlebnikov wrote: > >> At this point this is always the same cgroup, but it allows to drop one argument. >> >> Signed-off-by: Konstantin Khlebnikov > > Do you mean "no logic change but clean up, dropping an argument" ? > > I'm not sure using complicated sc-> is easier than passing an argument.. It also was cleanup-preparation for "memory book keeping", there I replace struct mem_cgroup_zone *mz with struct book *book, struct book doesn't know anything about memory-cgroups. > > Acked-by: KAMEZAWA Hiroyuki > > -- > 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 -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757338Ab2BPHCw (ORCPT ); Thu, 16 Feb 2012 02:02:52 -0500 Received: from mail-bk0-f46.google.com ([209.85.214.46]:60174 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757262Ab2BPHCt (ORCPT ); Thu, 16 Feb 2012 02:02:49 -0500 Message-ID: <4F3CAA13.1090906@openvz.org> Date: Thu, 16 Feb 2012 11:02:43 +0400 From: Konstantin Khlebnikov User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.19) Gecko/20120201 Iceape/2.0.14 MIME-Version: 1.0 To: KAMEZAWA Hiroyuki CC: "linux-mm@kvack.org" , Andrew Morton , Johannes Weiner , "cgroups@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 2/2] memcg: use vm_swappiness from current memcg References: <20120215162830.13902.60256.stgit@zurg> <20120215162834.13902.37262.stgit@zurg> <20120216091511.350882a7.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <20120216091511.350882a7.kamezawa.hiroyu@jp.fujitsu.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org KAMEZAWA Hiroyuki wrote: > On Wed, 15 Feb 2012 20:28:34 +0400 > Konstantin Khlebnikov wrote: > >> At this point this is always the same cgroup, but it allows to drop one argument. >> >> Signed-off-by: Konstantin Khlebnikov > > Do you mean "no logic change but clean up, dropping an argument" ? > > I'm not sure using complicated sc-> is easier than passing an argument.. It also was cleanup-preparation for "memory book keeping", there I replace struct mem_cgroup_zone *mz with struct book *book, struct book doesn't know anything about memory-cgroups. > > Acked-by: KAMEZAWA Hiroyuki > > -- > 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