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][RFC] making "xm dump-core" paralell

To: John Levon <levon@xxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH][RFC] making "xm dump-core" paralell
From: Rikiya Ayukawa <ayukawa.rikiya@xxxxxxxxxxxxxxxxxx>
Date: Thu, 27 Sep 2007 17:36:23 +0900
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>, SUZUKI Kazuhiro <kaz@xxxxxxxxxxxxxx>
Delivery-date: Thu, 27 Sep 2007 01:36:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)
Hi,

# Sorry, I mistook the function name on e-mail.
# xc_domain_dump() -> xc_domain_dumpcore()

> - Add xc_dumpcore program. This program only calls xc_domain_dump()
> >   in libxc to dump the core image of a domainU.
>   
>
> Why?

To make xend call indirectly xc_domain_dumpcore() written by C.
I think this is similar to xc_save and xc_restore programs.

xend (cset#15880:a00cc97b392a) calls xc_domain_dumpcore() directly.
It takes xend a lot of time to finish this C function.

Until the xend's thread finishes xc_domain_dumpcore(), any other xend's
thread
don't run because of GIL (global interpreter lock) in CPython specification.

http://docs.python.org/api/threads.html

# If xc_domain_dumpcore() release GIL sometimes, other xend's thread can
run.
# But I guess not.

By changing xend to create a xc_dumpcore process and
to wait for the process to finish, xend don't begin to call C function
directly,
so that other xend's thread can run while dealing with dump-core.

Thank you,

Rikiya Ayukawa


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