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-users

Re: [Xen-users] thread-safe Xend and xm commands?

To: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>
Subject: Re: [Xen-users] thread-safe Xend and xm commands?
From: Mike Wray <mike.wray@xxxxxxxxxx>
Date: Tue, 29 Mar 2005 09:52:11 +0100
Cc: ian.pratt@xxxxxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 29 Mar 2005 09:05:35 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <A95E2296287EAD4EB592B5DEEFCE0E9D1E38D7@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <A95E2296287EAD4EB592B5DEEFCE0E9D1E38D7@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0RC1 (X11/20041201)
Ian Pratt wrote:
Are xend and xm commands thread-safe?

Eg: Can two threads call same xm command simultaneously without causing problems?


Good question. I think xend tries to serializes requests, but I doubt
this has been tested much. Mike Wray can probably give a definitive
answer.

Xend itself is single-threaded - so it can only do one command at a time.
Some commands result in long-lived actions so there is potential for
conflict, but the obvious ones are OK as far as I know.

For example, you can tell a domain to reboot and then shut it down without
reboot or destroy it while the reboot is in progress. Xend will then
cancel the reboot.

Did you have any specific xm commands you were wondering about?


Its certainly something that has been thought about for the design of
the new tools.

Ian

Mike


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

<Prev in Thread] Current Thread [Next in Thread>