OpenVZ Forum


Home » Mailing lists » Devel » RE: cgroup: limit network bandwidth
RE: cgroup: limit network bandwidth [message #27074] Fri, 08 February 2008 07:52
den is currently offline  den
Messages: 494
Registered: December 2005
Senior Member
Hello, Andrea!

I have occasionally seen your patch on LWN (missed one in netdev@) and
have two words about. May be this is not too late. I have missed my
entire mailbox yesterday and have not followed the discussion. Pls
forgive me.

Rate-limiting message receive is nothing good at all. First, if we talk
about i386, the most important resource is low memory. There are no more
than 1 Gb of it. You suggest to keep it used more time than usual and
this usage will not reduce network traffic to the node for UDP cases.

For TCP the situation is slightly better. But not quite a big. For a
case of rather slow group with a bug traffic you will just eat 64kb *
Nsockets of receive buffers.

So, resource usage is just increased for a case. This is unfortunate. In
order to proper rate-limiting you need to calculate memory used
- dropping incoming packets early for UDP
- manage TCP window on the base of buffer memory used by the cgroup

Regards,
	Den

_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Previous Topic: [patch 0/3] clone64() and unshare64()
Next Topic: [PATCH][DOCUMENTATION] Minimal controller code for a quick start
Goto Forum:
  


Current Time: Thu Jul 03 10:56:57 GMT 2025

Total time taken to generate the page: 0.02812 seconds