WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Vif rate limiting

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Vif rate limiting
From: Dmitry Lohansky <d.lohansky@xxxxxxxxxx>
Date: Thu, 9 Sep 2010 17:56:11 +0400
Delivery-date: Thu, 09 Sep 2010 06:58:14 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxx | www.scalaxy.ru
Mob: +7 985 724 15 42

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>