xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
To: Yu Zhiguo <yuzg@cn.fujitsu.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: why xenstore-* hangs if xenstored is not started
Date: Tue, 22 Jun 2010 09:27:41 +0100	[thread overview]
Message-ID: <4C2073FD.5050800@eu.citrix.com> (raw)
In-Reply-To: <4C206D34.1060909@cn.fujitsu.com>

On 22/06/10 08:58, Yu Zhiguo wrote:
> Hi,
>
> Vincent Hanquez wrote:
>
>> That's the common behavior of task stuck in a kernel operation (ps aux
>> will show the task at D, and /proc/<pid>/wchan will tell you exactly
>> where it's blocked in the kernel).
>>
>> the write is going to wait for a xenstored reply in kernel mode since by
>> default the xenstore-* tools use the kernel xenstore page to communicate
>> with xenstored.
>>
>> The unix socket operations doesn't have this "problems" (xenstore-* -s)
>>
>
> Thanks~~
> I confirmed the task is at D+ and there are no this "problem" if use option -s.
> But I think S+ is better than D+...

I don't think it's very easy to have interruptible sleep here, it would 
change radically the protocol. the kernel xenstored page need to be 
handled "atomically" since requests and their replied cannot be 
intertwined. Maybe a timeout would be the one requiring the less change ?

-- 
Vincent

  reply	other threads:[~2010-06-22  8:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-22  7:32 why xenstore-* hangs if xenstored is not started Yu Zhiguo
2010-06-22  7:44 ` Vincent Hanquez
2010-06-22  7:58   ` Yu Zhiguo
2010-06-22  8:27     ` Vincent Hanquez [this message]
2010-06-22  8:46       ` Yu Zhiguo
2010-06-22  7:45 ` Keir Fraser
2010-06-22  7:56   ` Vincent Hanquez
2010-06-22  8:06     ` Keir Fraser
2010-06-22  8:26       ` Vincent Hanquez
2010-06-22  8:12   ` Yu Zhiguo

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=4C2073FD.5050800@eu.citrix.com \
    --to=vincent.hanquez@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=yuzg@cn.fujitsu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).