[libvirt] why is network i/o always zero?
Daniel P. Berrange
berrange at redhat.com
Fri May 13 09:44:22 UTC 2011
On Wed, May 11, 2011 at 09:32:53PM +0800, 黄亮 wrote:
> hi all
>
> I'm using Xen on CentOS.I wanna monitor the network activity of a domain. When I use Domain.InterfaceStats( ... ), which is the C# binding of virDomainInterfaceStats, it returns -1.
>
> I wonder if the function is not supported by Xen. So I using "domifstat", and I get
>
> vif1.0 rx_bytes 0
> vif1.0 rx_packets 0
> vif1.0 rx_errs 0
> vif1.0 rx_drop 0
> vif1.0 tx_bytes 0
> vif1.0 tx_packets 0
> vif1.0 tx_errs 0
> vif1.0 tx_drop 0
>
> but it never change even when I use that domain to ping another.
You don't mention if it is a paravirt or HVM guest. If it is a
HVM guest, then you don't get any statistics, unless the paravirt
drivers are installed.
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list
mailing list