[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: [Xen-API] power state evaluation


  • To: <xen-api@xxxxxxxxxxxxxxxxxxx>
  • From: "Uli Staerk" <Uli.Staerk@xxxxxxxxxxxxxx>
  • Date: Thu, 16 Aug 2007 22:05:51 +0200
  • Delivery-date: Thu, 16 Aug 2007 13:06:31 -0700
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
  • Thread-index: AcfgLiEXmwTi3zHISIuspQBJLVK8XQAEq6wg
  • Thread-topic: [Xen-API] power state evaluation

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,27,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,27,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@xxxxxxxxxxxxxxxxxxx [mailto:xen-api-bounces@xxxxxxxxxxxxxxxxxxx] Im Auftrag von Tom Wilkie
Gesendet: Donnerstag, 16.
August 2007 19:53
An: Uli Staerk
Cc: xen-api@xxxxxxxxxxxxxxxxxxx
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

 

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.