qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@redhat.com>
To: "Denis V. Lunev" <den@virtuozzo.com>
Cc: Fiona Ebner <f.ebner@proxmox.com>,
	Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>,
	qemu-devel@nongnu.org, t.lamprecht@proxmox.com, jsnow@redhat.com,
	hreitz@redhat.com, eblake@redhat.com, armbru@redhat.com,
	qemu-block@nongnu.org,
	Alexander Ivanov <alexander.ivanov@virtuozzo.com>
Subject: Re: [PATCH] block/mirror: add 'write-blocking-after-ready' copy mode
Date: Thu, 2 Feb 2023 16:23:35 +0100	[thread overview]
Message-ID: <Y9vVd8unUeZmsmmX@redhat.com> (raw)
In-Reply-To: <67fdadb1-672f-776a-2ce6-631cba19171c@virtuozzo.com>

Am 02.02.2023 um 14:35 hat Denis V. Lunev geschrieben:
> On 2/2/23 14:27, Fiona Ebner wrote:
> > Am 02.02.23 um 12:34 schrieb Kevin Wolf:
> > > Am 02.02.2023 um 11:19 hat Fiona Ebner geschrieben:
> > > > Am 31.01.23 um 19:18 schrieb Denis V. Lunev:
> > > > > Frankly speaking I would say that this switch could be considered
> > > > > NOT QEMU job and we should just send a notification (event) for the
> > > > > completion of the each iteration and management software should
> > > > > take a decision to switch from async mode to the sync one.
> > > My first thought was very similar. We should provide a building block
> > > that just switches between the two modes and then the management tool
> > > can decide what the right policy is.
> > > 
> > > Adding a new event when the first iteration is done (I'm not sure if
> > > there is much value in having it for later iterations) makes sense to
> > > me if someone wants to use it. If we add it, let's not forget that
> > > events can be lost and clients must be able to query the same
> > > information, so we'd have to add it to query-jobs, too - which in turn
> > > requires adding a job type specific struct to JobInfo first.
> > > 
> > Well, Denis said 2 iterations might be better. But I'm fine with
> > initially adding an event just for the first iteration, further ones can
> > still be added later. Returning the number of completed iterations as
> > part of the mirror-specific job info would anticipate that.
> 
> May be it would be better to have an event on each iteration + make
> available iteration count over block status query.

In the ready phase, each iteration can be very short. Basically if the
guest writes to one block and then the mirror catches up, that's a whole
iteration. So if the guest is doing I/O at a moderate rate so that the
host can keep up with it, you might end up with one QMP event per I/O
request.

Kevin



  reply	other threads:[~2023-02-02 15:24 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-07 13:27 [PATCH] block/mirror: add 'write-blocking-after-ready' copy mode Fiona Ebner
2023-01-24 13:57 ` Fiona Ebner
2023-01-31 17:44 ` Vladimir Sementsov-Ogievskiy
2023-01-31 18:18   ` Denis V. Lunev
2023-02-02 10:19     ` Fiona Ebner
2023-02-02 11:09       ` Denis V. Lunev
2023-02-03  9:48         ` Fiona Ebner
2023-02-02 11:34       ` Kevin Wolf
2023-02-02 13:27         ` Fiona Ebner
2023-02-02 13:35           ` Denis V. Lunev
2023-02-02 15:23             ` Kevin Wolf [this message]
2023-02-14 15:58               ` Vladimir Sementsov-Ogievskiy
2023-02-14 16:19           ` Vladimir Sementsov-Ogievskiy
2023-02-21 10:57             ` Fiona Ebner
2023-02-21 11:27               ` Kevin Wolf
2023-02-14 14:29         ` Fiona Ebner
2023-02-14 16:48           ` Vladimir Sementsov-Ogievskiy
2023-02-02 10:18   ` Fiona Ebner

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=Y9vVd8unUeZmsmmX@redhat.com \
    --to=kwolf@redhat.com \
    --cc=alexander.ivanov@virtuozzo.com \
    --cc=armbru@redhat.com \
    --cc=den@virtuozzo.com \
    --cc=eblake@redhat.com \
    --cc=f.ebner@proxmox.com \
    --cc=hreitz@redhat.com \
    --cc=jsnow@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=t.lamprecht@proxmox.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).