OpenVZ Forum


Home » Mailing lists » Users » how to get the current HN CPU utilization by particular CT
Re: how to get the current HN CPU utilization by particular CT [message #42718 is a reply to message #42711] Sat, 14 May 2011 08:27 Go to previous messageGo to previous message
knawnd is currently offline  knawnd
Messages: 27
Registered: April 2011
Junior Member
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.


knawnd@gmail.com 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/detai ls
>>
>> Cheers,
>>
>> Tim.
>>
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: possible container states/statuses
Next Topic: RHEL6-based 2.6.32 now marked as stable?
Goto Forum:
  


Current Time: Thu Jun 19 09:09:13 GMT 2025

Total time taken to generate the page: 0.02861 seconds