[libvirt-users] Need help of virDomainInterfaceStats

张章 zhang_zhang at live.com
Tue Sep 4 01:45:17 UTC 2012


hi,all
      I am using virDomainInterfaceStats to monitor the network flow of VM. But there is some strange things.
      the description of vnet in xml is:
      
      <interface type='bridge'>
      <mac address='00:16:3e:5d:aa:a8'/>
      <source bridge='br0'/>
      <target dev='vnet0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
      </interface>

      but when I call virDomainInterfaceStats to get network flow from vnet0, I get some wrong data: 

      rx: 139972719907412      tx:7311107385599290735
      after 2 seconds, I call it again and I get:
      rx: 31                                tx:7311107385599290735
      another 2 seconds:  
      rx:155                               tx:7311107385599290735
      and...
      rx:110                               tx:7311107385599290735

      (rx:receive, tx:transmit)
     
       what do these data mean? Why there is no difference in tx at all? And why the difference in rx is so weird?
       Many thanks!

regards
       zhangzhang
     

      

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20120904/eedb4ae4/attachment.htm>


More information about the libvirt-users mailing list