* race in xenstore?
@ 2010-04-27 8:38 Juergen Gross
2010-04-28 0:46 ` Keir Fraser
0 siblings, 1 reply; 2+ messages in thread
From: Juergen Gross @ 2010-04-27 8:38 UTC (permalink / raw)
To: xen-devel@lists.xensource.com
Hi,
I observe a strange behaviour with our BS2000 guest reading xenstore:
When the domU is started, we are reading some values from xenstore, which are
written by a backend driver on dom0. One special entry is used for signalling
validity of the other entries. The domU tries to read it until the entry is
existing. The value of this entry is always a numerical value greater 0.
In rare cases I see the following behaviour (extracted from xenstore.log):
- the domU tries to read the entry, xenstored seems not to know it:
IN 0x61b9c0 20100423 22:25:42 READ (bs2/vmid )
OUT 0x61b9c0 20100423 22:25:42 ERROR (ENOENT )
- on domU side, I don't see the ENOENT, but read the string "OK"!
- a little bit later (same second) the entry is written by dom0:
IN 0x625c50 20100423 22:25:42 WRITE (/local/domain/169/bs2/vmid 2)
OUT 0x625c50 20100423 22:25:42 WRITE (OK )
Xen version is 3.3.1
I'm not familiar with the xenstored internals, perhaps someone has an idea
what is happening here?
Juergen
--
Juergen Gross Principal Developer Operating Systems
TSP ES&S SWE OS6 Telephone: +49 (0) 89 3222 2967
Fujitsu Technology Solutions e-mail: juergen.gross@ts.fujitsu.com
Domagkstr. 28 Internet: ts.fujitsu.com
D-80807 Muenchen Company details: ts.fujitsu.com/imprint.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: race in xenstore?
2010-04-27 8:38 race in xenstore? Juergen Gross
@ 2010-04-28 0:46 ` Keir Fraser
0 siblings, 0 replies; 2+ messages in thread
From: Keir Fraser @ 2010-04-28 0:46 UTC (permalink / raw)
To: Juergen Gross, xen-devel@lists.xensource.com
On 27/04/2010 09:38, "Juergen Gross" <juergen.gross@ts.fujitsu.com> wrote:
> - the domU tries to read the entry, xenstored seems not to know it:
> IN 0x61b9c0 20100423 22:25:42 READ (bs2/vmid )
> OUT 0x61b9c0 20100423 22:25:42 ERROR (ENOENT )
> - on domU side, I don't see the ENOENT, but read the string "OK"!
> - a little bit later (same second) the entry is written by dom0:
> IN 0x625c50 20100423 22:25:42 WRITE (/local/domain/169/bs2/vmid 2)
> OUT 0x625c50 20100423 22:25:42 WRITE (OK )
>
> Xen version is 3.3.1
>
> I'm not familiar with the xenstored internals, perhaps someone has an idea
> what is happening here?
Not sure, but it would be weird for this to be a race since xenstored is
single-threaded and deals with only one request at a time, to completion.
I would focus on why xenstored logging says ENOENT, but the domU sees 'OK'.
The xenstored logic is not so hard to figure out, compared with xend for
example. ;-)
-- Keir
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-28 0:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-27 8:38 race in xenstore? Juergen Gross
2010-04-28 0:46 ` Keir Fraser
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).