qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: liuhaiwei9699  <liuhaiwei9699@126.com>
To: "Vladimir Sementsov-Ogievskiy" <vsementsov@yandex-team.ru>
Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org,
	stefanha@redhat.com,  fam@euphon.net, eblake@redhat.com,
	jsnow@redhat.com,  quintela@redhat.com, dgilbert@redhat.com,
	liuhaiwei <liuhaiwei@inspur.com>
Subject: Re:Re: [PATCH] bugfix:migrate with block-dirty-bitmap (disk size is big enough) can't be finished
Date: Thu, 15 Sep 2022 09:28:50 +0800 (CST)	[thread overview]
Message-ID: <785be6cd.e78.1833ec34e9f.Coremail.liuhaiwei9699@126.com> (raw)
In-Reply-To: <626e7cce-d85f-7448-b28f-a5de559f6aa6@yandex-team.ru>

[-- Attachment #1: Type: text/plain, Size: 1743 bytes --]

Hi ,Vladimir
sometimes ,post-copy mode is not the best choice. For instance, Supposing migrate process will take ten minutes,but network may be interruptted In this process .
If it does happenthe , memory data of VM will be splitted into two parts, and will not be rollback.This is a bad situation


so  migrate-start-postcopy will not be setted in conservative scenario. In this case, the migration with block dirty bitmap may not be finished.




I think  migration of block dirty bitmap should not dependent on post-copy or pre-copy mode.




Best regards
At 2022-09-10 18:18:04, "Vladimir Sementsov-Ogievskiy" <vsementsov@yandex-team.ru> wrote:
>On 9/10/22 09:35, liuhaiwei wrote:
>> From: liuhaiwei <liuhaiwei@inspur.com>
>> 
>> bug description as  https://gitlab.com/qemu-project/qemu/-/issues/1203
>> Usually,we use the precopy or postcopy mode to migrate block dirty bitmap.
>> but if block-dirty-bitmap size more than threshold size,we cannot entry the migration_completion in migration_iteration_run function
>> To solve this problem, we can setting  the pending size to a fake value(threshold-1 or 0) to tell  migration_iteration_run function to entry the migration_completion,if pending size > threshold size
>> 
>
>
>Actually, bitmaps migrate in postcopy. So, you should start postcopy for it to work (qmp command migrate-start-postcopy). This command simply set the boolean variable, so that in migration_iteration_run() we'll move to postcopy when needed. So, you can start this command immediately after migrate command, or even before it, but after setting the "dirty-bitmaps" capability.
>
>Fake pending is a wrong thing to do, it means that you will make downtime to be larger than expected.
>
>-- 
>Best regards,
>Vladimir

[-- Attachment #2: Type: text/html, Size: 2865 bytes --]

  reply	other threads:[~2022-09-15  1:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-10  6:35 [PATCH] bugfix:migrate with block-dirty-bitmap (disk size is big enough) can't be finished liuhaiwei
2022-09-10 10:18 ` Vladimir Sementsov-Ogievskiy
2022-09-15  1:28   ` liuhaiwei9699 [this message]
2022-09-15 11:45     ` Vladimir Sementsov-Ogievskiy
  -- strict thread matches above, loose matches on Subject: below --
2022-09-10 10:47 Seaway Liu(刘海伟)
2022-09-10 10:58 ` Vladimir Sementsov-Ogievskiy
2022-09-11  2:08   ` liuhaiwei9699

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=785be6cd.e78.1833ec34e9f.Coremail.liuhaiwei9699@126.com \
    --to=liuhaiwei9699@126.com \
    --cc=dgilbert@redhat.com \
    --cc=eblake@redhat.com \
    --cc=fam@euphon.net \
    --cc=jsnow@redhat.com \
    --cc=liuhaiwei@inspur.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    --cc=stefanha@redhat.com \
    --cc=vsementsov@yandex-team.ru \
    /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).