OpenVZ Forum


Home » Mailing lists » Users » IO usage stat within containers
IO usage stat within containers [message #45559] Sun, 18 March 2012 16:17 Go to next message
Nilesh Bairagi is currently offline  Nilesh Bairagi
Messages: 2
Registered: March 2012
Junior Member
From: *parallels.com
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).

Regards
Nilesh
Re: IO usage stat within containers [message #45594 is a reply to message #45559] Wed, 21 March 2012 12:26 Go to previous message
Andrew Vagin is currently offline  Andrew Vagin
Messages: 28
Registered: November 2011
Junior Member
From: *parallels.com
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
>
>
>
Previous Topic: iptables LOG
Next Topic: Processes in D state when vzctl chkpnt suspend
Goto Forum:
  


Current Time: Mon Dec 18 18:16:21 GMT 2017