As far as I understand in order to determine HN CPU load produced by certain CT it is enough to extract 'user', 'system' and 'uptime' values from /proc/vz/vestat twicely. Then the formula is ct_cpu_usage=100%*[(user_time_2 + system_time_2) - (user_time_1 + system_time_1)] / (uptime_2 - uptime_1)

I wonder if the formula above is correct and if it is then if it is valid for both cases: when cpulimit is set and unset? I guess it should be valid in both cases.

The second question is if there are any plans to implement HN CPU load produced by particular CT in some of vz* tools (e.g. in vzcpucheck providing some additional option and print one more column required info about HN CPU utilization by each container)?

Regards,
Nikolay.


[email protected] wrote on 13/05/11 16:58:
Tim, thanks a lot for reply and info!

Using all info I have now I will try to write what I need.

Thanks again!
Nikolay.

Tim Small wrote on 13/05/11 16:46:
I can't remember how I derived it, but you might want to take a look at
this munin plugin which I wrote a few months back:

http://exchange.munin-monitoring.org/plugins/openvzcpu/details

Cheers,

Tim.

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

Reply via email to