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 0/3] continuable destroy domain:MakeXEN_DOMCTL_de

To: "Szymanski, Lukasz K" <Lukasz.Szymanski@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 0/3] continuable destroy domain:MakeXEN_DOMCTL_destroydomain hypercall continuable
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Tue, 09 Oct 2007 16:57:12 +0100
Delivery-date: Tue, 09 Oct 2007 08:57:59 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <95DEAE2A96B31A4483EC5DB225BB8E8D076402B5@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acfr2CdZWyirzqyJRAeWmr/EqZ6+lgABbg4wAABwhLAB/LVLkABPPLliBV7IqfAAAA+M8AAAkNjy
Thread-topic: [Xen-devel] [PATCH 0/3] continuable destroy domain:MakeXEN_DOMCTL_destroydomain hypercall continuable
User-agent: Microsoft-Entourage/11.3.6.070618
Xend probably has a critical resource (either a lock or a thread) that gets tied up in the shutdown. So it can’t do anything else significant while the shutdown is in progress. The solution will be to add some multi-threading (perhaps just as simple as spawning a thread to handle long operations like domain destruction or coredumps). Someone already posted a (rather complicated) patch to spawn a thread to deal with domain coredumps. It hasn’t been checked in as there were arguments over the approach (it spawned an external C program, whereas it should be quite possible to spawn the thread and do the coredump without any exec of an external program).

Thus this is something of a current design limitation of xend rather than an outright bug. As such it  is unlikely to get fixed anytime soon unless someone wants to pick it up as a project?

 -- Keir

On 9/10/07 16:49, "Szymanski, Lukasz K" <Lukasz.Szymanski@xxxxxxxxxx> wrote:

If I do not use xm top while the vm is shutting down, there are fewer or no problem with system responsiveness.  
- If I run xm list (or xm info or xm dmesg) during a shutdown, then nothing gets listed, but I have control over all the terminals and I can ctrl-C my way out of the xm command.  
- If I do a shutdown and a non xm command such as ping, I can ping another domain and I have no responsive problems at all with zero packets lost.

It appears that the error is in the combination of xm commands and shutdown.  Running xm top with shutdown shows this behavior the most.

At this point I am trying to find out exactly when things get stuck for xm top and shutdown.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>