From: Stefan Hajnoczi <stefanha@redhat.com>
To: Vladimir Sementsov-Ogievskiy <vsementsov@parallels.com>
Cc: famz@redhat.com, jsnow@redhat.com, qemu-devel@nongnu.org,
"Denis V. Lunev" <den@openvz.org>
Subject: Re: [Qemu-devel] [PATCH v2] persistent dirty bitmap: add QDB file spec.
Date: Mon, 1 Dec 2014 11:02:43 +0000 [thread overview]
Message-ID: <20141201110243.GA4248@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <54787899.7070403@parallels.com>
[-- Attachment #1: Type: text/plain, Size: 2392 bytes --]
On Fri, Nov 28, 2014 at 04:28:57PM +0300, Vladimir Sementsov-Ogievskiy wrote:
> On 21.11.2014 19:55, Stefan Hajnoczi wrote:
> >Active dirty bitmaps should migrate too. I'm thinking now that the
> >appropriate thing is to add live migration of dirty bitmaps to QEMU
> >(regardless of whether they are active or not).
> I think, we should migrate named dirty bitmaps, which are not used now. So
> if some external mechanism uses the bitmap (for example - backup) - we
> actually can't migrate this process, because we will need to restore the
> whole backup structure including a pointer to the bitmap, which is too hard
> and includes not only bitmap migration.
> So, if named bitmap is enabled, but not used (only bdrv_aligned_pwritev
> writes to it) it can be migrated. For this I see the following solutions:
>
> 1) Just save all corresponding pieces of named bitmaps with every migrated
> block. The block size is 1mb, so the overhead for migrating additionally a
> bitmap with 64kb granularity would be 2b, and it would be 256b for bitmap
> with 512b granularity. This approach needs additional fields in BlkMigBlock,
> for saving bitmaps pieces.
block-migration.c is not used for all live migration. So it's important
not to tie dirty bitmap migration to block-migration.c, at least there
needs to be a way to skip actually copying disk contents in
block-migration.c.
(When there is shared storage that both source and destination hosts can
access then block-migration.c is not used. Also, there is a newer
non-shared storage migration mechanism that is used instead of
block-migration.c which is not tied into the live migration data stream,
so block-migration.c is optional.)
> 2) Add DIRTY flag to migrated block flags, to distinguish blocks, which
> became dirty while migrating. Save all the bitmaps separately, and also
> update them on block_load, when we receive block with DIRTY flag on. Some
> information will be lost, migrated dirty bitmaps may be "more dirty" then
> original ones. This approach needs additional field "bool dirty" in
> BlkMigBlock, and saving this flag in blk_send.
>
> These solutions don't depend on "persistence" of dirty bitmaps or persistent
> bitmap file format.
That's an important characteristic since we probably want to migrate
named dirty bitmaps, whether they are persistent or not.
Stefan
[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2014-12-01 11:02 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <545CB9CE.9000302@parallels.com>
[not found] ` <20141108071919.GB4940@fam-t430.nay.redhat.com>
[not found] ` <54607427.8040404@parallels.com>
[not found] ` <5462327C.5080704@redhat.com>
[not found] ` <5464B80E.6060201@parallels.com>
[not found] ` <546A88DD.10006@redhat.com>
2014-11-18 10:54 ` [Qemu-devel] [PATCH v6 00/10] block: Incremental backup series Vladimir Sementsov-Ogievskiy
2014-11-18 13:09 ` Vladimir Sementsov-Ogievskiy
2014-11-18 14:41 ` Vladimir Sementsov-Ogievskiy
2014-11-18 16:08 ` John Snow
2014-11-19 6:25 ` Denis V. Lunev
2014-11-20 10:34 ` [Qemu-devel] [PATCH v2] persistent dirty bitmap: add QDB file spec Vladimir Sementsov-Ogievskiy
2014-11-20 10:41 ` Vladimir Sementsov-Ogievskiy
2014-11-20 11:36 ` Stefan Hajnoczi
2014-11-21 10:27 ` Vladimir Sementsov-Ogievskiy
2014-11-21 16:55 ` Stefan Hajnoczi
2014-11-24 9:19 ` Vladimir Sementsov-Ogievskiy
2014-11-25 17:58 ` Vladimir Sementsov-Ogievskiy
2014-11-28 13:28 ` Vladimir Sementsov-Ogievskiy
2014-12-01 11:02 ` Stefan Hajnoczi [this message]
2014-11-21 12:56 ` Vladimir Sementsov-Ogievskiy
2014-11-21 0:24 ` Eric Blake
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=20141201110243.GA4248@stefanha-thinkpad.redhat.com \
--to=stefanha@redhat.com \
--cc=den@openvz.org \
--cc=famz@redhat.com \
--cc=jsnow@redhat.com \
--cc=qemu-devel@nongnu.org \
--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).