On 03/18/2012 08:17 PM, Nilesh Bairagi wrote:
Hello,
I am trying to get IO stat for each container.
Like read requests, writes requests, %cpu utilized for IO etc.

The command iostat -d, works but does not print any values.
Does anybody have any idea how to get such values (similar to iostat).
It should work in the 2.6.32-rhel6 kernel http://download.openvz.org/kernel/branches/rhel6-2.6.32/

CT-1000-bash-4.1# uname -a
Linux pluto 2.6.32-042stab049.7 #1 SMP Thu Mar 1 18:03:05 MSK 2012 x86_64 x86_64 x86_64 GNU/Linux
CT-1000-bash-4.1# vmstat 1
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu----- 0 0 0 2027552 0 35852 0 0 684 0 0 8443 1 2 95 2 0 0 0 0 2019708 0 37712 0 0 292 0 0 5069 1 1 99 0 0 0 1 0 1998308 0 43304 0 0 1184 0 0 7656 1 2 87 10 0 1 0 0 1978704 0 51764 0 0 1620 0 0 9429 1 2 86 10 0

And you can find some info in /proc/bc/VEID/ioacct

[root@boar ~]# cat /proc/bc/1000/ioacct
    read                              83648512
    write                               208896
    dirty                               241664
    cancel                               32768
    missed                                   0
    syncs_total                              0
    fsyncs_total                             1
    fdatasyncs_total                         0
    range_syncs_total                        0
    syncs_active                             0
    fsyncs_active                            0
    fdatasyncs_active                        0
    range_syncs_active                       0
    io_pbs                                   0

Regards
Nilesh



_______________________________________________
Users mailing list
[email protected]
https://openvz.org/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
https://openvz.org/mailman/listinfo/users

Reply via email to