xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Oxenstored short-write issue
@ 2015-10-27 15:37 Wei Liu
  2015-10-27 15:56 ` David Scott
  0 siblings, 1 reply; 4+ messages in thread
From: Wei Liu @ 2015-10-27 15:37 UTC (permalink / raw)
  To: dave; +Cc: Xen-devel, wei.liu2, Ian Jackson, samuel.thibault

Hi Dave

We discovered an issue in oxenstored: when it writes to the ring, it writes
a chunk of contiguous data. When it tries to write across ring boundary,
it returns a short-write. That leads to stalling mini-os's xenbus ring.

Samuel provided a diff which solves the issue:
http://www.gossamer-threads.com/lists/xen/devel/403800#403800

You can find our discussions in that thread. Note that thread was mainly
for a patch to fix an issue in mini-os but we discovered that oxenstored
issue along the way.

Wei.

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

* Re: Oxenstored short-write issue
  2015-10-27 15:37 Oxenstored short-write issue Wei Liu
@ 2015-10-27 15:56 ` David Scott
  2015-10-27 15:59   ` Wei Liu
  0 siblings, 1 reply; 4+ messages in thread
From: David Scott @ 2015-10-27 15:56 UTC (permalink / raw)
  To: Wei Liu; +Cc: Xen-devel, Ian Jackson, samuel.thibault

Hi,

> On 27 Oct 2015, at 15:37, Wei Liu <wei.liu2@citrix.com> wrote:
> 
> Hi Dave
> 
> We discovered an issue in oxenstored: when it writes to the ring, it writes
> a chunk of contiguous data. When it tries to write across ring boundary,
> it returns a short-write. That leads to stalling mini-os's xenbus ring.
> 
> Samuel provided a diff which solves the issue:
> http://www.gossamer-threads.com/lists/xen/devel/403800#403800
> 
> You can find our discussions in that thread. Note that thread was mainly
> for a patch to fix an issue in mini-os but we discovered that oxenstored
> issue along the way.

Interesting! I always thought it was a bit odd that oxenstored could write a partial packet but I thought it would retry higher up and complete the transmit before sleeping. It’s certainly clearer to complete the write at the lower-level though.

So I think the diff looks ok.

Cheers,
Dave
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

* Re: Oxenstored short-write issue
  2015-10-27 15:56 ` David Scott
@ 2015-10-27 15:59   ` Wei Liu
  2015-10-27 16:04     ` Samuel Thibault
  0 siblings, 1 reply; 4+ messages in thread
From: Wei Liu @ 2015-10-27 15:59 UTC (permalink / raw)
  To: David Scott; +Cc: Xen-devel, Wei Liu, Ian Jackson, samuel.thibault

On Tue, Oct 27, 2015 at 03:56:07PM +0000, David Scott wrote:
> Hi,
> 
> > On 27 Oct 2015, at 15:37, Wei Liu <wei.liu2@citrix.com> wrote:
> > 
> > Hi Dave
> > 
> > We discovered an issue in oxenstored: when it writes to the ring, it writes
> > a chunk of contiguous data. When it tries to write across ring boundary,
> > it returns a short-write. That leads to stalling mini-os's xenbus ring.
> > 
> > Samuel provided a diff which solves the issue:
> > http://www.gossamer-threads.com/lists/xen/devel/403800#403800
> > 
> > You can find our discussions in that thread. Note that thread was mainly
> > for a patch to fix an issue in mini-os but we discovered that oxenstored
> > issue along the way.
> 
> Interesting! I always thought it was a bit odd that oxenstored could write a partial packet but I thought it would retry higher up and complete the transmit before sleeping. It’s certainly clearer to complete the write at the lower-level though.
> 
> So I think the diff looks ok.
> 

OK, if you think that hunk is good. I will submit a proper patch for it.

Samuel, can I have your S-o-B on that patch?

Wei.

> Cheers,
> Dave

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

* Re: Oxenstored short-write issue
  2015-10-27 15:59   ` Wei Liu
@ 2015-10-27 16:04     ` Samuel Thibault
  0 siblings, 0 replies; 4+ messages in thread
From: Samuel Thibault @ 2015-10-27 16:04 UTC (permalink / raw)
  To: Wei Liu; +Cc: Xen-devel, Ian Jackson, David Scott

Wei Liu, le Tue 27 Oct 2015 15:59:46 +0000, a écrit :
> > Interesting! I always thought it was a bit odd that oxenstored could write a partial packet but I thought it would retry higher up and complete the transmit before sleeping. It’s certainly clearer to complete the write at the lower-level though.
> > 
> > So I think the diff looks ok.
> 
> OK, if you think that hunk is good. I will submit a proper patch for it.

Thanks,

> Samuel, can I have your S-o-B on that patch?

Yep, done so in another mail.

Samuel

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

end of thread, other threads:[~2015-10-27 16:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-27 15:37 Oxenstored short-write issue Wei Liu
2015-10-27 15:56 ` David Scott
2015-10-27 15:59   ` Wei Liu
2015-10-27 16:04     ` Samuel Thibault

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).