
Hi Michal, Thanks for the analysis, please find the interface details of the dumpxml $dom <interface type='network'> <mac address='52:54:00:4f:8d:cd'/> <source network='default'/> <target dev='vnet0'/> <bandwidth> <inbound average='10'/> </bandwidth> <alias name='net0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> Regards, Vikrant On Fri, May 31, 2013 at 2:58 PM, Michal Privoznik <mprivozn@redhat.com>wrote:
On 31.05.2013 07:05, vikrant verma wrote:
Hello Michal,
Throttling is working now after setting inbound.average = 10 (i have set other values to 0 ) But i am observing an inconsistent behavior in the observed throttling bandwidth
when i set inbound.average = 10 , i observed bandwidth of 24 kbps when i set inbound.average = 100 , i observed bandwidth of 186 kbps when i set inbound.average = 1024 , i observed bandwidth of 2MBps
i measured the above by doing scp of a 4MB file from host to VM. Is this behavior is expected?
I don't think so. So your other values are set to 0? Can you share the actual <bandwidth/> element from 'virsh dumxpl $dom'?
However, I might be hitting the same issue:
# tc -s class show dev vnet0 class htb 1:1 root leaf 2: prio 0 rate 80000bit ceil 80000bit burst 1600b cburst 1600b Sent 5146972 bytes 3540 pkt (dropped 0, overlimits 0 requeues 0) rate 536752bit 45pps backlog 0b 4p requeues 0 lended: 359 borrowed: 0 giants: 0 tokens: -937499999 ctokens: -937499999
class sfq 2:36c parent 2: (dropped 0, overlimits 0 requeues 0) backlog 103018b 4p requeues 0 allot 1520
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.
Regards, Vikrant
Michal