From: hao.xiang@linux.dev
To: armbru@redhat.com
Cc: pbonzini@redhat.com, berrange@redhat.com, eduardo@habkost.net,
peterx@redhat.com, farosas@suse.de, eblake@redhat.com,
armbru@redhat.com, thuth@redhat.com, lvivier@redhat.com,
jdenemar@redhat.com, marcel.apfelbaum@gmail.com,
philmd@linaro.org, wangyanan55@huawei.com, qemu-devel@nongnu.org
Subject: Re: [External] Re: [PATCH v4 6/7] migration/multifd: Add zero pages and zero bytes counter to migration status interface.
Date: Sat, 09 Mar 2024 06:56:45 +0000 [thread overview]
Message-ID: <b52151927137b7f40a5b15fcea256d11da9935be@linux.dev> (raw)
In-Reply-To: <CAAYibXjyMT5YJqOcDheDUB1qzi+JjFhAcv3L57zM9pCFMGbYbw@mail.gmail.com>
>
> On Thu, Feb 29, 2024 at 11:40 PM Markus Armbruster <armbru@redhat.com> wrote:
>
> >
> > Hao Xiang <hao.xiang@bytedance.com> writes:
> >
> > This change extends the MigrationStatus interface to track zero pages
> >
> > and zero bytes counter.
> >
> > Signed-off-by: Hao Xiang <hao.xiang@bytedance.com>
> >
> > [...]
> >
> > diff --git a/qapi/migration.json b/qapi/migration.json
> >
> > index ca9561fbf1..03b850bab7 100644
> >
> > --- a/qapi/migration.json
> >
> > +++ b/qapi/migration.json
> >
> > @@ -63,6 +63,10 @@
> >
> > # between 0 and @dirty-sync-count * @multifd-channels. (since
> >
> > # 7.1)
> >
> > #
> >
> > +# @zero-pages: number of zero pages (since 9.0)
> >
> > +#
> >
> > +# @zero-bytes: number of zero bytes sent (since 9.0)
> >
> > +#
> >
> > Discussion of v3 has led me to believe:
> >
> > 1. A page is either migrated as a normal page or as a zero page.
> >
> > 2. The following equations hold:
> >
> > @normal-bytes = @normal * @page-size
> >
> > @zero-bytes = @zero-pages * @page-size
> >
> > 3. @zero-pages is the same as @duplicate, with a better name. We intend
> >
> > to drop @duplicate eventually.
> >
> > If this is correct, I'd like you to
> >
> > A. Name it @zero for consistency with @normal. Disregard my advice to
> >
> > name it @zero-pages; two consistent bad names are better than one bad
> >
> > name, one good name, and inconsistency.
> >
> > B. Add @zero and @zero-bytes next to @normal and @normal-bytes.
> >
> > C. Deprecate @duplicate (item 3). Separate patch, please.
> >
> > D. Consider documenting more clearly what normal and zero pages are
> >
> > (item 1), and how @FOO, @FOO-pages and @page-size are related (item
> >
> > 2). Could be done in a followup patch.
I will move this out of the current patchset and put them into a seperate patchset. I think I am not totally understanding the exact process of deprecating an interface and hence will need your help to probably go a few more versions. And I read from earlier conversation the soft release for QEMU9.0 is 3/12 so hopefully the rest of this patchset can catch it.
> >
> > # Features:
> >
> > #
> >
> > # @deprecated: Member @skipped is always zero since 1.5.3
> >
> > @@ -81,7 +85,8 @@
> >
> > 'multifd-bytes': 'uint64', 'pages-per-second': 'uint64',
> >
> > 'precopy-bytes': 'uint64', 'downtime-bytes': 'uint64',
> >
> > 'postcopy-bytes': 'uint64',
> >
> > - 'dirty-sync-missed-zero-copy': 'uint64' } }
> >
> > + 'dirty-sync-missed-zero-copy': 'uint64',
> >
> > + 'zero-pages': 'int', 'zero-bytes': 'size' } }
> >
> > [...]
> >
>
next prev parent reply other threads:[~2024-03-09 6:57 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-01 2:28 [PATCH v4 0/7] Introduce multifd zero page checking Hao Xiang
2024-03-01 2:28 ` [PATCH v4 1/7] migration/multifd: Add new migration option zero-page-detection Hao Xiang
2024-03-01 7:24 ` Markus Armbruster
2024-03-04 7:01 ` Peter Xu
2024-03-01 2:28 ` [PATCH v4 2/7] migration/multifd: Implement zero page transmission on the multifd thread Hao Xiang
2024-03-01 7:28 ` Markus Armbruster
2024-03-01 22:49 ` [External] " Hao Xiang
2024-03-04 7:16 ` Peter Xu
2024-03-04 13:17 ` Fabiano Rosas
2024-03-04 14:31 ` Fabiano Rosas
2024-03-04 14:39 ` Fabiano Rosas
2024-03-04 18:24 ` Fabiano Rosas
[not found] ` <CAAYibXiLLztnPnKkGZKgXpD8HfSsFqdmhUGcETpzQDUoURRNwg@mail.gmail.com>
2024-03-09 8:08 ` hao.xiang
[not found] ` <CAAYibXi0xjpwayO1u8P4skjpeOuUteyuRmrhFHmjFwoRF2JWJg@mail.gmail.com>
2024-03-09 2:37 ` [External] " hao.xiang
2024-03-01 2:28 ` [PATCH v4 3/7] migration/multifd: Implement ram_save_target_page_multifd to handle multifd version of MigrationOps::ram_save_target_page Hao Xiang
2024-03-04 7:46 ` Peter Xu
[not found] ` <CAAYibXhCzozRhHxp2Dk3L9BMhFhZtqyvgbwkj+8ZGMCHURZGug@mail.gmail.com>
2024-03-09 2:06 ` hao.xiang
2024-03-11 13:20 ` Peter Xu
2024-03-11 18:02 ` hao.xiang
2024-03-01 2:28 ` [PATCH v4 4/7] migration/multifd: Enable multifd zero page checking by default Hao Xiang
2024-03-04 7:20 ` Peter Xu
2024-03-01 2:28 ` [PATCH v4 5/7] migration/multifd: Add new migration test cases for legacy zero page checking Hao Xiang
2024-03-04 7:23 ` Peter Xu
2024-03-01 2:28 ` [PATCH v4 6/7] migration/multifd: Add zero pages and zero bytes counter to migration status interface Hao Xiang
2024-03-01 7:40 ` Markus Armbruster
[not found] ` <CAAYibXjyMT5YJqOcDheDUB1qzi+JjFhAcv3L57zM9pCFMGbYbw@mail.gmail.com>
2024-03-09 6:56 ` hao.xiang [this message]
2024-03-01 2:28 ` [PATCH v4 7/7] Update maintainer contact for migration multifd zero page checking acceleration Hao Xiang
2024-03-04 7:34 ` Peter Xu
[not found] ` <CAAYibXjoji3GY7TW_USFsuT3YyVnv_kGFXpvBgK_kf9i1S1VSw@mail.gmail.com>
2024-03-09 8:13 ` hao.xiang
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=b52151927137b7f40a5b15fcea256d11da9935be@linux.dev \
--to=hao.xiang@linux.dev \
--cc=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=eblake@redhat.com \
--cc=eduardo@habkost.net \
--cc=farosas@suse.de \
--cc=jdenemar@redhat.com \
--cc=lvivier@redhat.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=pbonzini@redhat.com \
--cc=peterx@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
--cc=wangyanan55@huawei.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.