qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Juan Quintela <quintela@redhat.com>
To: John Snow <jsnow@redhat.com>
Cc: "Denis V. Lunev" <den@openvz.org>,
	Vladimir Sementsov-Ogievskiy <vsementsov@parallels.com>,
	"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
	Stefan Hajnoczi <stefanha@redhat.com>,
	qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Migration design planning
Date: Tue, 01 Mar 2016 14:47:40 +0100	[thread overview]
Message-ID: <87povefgxv.fsf@emacs.mitica> (raw)
In-Reply-To: <56D0DFBB.8070100@redhat.com> (John Snow's message of "Fri, 26 Feb 2016 18:28:59 -0500")

John Snow <jsnow@redhat.com> wrote:
> Hi Juan;
> We need your assistance in reviewing two competing designs for migrating
> some block data so we can move forward with the feature.
>
> First, some background:
>
> What: Block Dirty Bitmaps. They are simple primitives that keep track of
> which clusters have been written to since the last incremental backup.
>
> Why: They are in-ram primitives that do not get migrated as-is alongside
> block data, they need to be migrated specially. We want to migrate them
> so that the "incremental backup" feature is available after a migration.
>
> How: There are two competing designs, see below.
>
>
> Design Option #1: Live Migration
>
> Just like block data and ram, we make an initial pass over the data and
> then continue to re-transmit data as necessary when block data becomes
> dirtied again.
>
> This is a simple, bog-standard approach that mimics pretty closely how
> other systems are migrated.
>
> The series is here from November:
> https://lists.nongnu.org/archive/html/qemu-devel/2015-11/msg02717.html
>
> Most of the block-specific stuff has been reviewed, but it never got any
> reviews by the migration maintainers. It's reasonably rotted by this
> point, but it probably would not be a herculean effort to revive it.

After this week I will take a look at this series.

>
> Design Option #2: "Postcopy" Migration
>
> https://lists.nongnu.org/archive/html/qemu-devel/2016-02/msg02793.html
>
> The concept here is that incremental backup data can be treated simply
> as best-effort; if it is lost, it's not a big deal. We can reconstitute
> the data or simply start a new incremental backup sync point with a full
> backup.
>
> The idea then is that instead of the incremental live migration, we just
> wait to copy the bitmap until after the pivot and send it all at once.
> This is faster and a bit more efficient, and will scale pretty nicely to
> even quite large bitmaps.

How big is it?
And what is a normal rate of dirtying of that bitmap?


> What I'd like from you: a broad acknowledgment of whether or not you
> feel the Postcopy solution here is tenable, so we know which solution to
> pursue. If we can get an ACK to one or the other method, we can
> exhaustively review it from our end before handing it back to you for a
> comprehensive migration review. We would like to see this feature hit
> 2.6 if possible as the designs have been on-list for quite some time.

To make a good evaluation, we need:
- how big are normally that bitmaps
- what is a typical/worst dirty rate

I guess we can go from them.

And you say that you don't care a lot about lossing the bitmap.  "Not
big deal" here means?

Size here is also important, normally we have around 1-2MB of data for
the last stage.  If size is much bigger than that amount, we will
really, really want it to be send "live".


Wondering about the second approach, it is possible for you:

- do normal migration
- run on destination with a new empty bitmap
- transfer the bitmap now
- xor the two bitmaps

Or this is exactly what you are proposing on the second example?  If it
is, what is the error recovery if we lost connection during the transfer of the
bitmap, can you recover (I guess this is the "not big deal") part.

Does this makes any sense?

Later, Juan.

PD.  It is clear by now that I don't understand how you do the backup!

  reply	other threads:[~2016-03-01 13:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-26 23:28 [Qemu-devel] Migration design planning John Snow
2016-03-01 13:47 ` Juan Quintela [this message]
2016-03-01 15:24   ` Vladimir Sementsov-Ogievskiy
2016-03-01 19:11     ` John Snow
2016-03-01 18:54   ` John Snow
2016-03-02 16:46 ` Dr. David Alan Gilbert
2016-03-02 17:23   ` John Snow

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=87povefgxv.fsf@emacs.mitica \
    --to=quintela@redhat.com \
    --cc=den@openvz.org \
    --cc=dgilbert@redhat.com \
    --cc=jsnow@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=vsementsov@parallels.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).