From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Zoltan Kiss <zoltan.kiss@citrix.com>
Cc: Dave Scott <Dave.Scott@eu.citrix.com>,
George Shuklin <george.shuklin@gmail.com>,
"'xen-devel@lists.xen.org'" <xen-devel@lists.xen.org>,
Paul Durrant <Paul.Durrant@citrix.com>,
"xen-api@lists.xen.org" <xen-api@lists.xen.org>,
Ian Campbell <Ian.Campbell@citrix.com>
Subject: Re: driver domain crash and reconnect handling
Date: Thu, 24 Jan 2013 15:10:49 +0000 [thread overview]
Message-ID: <51014EF9.5040502@citrix.com> (raw)
In-Reply-To: <51014CDC.1030501@citrix.com>
On 24/01/13 15:01, Zoltan Kiss wrote:
> On 24/01/13 14:06, George Shuklin wrote:
>> 24.01.2013 17:25, Paul Durrant пишет:
>>>> Some notes about guest suspend during IO.
>>>>
>>>> I tested that way for storage reboot (pause all domains, reboot ISCSI storage
>>>> and resume every domain). If pause is short (less that 2 minutes), guest can
>>>> survive. If pause is longer than 2 minutes, guests in state of waiting for io
>>>> completion, detects IO timeout after resuming and cause IO error on virtual
>>>> block devices. (PV).
>>>>
>>> To be clear here: do you mean you *paused* and then unpaused the VMs, or *suspended* and then resumed the VMs? I suspect you mean the former.
>>>
>>> Paul
>> Pause, of cause. My bad.
>>
> If you would do a suspend, the frontend driver flush out disk IO
> operations before suspend reached, and therefore there won't be anything
> to timeout after resume. However, if the storage driver domain just
> crashed, I guess the guest would crash at suspend. Maybe we can try out
> something to save the the ring buffer, and replay them back once the
> backend come back (but before resuming the guest). But I'm not sure
> whether the guest would handle the timeouts after the resume first, or
> cancel them if the requests were succesfully responded.
>
> Zoli
Perhaps I am making this harder, but might it be best to wait for a
short while (15-30 seconds) for the device driver domain to come back,
and if it takes longer than that, pause the VM.
This way, if the driver domain is fast to come back, all the guest
notices is transitorily blocked IO, and if the driver domain is too slow
(but does come back), all the guest might notices is a pause.
Ultimately, if the driver domain never comes back, then we are in a no
worse position than currently.
~Andrew
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2013-01-24 15:10 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <81A73678E76EA642801C8F2E4823AD21014183065D27@LONPMAILBOX01.citrite.net>
2013-01-21 12:20 ` driver domain crash and reconnect handling Ian Campbell
[not found] ` <1358770844.3279.194.camel@zakaz.uk.xensource.com>
2013-01-23 21:58 ` Zoltan Kiss
2013-01-24 9:59 ` Ian Campbell
2013-01-24 11:45 ` George Shuklin
[not found] ` <51011EF5.9080708@gmail.com>
2013-01-24 12:57 ` Zoltan Kiss
2013-01-24 13:25 ` Paul Durrant
[not found] ` <291EDFCB1E9E224A99088639C4762022013F451DCB22@LONPMAILBOX01.citrite.net>
2013-01-24 14:06 ` George Shuklin
[not found] ` <51013FED.60201@gmail.com>
2013-01-24 15:01 ` Zoltan Kiss
[not found] ` <51014CDC.1030501@citrix.com>
2013-01-24 15:10 ` Andrew Cooper [this message]
2013-01-24 19:42 ` Zoltan Kiss
2013-01-24 17:14 ` Ian Campbell
[not found] ` <1359047667.32057.31.camel@zakaz.uk.xensource.com>
2013-01-24 19:39 ` Zoltan Kiss
[not found] ` <1359021585.17440.93.camel@zakaz.uk.xensource.com>
2013-01-24 19:51 ` Zoltan Kiss
2013-01-21 11:31 Dave Scott
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=51014EF9.5040502@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=Dave.Scott@eu.citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Paul.Durrant@citrix.com \
--cc=george.shuklin@gmail.com \
--cc=xen-api@lists.xen.org \
--cc=xen-devel@lists.xen.org \
--cc=zoltan.kiss@citrix.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.