[Libvir] [PATCH] Block device and network stats (version 2)

Richard W.M. Jones rjones at redhat.com
Wed Aug 29 12:10:43 UTC 2007


Daniel P. Berrange wrote:
[about requests vs sectors]
> Yes, we need both. If we can't find actual request sizes for Xen, we should 
> make a note and see if its possible add this to future Xen kernel backend
> drivers.

I notice that in the version of Xen in Fedora 7, we now have the 
following statistics files, although for partition-backed paravirt 
domains only:

# ls /sys/devices/xen-backend/vbd-6-51712/statistics/
br_req  oo_req  rd_req  rd_sect  wr_req  wr_sect

rd_sect / wr_sect contain sectors, so if we can assume 512 bytes/sector 
then we could fill in the bytes fields.

The Xen block device stats collection code needs some work anyway in 
order to support hdX devices and fullvirt domains (where the statistics 
files are called tap_XX_req etc.)

Rich.

-- 
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20070829/baabf1cf/attachment-0001.bin>


More information about the libvir-list mailing list