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-devel

RE: [Xen-devel] Vif rate limiting

To: "Keir Fraser" <keir@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] Vif rate limiting
From: "Padala, Pradeep" <pradeep.padala@xxxxxx>
Date: Mon, 5 Mar 2007 16:34:41 -0000
Delivery-date: Mon, 05 Mar 2007 08:33:58 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C211F26E.A9C3%keir@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <08CA2245AFCF444DB3AC415E47CC40AF85255B@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C211F26E.A9C3%keir@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcdfObbXJry5atpKQZeip1ndOLCSrgAAZtY7AADqybAAAJh/MAAAXEfQ
Thread-topic: [Xen-devel] Vif rate limiting
> > This is the config line I am using.
> > 
> > vif = ['ip=15.25.117.44', 'rate=10MB/s']
> 
> This will rate-limit to 10 megabytes per second, not 10 
> megabits per second.
> Is this what you meant? Otherwise you should use 'rate=10Mb/s'.

Yes, I meant 10Mbytes/sec, since we have 1gbit interfaces. I have an
apache server serving a 1G file, and I download the file from another
machine, that is on the same enclosure. So, the network is very fast.

I see an output like below. I posted a message earlier
(http://lists.xensource.com/archives/html/xen-devel/2007-03/msg00026.htm
l) describing similar problems with tc as well. I have tried this setup
in a separate set of machines connected with 1gbit interfaces with same
results. Any help is greatly apperciated.

[root@acts-03 ~]# wget --no-proxy http://15.25.117.44/data1G.dat
--08:23:43--  http://15.25.117.44/data1G.dat
           => `data1G.dat'
Connecting to 15.25.117.44:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,073,741,824 (1.0G) [text/plain]

100%[===========================>] 1,073,741,824  112.12M/s    ETA 00:00

08:23:53 (107.39 MB/s) - `data1G.dat' saved [1073741824/1073741824] 

The full configuration of the VM is below. I am using routed networking.

kernel = '/boot/vmlinuz-2.6-xen'
vif = ['ip=15.25.117.44', 'rate=10MB/s']
ip = '15.25.117.44'
name = 'hperf1'
#extra = 'ramdisk_size=524288'
hostname = 'hperf1'
netmask = '255.255.255.0'
user = 'padalap'
memory=1000
disk = ['file:/root/xen/vm1_8g.img,sda1,w',
'file:/root/xen/vm1.swp,sda2,w']
root = '/dev/sda1 ro'
gateway = '15.25.117.42'
restart = 'never'

Pradeep

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

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