WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH 1/2]xl: Add "xl uptime" command

To: Vincent Hanquez <vincent.hanquez@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 1/2]xl: Add "xl uptime" command
From: Yang Hongyang <yanghy@xxxxxxxxxxxxxx>
Date: Thu, 13 May 2010 18:42:25 +0800
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 13 May 2010 03:42:32 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4BEBD20D.1070802@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4BEBC81A.70109@xxxxxxxxxxxxxx> <4BEBCC61.3000703@xxxxxxxxxxxxx> <4BEBD032.5080408@xxxxxxxxxxxxxx> <4BEBD20D.1070802@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100415 Thunderbird/3.0.4
On 05/13/2010 06:18 PM, Vincent Hanquez wrote:
> On 13/05/10 11:10, Yang Hongyang wrote:
>>> I find this command basically useless, since on restore the "start_time"
>>> is not kept. do we actually need this ?
>>>
>>
>> I think it's sometimes useful. I noticed that just the day before
>> yesterday,
>> somebody asked in the xen-api list about "uptime" command.
> 
> it is useful if it works :)
> 
> however this version of start_time means "when was this xen domain
> started" which is not the VM start time (i.e. "when was my vm booted").
> To be useful start_time need to preserved across migration and
> suspend/restore.
> 
> xen-api does the right thing and returns the later.
> 

So more work has to be done to get xl exactly right as xen-api.:)

And I noticed that if use xl create, start_time will not be set.
xm create will set the start_time properly, I wonder if it is xend
that set the start_time or is this a bug?

-- 
Regards
Yang Hongyang

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel