<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:΢ÈíÑźÚ
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
hi,all<br> I am using <span>virDomainInterfaceStats to monitor the network flow of VM. But there is some strange things.<br> the description of vnet in xml is:<br> <br> <interface type='bridge'><br> <mac address='00:16:3e:5d:aa:a8'/><br> <source bridge='br0'/><br> <target dev='vnet0'/><br> <model type='virtio'/><br> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/><br> </interface><br><br> but when I call virDomainInterfaceStats to get network flow from vnet0, I get some wrong data: <br><br> rx: 139972719907412 tx:7311107385599290!
735<br> after 2 seconds, I call it again and I get:<br> rx: 31 tx:7311107385599290735<br> another 2 seconds: <br> rx:155 tx:7311107385599290735<br> and...<br> rx:110 tx:7311107385599290735<br><br> (rx:receive, tx:transmit)<br>!
<br> &nb!
sp; what do these data mean? Why there is no difference in tx at all? And why the difference in rx is so weird?<br> Many thanks!<br><br>regards<br> zhangzhang<br> <br><br> <br><br></span> </div></body>
</html>