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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrea Righi <righiandr@...>, Naveen Gupta <ngupta@...>, Paul Menage <menage@...>, LKML <linux-kernel@...>, David Miller <davem@...>
Date: Wednesday, January 23, 2008 - 12:48 pm

Balbir Singh wrote:

Why? do you mean implementing a grace time when the soft-limit is
exceeded? this could be done in cgroup_nl_throttle() introducing 3 
additional attributes to struct netlimit (i.e. hard_limit,
last_time_exceeded grace_time) and perform something like:
...
	if ((current_rate > hard_limit) ||
	    time_after(jiffies, last_time_exceeded + grace_time))
			schedule_timeout(sleep);
...


Yes, the integration with iptables (as Paul said), and traffic shaping
rules would be absolutely the right way(tm) in perspective. I was just
proposing a possible simple API to implement the limiting stuff.

-Andrea
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] [PATCH] cgroup: limit network bandwidth, Andrea Righi, (Wed Jan 23, 5:09 am)
Re: [RFC] [PATCH] cgroup: limit network bandwidth, Paul Menage, (Wed Jan 23, 5:54 am)
Re: [RFC] [PATCH] cgroup: limit network bandwidth, Balbir Singh, (Wed Jan 23, 5:24 am)
Re: [RFC] [PATCH] cgroup: limit network bandwidth, Andrea Righi, (Wed Jan 23, 12:48 pm)
Re: [RFC] [PATCH] cgroup: limit network bandwidth, Paul Menage, (Wed Jan 23, 12:59 pm)
Re: [RFC] [PATCH] cgroup: limit network bandwidth, Andrea Righi, (Wed Jan 23, 1:48 pm)