From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glauber Costa Subject: Re: [PATCH v8 0/9] per-cgroup tcp memory pressure controls Date: Wed, 7 Dec 2011 09:06:17 -0200 Message-ID: <4EDF48A9.6090306@parallels.com> References: <1323120903-2831-1-git-send-email-glommer@parallels.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1323120903-2831-1-git-send-email-glommer-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: lizf-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org, kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org, ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org, davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org, gthelen-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, kirill-oKw7cIdHH8eLwutG50LtGA@public.gmane.org, avagin-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org, devel-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org, eric.dumazet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org, mhocko-AlSwsSmVLrQ@public.gmane.org On 12/05/2011 07:34 PM, Glauber Costa wrote: > Hi, > > This is my new attempt to fix all the concerns that were raised during > the last iteration. > > I should highlight: > 1) proc information is kept intact. (although I kept the wrapper functions) > it will be submitted as a follow up patch so it can get the attention it > deserves > 2) sockets now hold a reference to memcg. sockets can be alive even after the > task is gone, so we don't bother with between cgroups movements. > To be able to release resources more easily in this cenario, the parent > pointer in struct cg_proto was replaced by a memcg object. We then iterate > through its pointer (which is cleaner anyway) > > The rest should be mostly the same except for small fixes and style changes. > Kame, Does this one address your previous concerns? Thanks -- To unsubscribe from this list: send the line "unsubscribe cgroups" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx105.postini.com [74.125.245.105]) by kanga.kvack.org (Postfix) with SMTP id 4D5146B004D for ; Wed, 7 Dec 2011 06:07:05 -0500 (EST) Message-ID: <4EDF48A9.6090306@parallels.com> Date: Wed, 7 Dec 2011 09:06:17 -0200 From: Glauber Costa MIME-Version: 1.0 Subject: Re: [PATCH v8 0/9] per-cgroup tcp memory pressure controls References: <1323120903-2831-1-git-send-email-glommer@parallels.com> In-Reply-To: <1323120903-2831-1-git-send-email-glommer@parallels.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: linux-kernel@vger.kernel.org Cc: lizf@cn.fujitsu.com, kamezawa.hiroyu@jp.fujitsu.com, ebiederm@xmission.com, davem@davemloft.net, gthelen@google.com, netdev@vger.kernel.org, linux-mm@kvack.org, kirill@shutemov.name, avagin@parallels.com, devel@openvz.org, eric.dumazet@gmail.com, cgroups@vger.kernel.org, hannes@cmpxchg.org, mhocko@suse.cz On 12/05/2011 07:34 PM, Glauber Costa wrote: > Hi, > > This is my new attempt to fix all the concerns that were raised during > the last iteration. > > I should highlight: > 1) proc information is kept intact. (although I kept the wrapper functions) > it will be submitted as a follow up patch so it can get the attention it > deserves > 2) sockets now hold a reference to memcg. sockets can be alive even after the > task is gone, so we don't bother with between cgroups movements. > To be able to release resources more easily in this cenario, the parent > pointer in struct cg_proto was replaced by a memcg object. We then iterate > through its pointer (which is cleaner anyway) > > The rest should be mostly the same except for small fixes and style changes. > Kame, Does this one address your previous concerns? Thanks -- 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 S1755406Ab1LGLHM (ORCPT ); Wed, 7 Dec 2011 06:07:12 -0500 Received: from mx2.parallels.com ([64.131.90.16]:34359 "EHLO mx2.parallels.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754924Ab1LGLHK (ORCPT ); Wed, 7 Dec 2011 06:07:10 -0500 Message-ID: <4EDF48A9.6090306@parallels.com> Date: Wed, 7 Dec 2011 09:06:17 -0200 From: Glauber Costa User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110927 Thunderbird/7.0 MIME-Version: 1.0 To: CC: , , , , , , , , , , , , , Subject: Re: [PATCH v8 0/9] per-cgroup tcp memory pressure controls References: <1323120903-2831-1-git-send-email-glommer@parallels.com> In-Reply-To: <1323120903-2831-1-git-send-email-glommer@parallels.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [201.82.130.234] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/05/2011 07:34 PM, Glauber Costa wrote: > Hi, > > This is my new attempt to fix all the concerns that were raised during > the last iteration. > > I should highlight: > 1) proc information is kept intact. (although I kept the wrapper functions) > it will be submitted as a follow up patch so it can get the attention it > deserves > 2) sockets now hold a reference to memcg. sockets can be alive even after the > task is gone, so we don't bother with between cgroups movements. > To be able to release resources more easily in this cenario, the parent > pointer in struct cg_proto was replaced by a memcg object. We then iterate > through its pointer (which is cleaner anyway) > > The rest should be mostly the same except for small fixes and style changes. > Kame, Does this one address your previous concerns? Thanks From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glauber Costa Subject: Re: [PATCH v8 0/9] per-cgroup tcp memory pressure controls Date: Wed, 7 Dec 2011 09:06:17 -0200 Message-ID: <4EDF48A9.6090306@parallels.com> References: <1323120903-2831-1-git-send-email-glommer@parallels.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Cc: , , , , , , , , , , , , , To: Return-path: In-Reply-To: <1323120903-2831-1-git-send-email-glommer-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org On 12/05/2011 07:34 PM, Glauber Costa wrote: > Hi, > > This is my new attempt to fix all the concerns that were raised during > the last iteration. > > I should highlight: > 1) proc information is kept intact. (although I kept the wrapper functions) > it will be submitted as a follow up patch so it can get the attention it > deserves > 2) sockets now hold a reference to memcg. sockets can be alive even after the > task is gone, so we don't bother with between cgroups movements. > To be able to release resources more easily in this cenario, the parent > pointer in struct cg_proto was replaced by a memcg object. We then iterate > through its pointer (which is cleaner anyway) > > The rest should be mostly the same except for small fixes and style changes. > Kame, Does this one address your previous concerns? Thanks -- To unsubscribe from this list: send the line "unsubscribe cgroups" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html