Mailing List Archive

power state evaluation
If I call VM.get_record() I get an key named

[power_state] => Running

If I fetch the metrics by VM_metrics.get_record() I get a similar
information:

[state] => Array
(
[0] => running
)



What is the difference? What is the real value?
Re: power state evaluation [ In reply to ]
> If I call VM.get_record() I get an key named
>
> [power_state] => Running

This is the power state of the vm ie running, halted, suspended etc.

> If I fetch the metrics by VM_metrics.get_record() I get a similar
> information:
>
> [state] => Array
> (
> [0] => running
> )

These are the individual statues of the vcpus, ie running, paused,
blocked etc

Tom
AW: power state evaluation [ In reply to ]
Ok - I gave the DomU 2 CPUs and got the following result for
VM_metrics.get_record():



Array
(
[VCPUs_params] => Array
(
[cpumap1] =>
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,2
7,28,29,30,31
[cpumap0] =>
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,2
7,28,29,30,31
[cap] => 0
[weight] => 256
)

[last_updated] => 20070816T19:55:34
[uuid] => 30c8c9f5-6d8d-2f05-32d1-423cb2054d97
[VCPUs_flags] => Array
(
[1] => Array
(
[0] => blocked
[1] => online
)

[0] => Array
(
[0] => blocked
[1] => online
)

)

[start_time] => 20070816T19:51:43
[memory_actual] => 268435456
[state] => Array
(
[0] => blocked
)

[VCPUs_utilisation] => Array
(
[1] => 102
[0] => 0.00037114269606261139
)

[VCPUs_number] => 2
[VCPUs_CPU] => Array
(
[1] => 0
[0] => 1
)

)



Why is there only one state for both CPUs? Or is this an aggregated
value for all VCPUs.



What does the CPU Utilisation 102 mean? I supposed to be a percentage
value to be between 0.0-1.0.



________________________________

Von: xen-api-bounces@lists.xensource.com
[mailto:xen-api-bounces@lists.xensource.com] Im Auftrag von Tom Wilkie
Gesendet: Donnerstag, 16. August 2007 19:53
An: Uli Staerk
Cc: xen-api@lists.xensource.com
Betreff: Re: [Xen-API] power state evaluation



If I call VM.get_record() I get an key named

[power_state] => Running



This is the power state of the vm ie running, halted, suspended etc.



If I fetch the metrics by VM_metrics.get_record() I get a similar
information:

[state] => Array
(
[0] => running
)



These are the individual statues of the vcpus, ie running, paused,
blocked etc



Tom