From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: zhukeqian <zhukeqian1@huawei.com>
Cc: zhang.zhanghailiang@huawei.com,
Paolo Bonzini <pbonzini@redhat.com>,
Juan Quintela <quintela@redhat.com>,
Chao Fan <fanc.fnst@cn.fujitsu.com>,
qemu-devel@nongnu.org, qemu-arm@nongnu.org,
jianjay.zhou@huawei.com, wanghaibin.wang@huawei.com
Subject: Re: [PATCH v2] migration: Count new_dirty instead of real_dirty
Date: Tue, 16 Jun 2020 10:58:46 +0100 [thread overview]
Message-ID: <20200616095846.GA2788@work-vm> (raw)
In-Reply-To: <3a45d5a0-3acf-336d-520f-523bf588b551@huawei.com>
* zhukeqian (zhukeqian1@huawei.com) wrote:
> Hi Dave,
>
> On 2020/6/16 17:35, Dr. David Alan Gilbert wrote:
> > * Keqian Zhu (zhukeqian1@huawei.com) wrote:
> >> real_dirty_pages becomes equal to total ram size after dirty log sync
> >> in ram_init_bitmaps, the reason is that the bitmap of ramblock is
> >> initialized to be all set, so old path counts them as "real dirty" at
> >> beginning.
> >>
> >> This causes wrong dirty rate and false positive throttling at the end
> >> of first ram save iteration.
> >>
> >> Signed-off-by: Keqian Zhu <zhukeqian1@huawei.com>
> >
> > Since this function already returns num_dirty, why not just change the
> > caller to increment a counter based off the return value?
> Yes, that would be better :-) .
>
> >
> > Can you point to the code which is using this value that triggers the
> > throttle?
> >
> In migration_trigger_throttle(), rs->num_dirty_pages_period is used.
> And it corresponds to real_dirty_pages here.
OK; so is the problem not the same as the check that's in there for
blk_mig_bulk_activate - don't we need to do the same trick for ram bulk
migration (i.e. the first pass).
Dave
> Thanks,
> Keqian
>
> > Dave
> >
> >
> [...]
> >>
> >>
> > --
> > Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
> >
> > .
> >
>
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
next prev parent reply other threads:[~2020-06-16 10:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-16 2:10 [PATCH v2] migration: Count new_dirty instead of real_dirty Keqian Zhu
2020-06-16 9:35 ` Dr. David Alan Gilbert
2020-06-16 9:48 ` zhukeqian
2020-06-16 9:58 ` Dr. David Alan Gilbert [this message]
2020-06-16 11:20 ` zhukeqian
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=20200616095846.GA2788@work-vm \
--to=dgilbert@redhat.com \
--cc=fanc.fnst@cn.fujitsu.com \
--cc=jianjay.zhou@huawei.com \
--cc=pbonzini@redhat.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=wanghaibin.wang@huawei.com \
--cc=zhang.zhanghailiang@huawei.com \
--cc=zhukeqian1@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).