kvzstat - command line tool for measuring CPU and memory statistics [message #23447] |
Fri, 16 November 2007 19:48 |
KoolK
Messages: 8 Registered: September 2007
|
Junior Member |
|
|
Hi all,
I have created a command line tool, which gives CPU and memory statistics for each VE in hardware node.It is available at
http://sourceforge.net/projects/kvzstat/
The output looks like:
CPU Usage:
VE ID USer % Nice % System % Idle %
2000 0.00 0.00 0.00 100.00
1001 99.49 0.00 0.51 0.00
Memory Usage:
VE ID nonguar guar kernel RAM SWAP used(%) free(%) failcount
2000 192.00MB 192.00MB 0.87MB 7.25MB 0.00MB 7.25MB(3.78%) 184.75MB(96.22%) 0
1001 192.00MB 192.00MB 0.95MB 7.34MB 0.00MB 7.34MB(3.82%) 184.66MB(96.18%) 0
Usage:
kvzstat -d delay -n iteration -f filename -v veid -m( for only memory) -c( for only cpu) -s ( for summary)
Have a try and let me know what improvement can be done to make it more useful.
I wanted to add average cpu latency but I get all latency values in my /proc/vz/vestat file as 0. I am not able to find the way to get non zero values of latency and numscheud fields.
next thing which I have thought of is to integrate it with GNUPlot to give output in graph format.
All suggestions are welcome....
Thanks,
Khyati
|
|
|
|
|
|
|