All of lore.kernel.org
 help / color / mirror / Atom feed
* IO caching on xen?
@ 2008-07-15 11:22 marian klein
  2008-07-15 11:30 ` Samuel Thibault
  0 siblings, 1 reply; 4+ messages in thread
From: marian klein @ 2008-07-15 11:22 UTC (permalink / raw)
  To: xen-discuss, xen-devel

Hi

I am trying to use the xvm/xen in OpenSolaris on the top of zvol.

The combination of xen with zfs might be the tricky and does not have to
deliver what I expect.
I am worried that the xen (or any other VM) with zvol device from ZFS
(or any other file system.) may remove the benefits of ZFS,
 because the guest OS can write something to disk but the xen itself
can do some buffering
or lazy writing and it may delay to write to ZFS backend.

Does it make sense to use ZFS with xen to protect the guest completely
against accidental power outage or against the broken disk/cables?

I understand there is no implicit persistence implemented  in the
xen/xvm, so the actual
state of the guest system is lost on the power outage. However I would
like  to have
a consistent file system in the guest OS stored physicaly on the
mirrored backend zfs. to protect explicitly written data.

Can someone point me to a relevent documentations so I can read more about it?

I probably need some guarantees claims from ZFS and some guarantees
claims from xen and then I can judge.

I expect you (as a scientist) have much better overview of the proper
documentation or at least the ideas on the topic the virtual machines
and what in theory can and what cannot  be guaranteed.

Will ever the persistence be implemented the way the EROS/Coyotos or L3/L4 has?

Marian Klein

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: IO caching on xen?
  2008-07-15 11:22 IO caching on xen? marian klein
@ 2008-07-15 11:30 ` Samuel Thibault
  2008-07-15 18:32   ` Dan Magenheimer
  0 siblings, 1 reply; 4+ messages in thread
From: Samuel Thibault @ 2008-07-15 11:30 UTC (permalink / raw)
  To: marian klein; +Cc: xen-devel, xen-discuss

Hello,

marian klein, le Tue 15 Jul 2008 11:22:05 +0000, a écrit :
> I am worried that the xen (or any other VM) with zvol device from ZFS
> (or any other file system.) may remove the benefits of ZFS,
>  because the guest OS can write something to disk but the xen itself
> can do some buffering
> or lazy writing and it may delay to write to ZFS backend.

Xen doesn't do any kind of buffering or lazy writing.  It provides
barriers to the guest, to ensure any needed coherency.

Samuel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: IO caching on xen?
  2008-07-15 11:30 ` Samuel Thibault
@ 2008-07-15 18:32   ` Dan Magenheimer
  2008-07-16 17:46     ` Samuel Thibault
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Magenheimer @ 2008-07-15 18:32 UTC (permalink / raw)
  To: Samuel Thibault, marian klein
  Cc: dan.magenheimer@oracle.com, xen-devel@lists.xensource.com,
	xen-discuss@opensolaris.org

> marian klein, le Tue 15 Jul 2008 11:22:05 +0000, a écrit :
> > I am worried that the xen (or any other VM) with zvol 
> device from ZFS
> > (or any other file system.) may remove the benefits of ZFS,
> >  because the guest OS can write something to disk but the xen itself
> > can do some buffering
> > or lazy writing and it may delay to write to ZFS backend.
> 
> Xen doesn't do any kind of buffering or lazy writing.  It provides
> barriers to the guest, to ensure any needed coherency.
> 
> Samuel

I'm not sure if this is related or not...

I was party to some internal irc where it was believed
to be the case that when a file-backed vbd using file:'...'
is used, dom0's page cache may contain buffer pages that
may be inconsistent with the disk, whereas a file-backed
vbd using tap:aio:'...' does not suffer from the same problem.

Can someone confirm or deny (and if denied, was this fixed
recently)?

Thanks,
Dan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: IO caching on xen?
  2008-07-15 18:32   ` Dan Magenheimer
@ 2008-07-16 17:46     ` Samuel Thibault
  0 siblings, 0 replies; 4+ messages in thread
From: Samuel Thibault @ 2008-07-16 17:46 UTC (permalink / raw)
  To: Dan Magenheimer
  Cc: marian klein, xen-devel@lists.xensource.com,
	xen-discuss@opensolaris.org

Dan Magenheimer, le Tue 15 Jul 2008 12:32:53 -0600, a écrit :
> > marian klein, le Tue 15 Jul 2008 11:22:05 +0000, a écrit :
> > > I am worried that the xen (or any other VM) with zvol 
> > device from ZFS
> > > (or any other file system.) may remove the benefits of ZFS,
> > >  because the guest OS can write something to disk but the xen itself
> > > can do some buffering
> > > or lazy writing and it may delay to write to ZFS backend.
> > 
> > Xen doesn't do any kind of buffering or lazy writing.  It provides
> > barriers to the guest, to ensure any needed coherency.
> 
> I'm not sure if this is related or not...
> 
> I was party to some internal irc where it was believed
> to be the case that when a file-backed vbd using file:'...'
> is used, dom0's page cache may contain buffer pages that
> may be inconsistent with the disk

Ah, indeed, in that case the page cache is used, and the barriers may
not have proper effect.

> whereas a file-backed vbd using tap:aio:'...' does not suffer from the
> same problem.

blktap uses O_DIRECT to avoid buffering completely indeed.

Samuel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-07-16 17:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-15 11:22 IO caching on xen? marian klein
2008-07-15 11:30 ` Samuel Thibault
2008-07-15 18:32   ` Dan Magenheimer
2008-07-16 17:46     ` Samuel Thibault

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.