From: Hyman Huang <huangy81@chinatelecom.cn>
To: Zheng Chuan <zhengchuan@huawei.com>, Peter Xu <peterx@redhat.com>
Cc: Eduardo Habkost <ehabkost@redhat.com>,
Juan Quintela <quintela@redhat.com>,
qemu-devel@nongnu.org, Xiexiangyou <xiexiangyou@huawei.com>,
"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [PATCH v12 0/6] support dirtyrate at the granualrity of vcpu
Date: Thu, 28 Oct 2021 12:26:27 +0800 [thread overview]
Message-ID: <90a0b1ed-5742-ae91-47a9-4115cfb79af5@chinatelecom.cn> (raw)
In-Reply-To: <c5c179f1-6b3c-0aa5-7f69-f8d7ad554373@huawei.com>
在 2021/10/27 14:31, Zheng Chuan 写道:
> Hi.
> I have no objection for the implement code itself.
> But we should know or let the user know the performance penalty and conflicted with migration compared to the hash method, especially for the performance of vm with hugepages.
i dirty guest memory with 1G and do the measurement with two method.
the copy rate is almost 1,665 MB/s in vm
the following output is guest memory performance when do measurement
with dirty ring method:
/init (00001): INFO: 1635392998977ms copied 1 GB in 00616ms
/init (00001): INFO: 1635392999593ms copied 1 GB in 00615ms
/init (00001): INFO: 1635393000211ms copied 1 GB in 00616ms
----------------- start measurement -----------------------
/init (00001): INFO: 1635393000884ms copied 1 GB in 00672ms
/init (00001): INFO: 1635393001849ms copied 1 GB in 00963ms
/init (00001): INFO: 1635393002578ms copied 1 GB in 00727ms
----------------- end measurement -----------------------
/init (00001): INFO: 1635393003195ms copied 1 GB in 00615ms
/init (00001): INFO: 1635393003811ms copied 1 GB in 00614ms
/init (00001): INFO: 1635393004427ms copied 1 GB in 00615ms
guest memory performance do not trigger any changes almostly with hash
method:
the following is test results (measurment interval=1s):
method measurement result copy rate during measurement
hash 44 MB/s 1,665MB/s
dirty ring 1167 MB/s 1,523MB/s、1,063MB/s、1,408MB/s
the max penalty is 36% during test interval(1s), the average penalty is
20%。
if we trade off accurance, the dirty ring method may be a availiabe
method for user. users can select a appropriate method as they need.
>
> On 2021/10/15 10:07, Hyman Huang wrote:
>>
>>
>> 在 2021/10/15 9:32, Peter Xu 写道:
>>> On Wed, Jun 30, 2021 at 12:01:17AM +0800, huangy81@chinatelecom.cn wrote:
>>>> From: Hyman Huang(黄勇) <huangy81@chinatelecom.cn>
>>>>
>>>> v12
>>>> - adjust the order of calculating dirty rate
>>>> let memory_global_dirty_log_sync before calculating as
>>>> v11 version description.
>>>
>>> Ping for Yong. >
>>> Dave/Juan, any plan to review/merge this series (along with the other series of
>>> dirty logging)?
>>>
>>> I found it useful when I wanted to modify the program I used to generate
>>> constant dirty workload - this series can help me to verify the change.
>>>
>>> I still keep thinking this series is something good to have. Thanks,
>> the dirtyrate calculation has already been used to estimate time of live migration in "e cloud" production of chinatelecom, it also predict the migration success ratio, which provide valuable information for the cloud management plane when selecting which vm should be migrated.
>>>
>>
>
--
Best regard
Hyman Huang(黄勇)
prev parent reply other threads:[~2021-10-28 4:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-29 16:01 [PATCH v12 0/6] support dirtyrate at the granualrity of vcpu huangy81
2021-06-29 16:01 ` [PATCH v12 1/6] KVM: introduce dirty_pages and kvm_dirty_ring_enabled huangy81
2021-06-29 16:01 ` [PATCH v12 2/6] memory: make global_dirty_tracking a bitmask huangy81
2021-06-29 16:01 ` [PATCH v12 3/6] migration/dirtyrate: introduce struct and adjust DirtyRateStat huangy81
2021-06-29 16:01 ` [PATCH v12 4/6] migration/dirtyrate: adjust order of registering thread huangy81
2021-06-29 16:01 ` [PATCH v12 5/6] migration/dirtyrate: move init step of calculation to main thread huangy81
2021-06-29 16:01 ` [PATCH v12 6/6] migration/dirtyrate: implement dirty-ring dirtyrate calculation huangy81
2021-08-29 23:11 ` [PATCH v12 0/6] support dirtyrate at the granualrity of vcpu Hyman
2021-09-20 15:45 ` Hyman
2021-09-20 16:00 ` Peter Xu
2021-10-15 1:32 ` Peter Xu
2021-10-15 2:07 ` Hyman Huang
2021-10-27 6:31 ` Zheng Chuan
2021-10-28 4:26 ` Hyman Huang [this message]
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=90a0b1ed-5742-ae91-47a9-4115cfb79af5@chinatelecom.cn \
--to=huangy81@chinatelecom.cn \
--cc=dgilbert@redhat.com \
--cc=ehabkost@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peterx@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=xiexiangyou@huawei.com \
--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 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.