Skip to contentSkip to conversation

What is the standard procedure for CPU usage calculation for "Two" Core Dom0..?

DISCUSSION kushal waikar 2 participants 2 messages Feb 25, 2009 – Feb 26, 2009

lore
Share & tools
lore
#0 lore raw

Hi,
    I am using "XenAPI -1.0.6" ... I have "Dual Core" machine on which I am working..I am trying  to fetch Dom-0 CPU utilization using XenAPI RPC "get_utilisation()"(class host cpu)....
    Since my machine is dual core this function is yielding me utilization of Core 1 & Core 2 separately(e.g Core ONE - 0.4241242424  & Core TWO - 0.3254842450)..I just want to calculate the overall CPU utilization in percentage for the Dom-0...What is the standard procedure in this case to calculate overall CPU utilization in percentage by considering above two CPU utilizations for each core ?

Thanks,
Kushal Waikar
[email protected]

Get rid of Add-Ons in your email ID. Get [email protected]. Sign up now! http://in.promos.yahoo.com/address

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

I think it's wrong to implement the API to return the percentage. if return the actual usage, it should be better.

see: http://lists.xensource.com/archives/html/xen-devel/2008-09/msg00069.html

thanks,

zhigang

Quoted 27 lines · kushal waikar

Hi,
I am using "XenAPI -1.0.6" ... I have "Dual Core" machine on which I
am working..I am trying to fetch Dom-0 CPU utilization using XenAPI RPC "get_utilisation()"(class host cpu)....
Since my machine is dual core this function is yielding me
utilization of Core 1 & Core 2 separately(e.g Core ONE - 0.4241242424 & Core TWO - 0.3254842450)..I just want to calculate the overall CPU utilization in percentage for the Dom-0...What is the standard procedure in this case to calculate overall CPU utilization in percentage by considering above two CPU utilizations for each core ?

Thanks,
Kushal Waikar
[email protected]

------------------------------------------------------------------------
Get perfect Email ID for your Resume. Get before others grab.
<http://in.rd.yahoo.com/tagline_dbid_5/*http://in.promos.yahoo.com/address>

------------------------------------------------------------------------

_______________________________________________
xen-api mailing list
[email protected]
http://lists.xensource.com/mailman/listinfo/xen-api