From: 张海斌 <xtay.haibin@gmail.com>
To: qemu-devel@nongnu.org
Cc: stefanha@redhat.com
Subject: Re: How to impove downtime of Live-Migration caused bdrv_drain_all()
Date: Thu, 26 Dec 2019 17:40:22 +0800 [thread overview]
Message-ID: <CAP0gKjVqMEKF2gq4Xq8hX=zo-cM3vw2Xw70pajfQOvFj4-wvbA@mail.gmail.com> (raw)
In-Reply-To: <20190328170759.GH18536@stefanha-x1.localdomain>
Stefan Hajnoczi <stefanha@redhat.com> 于2019年3月29日周五 上午1:08写道:
>
> On Thu, Mar 28, 2019 at 05:53:34PM +0800, 张海斌 wrote:
> > hi, stefan
> >
> > I have faced the same problem you wrote in
> > https://lists.gnu.org/archive/html/qemu-devel/2016-08/msg04025.html
> >
> > Reproduce as follow:
> > 1. Clone qemu code from https://git.qemu.org/git/qemu.git, add some
> > debug information and compile
> > 2. Start a new VM
> > 3. In VM, use fio randwrite to add pressure for disk
> > 4. Live migrate
> >
> > Log show as follow:
> > [2019-03-28 15:10:40.206] /data/qemu/cpus.c:1086: enter do_vm_stop
> > [2019-03-28 15:10:40.212] /data/qemu/cpus.c:1097: call bdrv_drain_all
> > [2019-03-28 15:10:40.989] /data/qemu/cpus.c:1099: call replay_disable_events
> > [2019-03-28 15:10:40.989] /data/qemu/cpus.c:1101: call bdrv_flush_all
> > [2019-03-28 15:10:41.004] /data/qemu/cpus.c:1104: done do_vm_stop
> >
> > Calling bdrv_drain_all() costs 792 mini-seconds.
> > I just add a bdrv_drain_all() at start of do_vm_stop() before
> > pause_all_vcpus(), but it doesn't work.
> > Is there any way to improve live-migration downtime cause by bdrv_drain_all()?
> >
> > haibin
>
> Thanks for your email. Please send technical questions to
> qemu-devel@nongnu.org and CC me.
>
> That way the discussion is archived and searchable for the future. It
> also allows others in the community to participate and double-check any
> answers that I give.
>
> Stefan
next parent reply other threads:[~2019-12-26 13:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAP0gKjUf4+Jf2GSZy8u5fwQAU2V9bk-viuSBByB5bo78NWHpbQ@mail.gmail.com>
[not found] ` <20190328170759.GH18536@stefanha-x1.localdomain>
2019-12-26 9:40 ` 张海斌 [this message]
2020-01-02 15:07 ` How to impove downtime of Live-Migration caused bdrv_drain_all() Stefan Hajnoczi
2020-01-02 15:27 ` Felipe Franciosi
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='CAP0gKjVqMEKF2gq4Xq8hX=zo-cM3vw2Xw70pajfQOvFj4-wvbA@mail.gmail.com' \
--to=xtay.haibin@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.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).