netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: Anoop Naravaram <anaravaram@google.com>
Cc: corbet@lwn.net, lizefan@huawei.com, hannes@cmpxchg.org,
	davem@davemloft.net, kuznet@ms2.inr.ac.ru, jmorris@namei.org,
	yoshfuji@linux-ipv6.org, kaber@trash.net,
	linux-doc@vger.kernel.org, cgroups@vger.kernel.org,
	netdev@vger.kernel.org, edumazet@google.com, maheshb@google.com,
	weiwan@google.com, tom@herbertland.com
Subject: Re: [PATCH 0/5] Networking cgroup controller
Date: Wed, 24 Aug 2016 17:03:57 -0400	[thread overview]
Message-ID: <20160824210357.GU8185@htj.duckdns.org> (raw)
In-Reply-To: <1470876798-4024-1-git-send-email-anaravaram@google.com>

Hello, Anoop.

On Wed, Aug 10, 2016 at 05:53:13PM -0700, Anoop Naravaram wrote:
> This patchset introduces a cgroup controller for the networking subsystem as a
> whole. As of now, this controller will be used for:
> 
> * Limiting the specific ports that a process in a cgroup is allowed to bind
>   to or listen on. For example, you can say that all the processes in a
>   cgroup can only bind to ports 1000-2000, and listen on ports 1000-1100, which
>   guarantees that the remaining ports will be available for other processes.
> 
> * Restricting which DSCP values processes can use with their sockets. For
>   example, you can say that all the processes in a cgroup can only send
>   packets with a DSCP tag between 48 and 63 (corresponding to TOS values of
>   192 to 255).
> 
> * Limiting the total number of udp ports that can be used by a process in a
>   cgroup. For example, you can say that all the processes in one cgroup are
>   allowed to use a total of up to 100 udp ports. Since the total number of udp
>   ports that can be used by all processes is limited, this is useful for
>   rationing out the ports to different process groups.
> 
> In the future, more networking-related properties may be added to this
> controller.

Thanks for working on this; however, I share the sentiment expressed
by others that this looks like too piecemeal an approach.  If there
are no alternatives, we surely should consider this but it at least
*looks* like bpf should be able to cover the same functionalities
without having to revise and extend in-kernel capabilities constantly.

Thanks.

-- 
tejun

  parent reply	other threads:[~2016-08-24 21:07 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-11  0:53 [PATCH 0/5] Networking cgroup controller Anoop Naravaram
2016-08-11  0:53 ` [PATCH 1/5] net: create the networking " Anoop Naravaram
2016-08-11  0:53 ` [PATCH 2/5] net: add bind/listen ranges to net cgroup Anoop Naravaram
2016-08-13  4:29   ` Alexei Starovoitov
2016-08-15 19:05     ` Mahesh Bandewar
2016-08-17  3:02       ` Alexei Starovoitov
     [not found] ` <1470876798-4024-1-git-send-email-anaravaram-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2016-08-11  0:53   ` [PATCH 3/5] net: add udp limit " Anoop Naravaram
     [not found]     ` <1470876798-4024-4-git-send-email-anaravaram-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2016-08-13  4:35       ` Alexei Starovoitov
2016-08-15 19:16         ` Mahesh Bandewar
2016-08-23  7:37   ` [PATCH 0/5] Networking cgroup controller Parav Pandit
2016-08-11  0:53 ` [PATCH 4/5] net: add dscp ranges to net cgroup Anoop Naravaram
2016-08-11  0:53 ` [PATCH 5/5] net: add test for " Anoop Naravaram
2016-08-13  4:38   ` Alexei Starovoitov
2016-08-23  8:49 ` [PATCH 0/5] Networking cgroup controller Parav Pandit
2016-08-25  0:28   ` Mahesh Bandewar (महेश बंडेवार)
2016-08-24 21:03 ` Tejun Heo [this message]
2016-08-25 15:54   ` Mahesh Bandewar (महेश बंडेवार)
     [not found]     ` <CAF2d9jjXxjgJU1VWDERKkv4LRvmhpjpyx7Dx76egQx43aaXtmQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-08-25 16:09       ` Tejun Heo
2016-08-25 16:11         ` Tejun Heo
2016-08-25 18:53         ` Mahesh Bandewar (महेश बंडेवार)
2016-08-25 18:04     ` Alexei Starovoitov
2016-08-25 18:56       ` Mahesh Bandewar (महेश बंडेवार)
2016-08-25 21:29         ` Alexei Starovoitov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160824210357.GU8185@htj.duckdns.org \
    --to=tj@kernel.org \
    --cc=anaravaram@google.com \
    --cc=cgroups@vger.kernel.org \
    --cc=corbet@lwn.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hannes@cmpxchg.org \
    --cc=jmorris@namei.org \
    --cc=kaber@trash.net \
    --cc=kuznet@ms2.inr.ac.ru \
    --cc=linux-doc@vger.kernel.org \
    --cc=lizefan@huawei.com \
    --cc=maheshb@google.com \
    --cc=netdev@vger.kernel.org \
    --cc=tom@herbertland.com \
    --cc=weiwan@google.com \
    --cc=yoshfuji@linux-ipv6.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).