<div dir="ltr">Hi Michal,<div><br></div><div style>Thanks for the analysis, please find the interface details of the dumpxml $dom</div><div style><br></div><div style><div>  <interface type='network'></div><div>
      <mac address='52:54:00:4f:8d:cd'/></div><div>      <source network='default'/></div><div>      <target dev='vnet0'/></div><div>      <bandwidth></div><div>        <inbound average='10'/></div>
<div>      </bandwidth></div><div>      <alias name='net0'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/></div>
<div>    </interface></div><div><br></div><div style>Regards,</div><div style>Vikrant</div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 31, 2013 at 2:58 PM, Michal Privoznik <span dir="ltr"><<a href="mailto:mprivozn@redhat.com" target="_blank">mprivozn@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 31.05.2013 07:05, vikrant verma wrote:<br>
> Hello Michal,<br>
><br>
</div><div class="im">> Throttling is working now after setting inbound.average = 10  (i have<br>
> set other values to 0 )<br>
> But i am observing an inconsistent behavior in the observed throttling<br>
> bandwidth<br>
><br>
> when i set  inbound.average = 10 , i observed bandwidth of 24 kbps<br>
> when i set  inbound.average = 100 , i observed bandwidth of 186 kbps<br>
> when i set  inbound.average = 1024 , i observed bandwidth of 2MBps<br>
><br>
> i measured the above by doing scp of a 4MB file from host to VM. Is this<br>
> behavior is expected?<br>
><br>
<br>
</div>I don't think so. So your other values are set to 0? Can you share the actual <bandwidth/> element from 'virsh dumxpl $dom'?<br>
<br>
However, I might be hitting the same issue:<br>
<br>
# tc -s class show dev vnet0<br>
class htb 1:1 root leaf 2: prio 0 rate 80000bit ceil 80000bit burst 1600b cburst 1600b<br>
 Sent 5146972 bytes 3540 pkt (dropped 0, overlimits 0 requeues 0)<br>
 rate 536752bit 45pps backlog 0b 4p requeues 0<br>
 lended: 359 borrowed: 0 giants: 0<br>
 tokens: -937499999 ctokens: -937499999<br>
<br>
class sfq 2:36c parent 2:<br>
 (dropped 0, overlimits 0 requeues 0)<br>
 backlog 103018b 4p requeues 0<br>
 allot 1520<br>
<br>
We can see both rate and ceil being 80kbit however the current rate being 536kbit. I wonder what's going on and how to fix this.<br>
<br>
> Regards,<br>
> Vikrant<br>
<span class="HOEnZb"><font color="#888888"><br>
Michal<br>
</font></span></blockquote></div><br></div>