From: Juan Quintela <quintela@redhat.com>
To: <gudkov.andrei@huawei.com>
Cc: <qemu-devel@nongnu.org>, <eblake@redhat.com>,
<armbru@redhat.com>, <berrange@redhat.com>,
<zhengchuan@huawei.com>, <eduardo@habkost.net>,
<marcel.apfelbaum@gmail.com>
Subject: Re: [PATCH v2 2/4] migration/calc-dirty-rate: detailed stats in sampling mode
Date: Thu, 18 May 2023 17:13:39 +0200 [thread overview]
Message-ID: <875y8pd658.fsf@secure.mitica> (raw)
In-Reply-To: <ZGY5ttHypAtAhFSi@DESKTOP-0LHM7NF.china.huawei.com> (gudkov andrei's message of "Thu, 18 May 2023 17:45:26 +0300")
<gudkov.andrei@huawei.com> wrote:
> On Mon, May 15, 2023 at 10:22:43AM +0200, Juan Quintela wrote:
>> <gudkov.andrei@huawei.com> wrote:
>> > On Wed, May 10, 2023 at 07:36:33PM +0200, Juan Quintela wrote:
>> >> Andrei Gudkov <gudkov.andrei@huawei.com> wrote:
>> >> > Collect number of dirty pages for progresseively increasing time
>> >> > periods starting with 125ms up to number of seconds specified with
>> >> > calc-dirty-rate. Report through qmp and hmp: 1) vector of dirty page
>> >> > measurements, 2) page size, 3) total number of VM pages, 4) number
>> >> > of sampled pages.
>> >> >
>> >> > 3 files changed, 160 insertions(+), 54 deletions(-)
>> >> >
>> >> > diff --git a/migration/dirtyrate.c b/migration/dirtyrate.c
>> >> > index acba3213a3..4491bbe91a 100644
>> >> > --- a/migration/dirtyrate.c
>> >> > +++ b/migration/dirtyrate.c
>> >> > @@ -224,6 +224,7 @@ static struct DirtyRateInfo *query_dirty_rate_info(void)
>> >> > info->calc_time = DirtyStat.calc_time;
>> >> > info->sample_pages = DirtyStat.sample_pages;
>> >> > info->mode = dirtyrate_mode;
>> >> > + info->page_size = TARGET_PAGE_SIZE;
>> >>
>> >> I thought we exported this trough ""info migrate"
>> >> but we do it only if we are in the middle of a migration. Perhaps we
>> >> should print it always.
>> >
>> > So, which one do you prefer? To keep it here or to make "info migrate" print it always (or both)?
>>
>> info migrate to print it allways. Thanks.
>
> I looked into "info migrate". To print page size irregarding migration status,
> all other 17 fields of MigrationInfo.ram will have to be made optional.
> Atop of that, it feels like that page size doesn't belong to "info migrate"
> since it is the only one "static" value, while all others are "dynamic" counters.
>
> I think I found a better place where page size can be reported --
> query-memory-size-summary. After the change it would be as following:
> {"execute": "query-memory-size-summary"}
> {"return": {"page-size": 4096, "base-memory": 34359738368, "plugged-memory": 0}}
>
> What do you think about it?
Perfect for me.
Thanks.
next prev parent reply other threads:[~2023-05-18 15:14 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-27 12:42 [PATCH v2 0/4] Migration time prediction using calc-dirty-rate Andrei Gudkov via
2023-04-27 12:42 ` [PATCH v2 1/4] migration/calc-dirty-rate: replaced CRC32 with xxHash Andrei Gudkov via
2023-05-10 16:54 ` Juan Quintela
2023-04-27 12:42 ` [PATCH v2 2/4] migration/calc-dirty-rate: detailed stats in sampling mode Andrei Gudkov via
2023-05-10 17:36 ` Juan Quintela
2023-05-12 13:18 ` gudkov.andrei--- via
2023-05-15 8:22 ` Juan Quintela
2023-05-18 14:45 ` gudkov.andrei--- via
2023-05-18 15:13 ` Juan Quintela [this message]
2023-05-15 8:23 ` Juan Quintela
2023-05-11 6:14 ` Markus Armbruster
2023-05-12 14:24 ` gudkov.andrei--- via
2023-05-30 3:06 ` Wang, Lei
2023-04-27 12:42 ` [PATCH v2 3/4] migration/calc-dirty-rate: added n-zero-pages metric Andrei Gudkov via
2023-05-10 17:57 ` Juan Quintela
2023-04-27 12:43 ` [PATCH v2 4/4] migration/calc-dirty-rate: tool to predict migration time Andrei Gudkov via
2023-05-10 18:01 ` Juan Quintela
2023-05-30 3:21 ` Wang, Lei
2023-06-02 13:06 ` gudkov.andrei--- via
2023-05-30 15:46 ` [PATCH v2 0/4] Migration time prediction using calc-dirty-rate Peter Xu
2023-05-31 14:46 ` gudkov.andrei--- via
2023-05-31 15:03 ` Peter Xu
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=875y8pd658.fsf@secure.mitica \
--to=quintela@redhat.com \
--cc=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=eblake@redhat.com \
--cc=eduardo@habkost.net \
--cc=gudkov.andrei@huawei.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=zhengchuan@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 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).