OpenVZ Forum


Home » General » Support » Process in OpenVZ. (Which ContaINER)
Re: Process in OpenVZ. [message #43676 is a reply to message #43635] Thu, 06 October 2011 08:44 Go to previous message
Rene is currently offline  Rene
Messages: 40
Registered: September 2006
Member
Yes this is on 2.6.32-042stab037.1, Scientific Linux 6.1.

> Anyway, looks like vzprocps would need a bit of love & attention

Absolutely! I can't understand how this tool has not been updated for years. It should be a cornerstone in managing an OpenVZ server!

Another tool I REALLY miss from Virtuozzo is vzstat or something similar showing a list with the load of each container on a hardware node, like below. Actually it could probably be improved a lot, but a tool that would just show the important key values like CPU, memory, IO, loadavg for starters would be really cool.

 11:38am, up 382 days,  5:21,  1 user, load average: 3.59, 3.87, 4.35
CTNum 24, procs 1699: R   4, S 1687, D   5, Z   3, T   0, X   0
CPU [ OK ]: CTs 100%, CT0   0%, user  42%, sys  58%, idle   0%, lat(ms) 371/49
Mem [ OK ]: total 12160MB, free 465MB/5MB (low/high), lat(ms) 1/0
Swap [ OK ]: tot 3961MB, free 3944MB, in 0.000MB/s, out 0.000MB/s
Net [ OK ]: tot: in  0.000MB/s    0pkt/s, out  0.000MB/s    0pkt/s
Disks [ OK ]: in 0.000MB/s, out 147.703MB/s

  CTID ST    %VM     %KM        PROC     CPU     SOCK FCNT MLAT IP
     1 OK 1.2/-   0.2/-     0/89/MAX 0.01/2.5  68/MAX    0    3 192.168.40.239
   303 OK 2.3/-   0.5/-     0/75/MAX 3.05/3.3  78/MAX    0   11 xx.yy.251.73
   305 OK 2.3/-   0.9/-     2/87/MAX 19.0/5.6 109/MAX    0  371 xx.yy.158.189
   307 OK 2.5/-   0.3/-     0/36/MAX 0.00/3.3  19/MAX    0    0 xx.yy.251.70
   310 OK 0.5/-   0.1/-     0/31/MAX 0.00/4.4  18/MAX    0    1 xx.yy.158.185
   318 OK 1.8/-   0.4/-     0/62/MAX 11.9/4.4  70/MAX    0    1 xx.yy.144.18
   401 OK 4.6/-   0.5/-     0/83/MAX 0.07/5.6  65/MAX    0    3 xx.yy.216.146
   402 OK 1.2/-   0.2/-     0/45/MAX 0.01/4.4  22/MAX    0    1 xx.yy.144.23
   403 OK 1.2/-   0.3/-     0/65/MAX 0.03/3.3  58/MAX    0    1 xx.yy.144.29
   406 OK 3.7/-   0.4/-     0/92/MAX 0.02/5.6  95/MAX    0    1 xx.yy.144.27
   407 OK 0.9/-   0.3/-     0/69/MAX 0.03/3.3  54/MAX    0    1 xx.yy.144.15
   409 OK 2.7/-   0.3/-     0/74/MAX 0.12/4.4  55/MAX    0    3 xx.yy.144.25
   410 OK 1.5/-   0.3/-     0/57/MAX 0.02/3.3  53/MAX    0    1 xx.yy.144.7
   414 OK 2.0/-   0.3/-     0/57/MAX 0.00/4.4  43/MAX    0    1 xx.yy.251.66
   417 OK 1.3/-   0.3/-     0/55/MAX 0.00/4.4  49/MAX    0   37 xx.yy.144.12
   418 OK 0.5/-   0.1/-     0/36/MAX 0.00/2.1  27/MAX    0    0 xx.yy.158.163
   423 OK 4.1/-   0.5/-    0/120/MAX 0.02/5.6 144/MAX    0    4 xx.yy.144.28
   425 OK 1.3/-   0.2/-     0/43/MAX 0.02/2.1  44/MAX    0    1 xx.yy.144.4
   426 OK 0.9/-   0.3/-     0/64/MAX 0.02/2.1  46/MAX    0    0 xx.yy.144.6
   427 OK 1.7/-   0.3/-     0/72/MAX 0.00/4.4  57/MAX    0    1 xx.yy.158.173
   428 OK 2.2/-   0.3/-     0/67/MAX 0.61/5.6  50/MAX    0    6 xx.yy.216.147
   430 OK 0.3/-   0.2/-     0/37/MAX 0.00/4.4  22/MAX    0    0 xx.yy.158.188
   431 OK 0.1/-   0.1/-     0/19/MAX 0.00/2.1  13/MAX    0    1 xx.yy.251.75
   432 OK 1.5/-   0.3/-     0/59/MAX 0.00/8.9  82/MAX    0    7 xx.yy.158.180


I hacked up this quick-n-dirty script that produce a usable output, even if it ain't too pretty:

#
clear
while true
do
tput cup 0 0
top -cbn1 | head -12
echo
for x in `vzlist -o veid -H`; do /bin/echo "$x: `vzctl exec $x cat /proc/loadavg `"; done
echo
iostat -dmN | grep -v ^sd
sleep 10
done


You might need to change the iostat line depending on your disks and configuration.

[Updated on: Thu, 06 October 2011 13:00]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Tasks hanging cause node to reboot/stall
Next Topic: Kernel upgrade from 2.6.18 to 2.6.32
Goto Forum:
  


Current Time: Mon Apr 22 09:24:27 GMT 2024

Total time taken to generate the page: 0.01187 seconds