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

[Xen-users] Issue using tc tbf with inter-vm transfers

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Issue using tc tbf with inter-vm transfers
From: Nathan March <nathan@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 30 Aug 2010 16:38:48 -0700
Comment: DomainKeys? See http://domainkeys.sourceforge.net/
Delivery-date: Mon, 30 Aug 2010 16:40:12 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=gossamer-threads.com; h= message-id:date:from:mime-version:to:subject:content-type :content-transfer-encoding; s=mail; bh=fJ9pR7EQIpYBv3m4OJNv6+ksO rA=; b=QNt5YCKhrrEfr5x9K8zO0Y1wkg3gQRzdI+MxqN9XpgxFUJP1lT5gRZ2rl 3/ANRwj5e5TSMhEBqRIgYkDk1QTQ4XNBxkxuHlsVIizWZzNAzW4dNtX1p2Fwn4WL QrjdC0MQ6EfFzJeWzBqcOavz56akf1zcmsqYbhc4PMGoDRLcsg=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=mail; d=gossamer-threads.com; b=ZJlI8O9puApkj6E70TSbu1pd69rDFBSCCQwI9qVgK99WQG/qKPeY8qAqd6jDlkmJO8+pKO1OP9RJgLmG37Zfi017qlmItTzJKSr10Qp+bgoigjTSfsQpqekRJBzZN2swxIqQ4xYFINhOXgbd7F9wyvRSBhXyhn+ay+Y8oBKF3aA=; h=Received:X-AntiVirus:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding;
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
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2
 Hi All,

Trying to setup packet shaping, everything works great for this one rule:

tc qdisc add dev vif1.0 root tbf rate 10Mbit burst 1Mb latency 20ms

Should restrict incoming traffic vif1.0 to 10mbit, pretty straightforward. Works great when downloading from another server and properly caps it off at 1.2MB/s. If I try a transfer from another vm on the same dom0 however, it tops out at ~ 32KB/s. Adjusting values seems to have no relation on speed, it always ends up at the same ~32KB/s.

Vif1.0 in this case is the limited vm, vif2.0 is unlimited. There are no tc/iptables rules in place here asides from the one listed above.

xen1 ~ # tc -s qdisc show dev vif1.0
qdisc tbf 801b: root rate 10000Kbit burst 1024Kb lat 20.0ms
 Sent 42399193 bytes 29470 pkt (dropped 666, overlimits 51352 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0

xen1 ~ # tc -s qdisc show dev vif2.0
qdisc pfifo_fast 0: root bands 3 priomap  1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
 Sent 262594 bytes 3063 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0

Normally I'd assume it's something I'm doing with wrong TC, except for the fact it works fine with external servers as well as VM's on a different dom0. Anyone have any insight?

- Nathan

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Issue using tc tbf with inter-vm transfers, Nathan March <=