[Lxc-users] does lxc support controlling network io?

Fajar A. Nugraha list at fajar.net
Tue Mar 20 09:15:13 UTC 2012


2012/3/20 陈竞 <cj.magina at gmail.com>:
> lxc can support control block io, cpu and memory, can lxc  support
> controlling network io?

If by "control" you mean "throttle the bandwidth", then AFAIK no. As
in, no, cgroups (and thus lxc) can't throttle network I/O.

However since the most common implementation is using veth + bridge,
you should be able to implement traffic shaping using things like "tc"
(or with the help of frontend script "wondershaper") on veth interface
in the host side (i.e. the one you set using lxc.network.veth.pair).

It's not perfect, but a good start.

-- 
Fajar




More information about the lxc-users mailing list