From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Menage Subject: Re: [PATCH] per-cgroup tcp buffer limitation Date: Tue, 6 Sep 2011 18:08:08 -0700 Message-ID: References: <1315276556-10970-1-git-send-email-glommer@parallels.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: In-Reply-To: <1315276556-10970-1-git-send-email-glommer@parallels.com> Sender: owner-linux-mm@kvack.org To: Glauber Costa Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, containers@lists.osdl.org, netdev@vger.kernel.org, xemul@parallels.com, "David S. Miller" , Hiroyouki Kamezawa , "Eric W. Biederman" List-Id: containers.vger.kernel.org On Mon, Sep 5, 2011 at 7:35 PM, Glauber Costa wrote: > This patch introduces per-cgroup tcp buffers limitation. This allows > sysadmins to specify a maximum amount of kernel memory that > tcp connections can use at any point in time. TCP is the main interest > in this work, but extending it to other protocols would be easy. The general idea of limiting total socket buffer memory consumed by a cgroup is a fine idea, but I think it needs to be integrated more closely with the existing kernel memory cgroup tracking efforts, especially if you're trying to use as generic a name as "kmem" for it. I agree with Kamezawa's comments that you need a lot more documentation. Paul -- 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 S1753204Ab1IGBIh (ORCPT ); Tue, 6 Sep 2011 21:08:37 -0400 Received: from mail-yi0-f46.google.com ([209.85.218.46]:64062 "EHLO mail-yi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751399Ab1IGBI3 (ORCPT ); Tue, 6 Sep 2011 21:08:29 -0400 MIME-Version: 1.0 In-Reply-To: <1315276556-10970-1-git-send-email-glommer@parallels.com> References: <1315276556-10970-1-git-send-email-glommer@parallels.com> From: Paul Menage Date: Tue, 6 Sep 2011 18:08:08 -0700 X-Google-Sender-Auth: tUx05-flwkqtFsbO6eWnI4nBVEU Message-ID: Subject: Re: [PATCH] per-cgroup tcp buffer limitation To: Glauber Costa Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, containers@lists.osdl.org, netdev@vger.kernel.org, xemul@parallels.com, "David S. Miller" , Hiroyouki Kamezawa , "Eric W. Biederman" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 5, 2011 at 7:35 PM, Glauber Costa wrote: > This patch introduces per-cgroup tcp buffers limitation. This allows > sysadmins to specify a maximum amount of kernel memory that > tcp connections can use at any point in time. TCP is the main interest > in this work, but extending it to other protocols would be easy. The general idea of limiting total socket buffer memory consumed by a cgroup is a fine idea, but I think it needs to be integrated more closely with the existing kernel memory cgroup tracking efforts, especially if you're trying to use as generic a name as "kmem" for it. I agree with Kamezawa's comments that you need a lot more documentation. Paul