Re: [RFC] [PATCH] cgroup: limit network bandwidth

2008-01-23 Thread Andrea Righi
Paul Menage wrote: > On Jan 23, 2008 8:48 AM, Andrea Righi <[EMAIL PROTECTED]> wrote: >>> 1. Implementation of soft limits (limit on contention of resource) >>>gets harder >> Why? do you mean implementing a grace time when the soft-limit is >> exceeded? this could be done in cgroup_nl_throttle(

Re: [RFC] [PATCH] cgroup: limit network bandwidth

2008-01-23 Thread Paul Menage
On Jan 23, 2008 8:48 AM, Andrea Righi <[EMAIL PROTECTED]> wrote: > > > > 1. Implementation of soft limits (limit on contention of resource) > >gets harder > > Why? do you mean implementing a grace time when the soft-limit is > exceeded? this could be done in cgroup_nl_throttle() introducing 3 >

Re: [RFC] [PATCH] cgroup: limit network bandwidth

2008-01-23 Thread Andrea Righi
Balbir Singh wrote: > * Andrea Righi <[EMAIL PROTECTED]> [2008-01-23 10:09:28]: > >> Allow to limit the network bandwidth for specific process containers >> (cgroups) >> imposing additional delays in the sockets' sendmsg()/recvmsg() calls made by >> those processes that exceed the limits defined

Re: [RFC] [PATCH] cgroup: limit network bandwidth

2008-01-23 Thread Paul Menage
An approach that we've been experimenting with at Google is much simpler: - add a "network class id" subsystem, that lets you associated an id with each cgroup - propagate this id to sockets created by that cgroup, and from there to packets sent/received on that socket - add a new traffic filter

Re: [RFC] [PATCH] cgroup: limit network bandwidth

2008-01-23 Thread Balbir Singh
* Andrea Righi <[EMAIL PROTECTED]> [2008-01-23 10:09:28]: > Allow to limit the network bandwidth for specific process containers (cgroups) > imposing additional delays in the sockets' sendmsg()/recvmsg() calls made by > those processes that exceed the limits defined in the control group > filesys

[RFC] [PATCH] cgroup: limit network bandwidth

2008-01-23 Thread Andrea Righi
Allow to limit the network bandwidth for specific process containers (cgroups) imposing additional delays in the sockets' sendmsg()/recvmsg() calls made by those processes that exceed the limits defined in the control group filesystem. Example: # mkdir /dev/cgroup # mount -t cgroup -onet net /