Trygve Sanne Hardersen wrote:> Not really, limiting incoming traffic is much harder. With TCP/IP it''s > easy to control how much is sent, more difficult to control how much > is received. However most web sites only care about the outgoing > bandwidth so it''s probably sufficient in most cases.There is a way to limit the incoming traffic for domU in dom0 on vif with tc. For example: dom0:~ # tc qdisc add dev vif1.0 root handle 1: htb default 1 dom0:~ # tc class add dev vif1.0 parent 1: classid 1:1 htb rate 5mbit> Trygve> On Mon, Apr 19, 2010 at 3:35 PM, Chris <tknchris@xxxxxxxxx> wrote: >> Strange that it only works one direction >> >> Sent from my iPhone >>-- Dmitry Lohansky CEO Oversun-Scalaxy ------------------------------------------------------------›>}>---------- d.lohansky@scalaxy.ru | www.scalaxy.ru Mob: +7 985 724 15 42 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Will that work with XCP if you migrate the VM to another node in the pool? Or does that need to be set up in the dom0 of the physical node after the VM is moved? -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Dmitry Lohansky Sent: Thursday, September 09, 2010 8:56 AM To: xen-users@lists.xensource.com Subject: Re: [Xen-users] Vif rate limiting Trygve Sanne Hardersen wrote:> Not really, limiting incoming traffic is much harder. With TCP/IP it''s > easy to control how much is sent, more difficult to control how much > is received. However most web sites only care about the outgoing > bandwidth so it''s probably sufficient in most cases.There is a way to limit the incoming traffic for domU in dom0 on vif with tc. For example: dom0:~ # tc qdisc add dev vif1.0 root handle 1: htb default 1 dom0:~ # tc class add dev vif1.0 parent 1: classid 1:1 htb rate 5mbit> Trygve> On Mon, Apr 19, 2010 at 3:35 PM, Chris <tknchris@xxxxxxxxx> wrote: >> Strange that it only works one direction >> >> Sent from my iPhone >>-- Dmitry Lohansky CEO Oversun-Scalaxy ------------------------------------------------------------>>}>---------- d.lohansky@scalaxy.ru | www.scalaxy.ru Mob: +7 985 724 15 42 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ofcourse, the second way. On 9 September 2010 23:16, <admin@xenhive.com> wrote:> Will that work with XCP if you migrate the VM to another node in the pool? > Or does that need to be set up in the dom0 of the physical node after the VM > is moved? > > -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Dmitry Lohansky > Sent: Thursday, September 09, 2010 8:56 AM > To: xen-users@lists.xensource.com > Subject: Re: [Xen-users] Vif rate limiting > > Trygve Sanne Hardersen wrote: > >> Not really, limiting incoming traffic is much harder. With TCP/IP it''s >> easy to control how much is sent, more difficult to control how much >> is received. However most web sites only care about the outgoing >> bandwidth so it''s probably sufficient in most cases. > > There is a way to limit the incoming traffic for domU in dom0 on vif with > tc. > > For example: > > dom0:~ # tc qdisc add dev vif1.0 root handle 1: htb default 1 > dom0:~ # tc class add dev vif1.0 parent 1: classid 1:1 htb rate 5mbit > >> Trygve > >> On Mon, Apr 19, 2010 at 3:35 PM, Chris <tknchris@xxxxxxxxx> wrote: >>> Strange that it only works one direction >>> >>> Sent from my iPhone >>> > > -- > Dmitry Lohansky > CEO Oversun-Scalaxy > ------------------------------------------------------------>>}>---------- > d.lohansky@scalaxy.ru | www.scalaxy.ru > Mob: +7 985 724 15 42 > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- Dmitry Lohansky CEO Oversun-Scalaxy ------------------------------------------------------------>>}>---------- d.lohansky@scalaxy.ru | www.scalaxy.ru Mob: +7 985 724 15 42 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users