<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
On 08/10/2011 02:55 AM, Upendra Moturi wrote:<br>
<br>
Hi,<br>
<br>
does this patch solve your problem? I am setting the MTU to fixed
2kb. Doing tests with scp seems to indicate that this improved the
situation -- at least for me.<br>
<br>
Stefan<br>
<br>
Signed-off-by: Stefan Berger <a class="moz-txt-link-rfc2396E" href="mailto:stefanb@linux.vnet.ibm.com"><stefanb@linux.vnet.ibm.com></a><br>
<br>
<tt>---<br>
src/util/network.c | 16 ++++++++--------<br>
1 file changed, 8 insertions(+), 8 deletions(-)<br>
<br>
Index: libvirt-acl/src/util/network.c<br>
===================================================================<br>
--- libvirt-acl.orig/src/util/network.c<br>
+++ libvirt-acl/src/util/network.c<br>
@@ -1156,8 +1156,8 @@ virBandwidthEnable(virBandwidthPtr bandw<br>
<br>
virCommandFree(cmd);<br>
cmd = virCommandNew(TC);<br>
- virCommandAddArgList(cmd,"class", "add", "dev",
iface, "parent",<br>
- "1:", "classid", "1:1", "htb",
NULL);<br>
+ virCommandAddArgList(cmd,"class", "add", "dev", iface,
"parent",<br>
+ "1:", "classid", "1:1", "htb",
NULL);<br>
virCommandAddArgList(cmd, "rate", average, NULL);<br>
<br>
if (peak)<br>
@@ -1170,9 +1170,9 @@ virBandwidthEnable(virBandwidthPtr bandw<br>
<br>
virCommandFree(cmd);<br>
cmd = virCommandNew(TC);<br>
- virCommandAddArgList(cmd,"filter", "add", "dev",
iface, "parent",<br>
- "1:0", "protocol", "ip",
"handle", "1", "fw",<br>
- "flowid", "1", NULL);<br>
+ virCommandAddArgList(cmd,"filter", "add", "dev", iface,
"parent",<br>
+ "1:0", "protocol", "ip", "handle",
"1", "fw",<br>
+ "flowid", "1", NULL);<br>
<br>
if (virCommandRun(cmd, NULL) < 0)<br>
goto cleanup;<br>
@@ -1191,8 +1191,8 @@ virBandwidthEnable(virBandwidthPtr bandw<br>
<br>
virCommandFree(cmd);<br>
cmd = virCommandNew(TC);<br>
- virCommandAddArgList(cmd, "qdisc", "add", "dev",
iface,<br>
- "ingress", NULL);<br>
+ virCommandAddArgList(cmd, "qdisc", "add", "dev", iface,<br>
+ "ingress", NULL);<br>
<br>
if (virCommandRun(cmd, NULL) < 0)<br>
goto cleanup;<br>
@@ -1202,7 +1202,7 @@ virBandwidthEnable(virBandwidthPtr bandw<br>
virCommandAddArgList(cmd, "filter", "add", "dev", iface,
"parent",<br>
"ffff:", "protocol", "ip", "u32",
"match", "ip",<br>
"src", "0.0.0.0/0", "police",
"rate", average,<br>
- "burst", burst, "mtu", burst,
"drop", "flowid",<br>
+ "burst", burst, "mtu", "2kb",
"drop", "flowid",<br>
":1", NULL);<br>
<br>
if (virCommandRun(cmd, NULL) < 0)</tt><br>
<br>
<br>
<blockquote
cite="mid:CAHbZLqTESwzSk9PLHizLN7SUKH2agMLM9WCVi9Z=xGNxLQe2Tw@mail.gmail.com"
type="cite">small correction<br>
it is not mbps ,it is MBps<br>
<br>
<div class="gmail_quote">On Wed, Aug 10, 2011 at 12:06 PM, Upendra
Moturi <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:upendra.m@hexagrid.com">upendra.m@hexagrid.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:
1ex;">Hi<br>
<br>
I am using 0.9.4 version of libvirt and want to limit
bandwidth.<br>
I installed libvirt on ubuntu 11.04 using libvirt source.<br>
<br>
For this i am using the QOS configuration<br>
<br>
<pre><devices>
<interface type='network'>
<source network='default'/>
<target dev='vnet0'/>
<b><bandwidth>
<inbound average='1000' peak='5000' burst='1024'/>
<outbound average='128' peak='256' burst='256'/>
</bandwidth></b>
</interface>
</pre>
<br>
Here the inbound limit is working properly but the outbound is
limiting but not with values which is give<br>
<br>
Here are the scenarios i tested and the results<br>
<br>
when i gave average as 2048 --- it is limiting with 600 -- 700
kb<br>
<br>
average result<br>
=====================<br>
2048 (2mpbs) 600-700 kb<br>
4096 (4mbps) 1 MB/s<br>
10240 (10mbps) 2-3 MB/s<br clear="all">
12288 (12 mbps) 3-4 MB/s<br>
20480 (20 mbps) 16-18 MB/s<br>
<br>
Is this the expected behavior or some thing is missing<br>
If this is the expected behavior ,then in what ratio it is
limiting.<br>
<br>
Please help me<br>
Thanks in advance.<br>
<font color="#888888"><br>
-- <br>
Thanks and Regards,<br>
Upendra.M<br>
</font></blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Thanks and Regards,<br>
Upendra.M<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
--
libvir-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:libvir-list@redhat.com">libvir-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/libvir-list">https://www.redhat.com/mailman/listinfo/libvir-list</a></pre>
</blockquote>
<br>
</body>
</html>