From: Akio Takebe <takebe_akio@jp.fujitsu.com>
To: John Levon <levon@movementarian.org>,
Rikiya Ayukawa <ayukawa.rikiya@np.css.fujitsu.com>,
Rikiya Ayukawa <ayukawa@sde.cs.titech.ac.jp>,
Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel@lists.xensource.com,
Akio Takebe <takebe_akio@jp.fujitsu.com>,
SUZUKI Kazuhiro <kaz@jp.fujitsu.com>
Subject: Re: [PATCH][RFC] making "xm dump-core" paralell
Date: Fri, 28 Sep 2007 20:02:18 +0900 [thread overview]
Message-ID: <C0C801BF0902AAtakebe_akio@jp.fujitsu.com> (raw)
In-Reply-To: <20070927142615.GA30858@totally.trollied.org.uk>
Hi, John
>On Thu, Sep 27, 2007 at 05:36:23PM +0900, Rikiya Ayukawa wrote:
>
>> # 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
>
>But if you're forking, why can't you do it in Python?
The child process of xend can call xc_domain_dumpcore,
but it is worse than execing the new dump command
because we must be careful about some more cases.
For example if we do not use exec(), at least, the child of xend
must unregister the xenwatch to dump a domU at the domU crashing time
because the child process of xend has the same functions of parent.
I think there are many other case that we must be careful
about multi process of xend.
xm save/restore also fork+exec. I think it's the same reason.
Is that right, Keir?
Best Regards,
Akio Takebe
next prev parent reply other threads:[~2007-09-28 11:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-27 8:36 [PATCH][RFC] making "xm dump-core" paralell Rikiya Ayukawa
2007-09-27 14:26 ` John Levon
2007-09-28 11:02 ` Akio Takebe [this message]
2007-09-28 17:24 ` John Levon
2007-09-28 19:53 ` Ian Pratt
2007-09-28 20:06 ` John Levon
2007-09-28 20:07 ` Daniel P. Berrange
-- strict thread matches above, loose matches on Subject: below --
2007-09-27 2:12 Rikiya Ayukawa
2007-09-27 6:26 ` John Levon
2007-09-27 7:39 ` Keir Fraser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C0C801BF0902AAtakebe_akio@jp.fujitsu.com \
--to=takebe_akio@jp.fujitsu.com \
--cc=Keir.Fraser@cl.cam.ac.uk \
--cc=ayukawa.rikiya@np.css.fujitsu.com \
--cc=ayukawa@sde.cs.titech.ac.jp \
--cc=kaz@jp.fujitsu.com \
--cc=levon@movementarian.org \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.