Thank you very much! Using blktool can check the sector size.
在 2013-10-17 11:10:25,"Wei Liu" <wei.liu2@xxxxxxxxxx> 写道:
>On Thu, Oct 17, 2013 at 09:00:33AM +0800, 张伟 wrote:
>> Hi all,
>>
>>
>> Now I use xentop to get disk statistical information.
>> NAME STATE CPU(sec) CPU(%) MEM(k) MEM(%) MAXMEM(k) MAXMEM(%) VCPUS NETS NETTX(k) NETRX(k) VBDS VBD_OO VBD_RD VBD_WR VBD_RSECT VBD_WSECT SSID
>> Domain-0 -----r 96233 0.7 3902464 23.3 no limit n/a 12 0 0 0 0 0 0 0 0 0 0
>> slave3 --b--- 85587 0.0 4194304 25.1 4194304 25.1 2 1 306221931 295316847 2 0 2032754 13732515 98294764 1149168400 0
>> slave4 --b--- 276 0.0 4194304 25.1 4194304 25.1 2 1 19094 7796 2 0 19290 25627 487620 357648 0
>> wbsrvcs-60 --b--- 12 0.0 1048576 6.3 2097152 12.5 2 1 1576 8 2 0 2460 6237 109949 83874 0
>> wbsrvcs-84 --b--- 12 0.0 1048576 6.3 2097152 12.5 2 1 1573 8 2 0 2433 6688 109973 88770 0
>>
>>
>> For the red part, I need to change the size to MB or KB.
>>
>>
>> Just now, I check the xentop code, xentop gets the related information from
>> /sys/devices/vbd-29-51713/statistics/rd_sect or /sys/devices/vbd-29-51713/statistics/wr_sect files.
>>
>>
>> I do not know how to change these number to MB or KB.
>>
>
>I think you can get the sector size from xenstore.
>
>Wei.
>
>_______________________________________________
>Xen-users mailing list
>Xen-users@xxxxxxxxxxxxx
>http://lists.xen.org/xen-users