[libvirt] why is network i/o always zero?
黄亮
lancerhuang at 163.com
Thu May 19 01:21:23 UTC 2011
Well, it's a HVM guest.
So, should I install the paravirt driver if i need the statistcs?
2011-05-19
黄亮
发件人: Daniel P. Berrange
发送时间: 2011-05-13 17:44:29
收件人: 黄亮
抄送: libvir-list
主题: Re: [libvirt] why is network i/o always zero?
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 :|
__________ Information from ESET Smart Security, version of virus signature database 6105 (20110508) __________
The message was checked by ESET Smart Security.
http://www.eset.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110519/d7c70107/attachment-0001.htm>
More information about the libvir-list
mailing list