From: Eric Blake <eblake@redhat.com>
To: arei.gonglei@huawei.com, qemu-devel@nongnu.org
Cc: ChenLiang <chenliang88@huawei.com>,
owasserm@redhat.com, pbonzini@redhat.com,
weidong.huang@huawei.com, quintela@redhat.com
Subject: Re: [Qemu-devel] [PATCH v3 05/10] XBZRLE: optimize XBZRLE to decrease the cache missing
Date: Thu, 20 Mar 2014 13:43:14 -0600 [thread overview]
Message-ID: <532B44D2.30704@redhat.com> (raw)
In-Reply-To: <1395145464-5524-6-git-send-email-arei.gonglei@huawei.com>
[-- Attachment #1: Type: text/plain, Size: 2325 bytes --]
On 03/18/2014 06:24 AM, arei.gonglei@huawei.com wrote:
> From: ChenLiang <chenliang88@huawei.com>
In the subject: s/missing/misses/
>
> Avoid hot pages being replaced by others to remarkably decrease cache
s/cache/cache misses/
>
> before this patch:
> virsh qemu-monitor-command test_vm '{"execute": "query-migrate"}'
> {"return":{"expected-downtime":1020,"xbzrle-cache":{"bytes":1108284,
1.1M bytes saved by compression,
> "cache-size":8388608,"cache-miss-rate":0.987013,"pages":18297,"overflow":8,
18k pages sent compressed
> "cache-miss":1228737},"status":"active","setup-time":10,"total-time":52398,
> "ram":{"total":12466991104,"remaining":1695744,"mbps":935.559472,
> "transferred":5780760580,"dirty-sync-counter":271,"duplicate":2878530,
> "dirty-pages-rate":29130,"skipped":0,"normal-bytes":5748592640,
> "normal":1403465}},"id":"libvirt-706"}
>
> cache-miss-rate is 98.7%, totally miss.
>
> after optimizing:
> virsh qemu-monitor-command test_vm '{"execute": "query-migrate"}'
> {"return":{"expected-downtime":2054,"xbzrle-cache":{"bytes":5066763,
5.0M bytes saved by compression
> "cache-size":8388608,"cache-miss-rate":0.485924,"pages":194823,"overflow":0,
194k pages sent compressed
> "cache-miss":210653},"status":"active","setup-time":11,"total-time":18729,
And reduced from 52 milleseconds to just under 19 on total time.
Definite improvements!
> "ram":{"total":12466991104,"remaining":3895296,"mbps":937.663549,
> "transferred":1615042219,"dirty-sync-counter":98,"duplicate":2869840,
> "dirty-pages-rate":58781,"skipped":0,"normal-bytes":1588404224,
> "normal":387794}},"id":"libvirt-266"}
>
> The value of cache-miss-rate decrease 49.13%.
s/decrease/decreased to/
>
> Signed-off-by: ChenLiang <chenliang88@huawei.com>
> Signed-off-by: Gonglei <arei.gonglei@huawei.com>
> ---
> arch_init.c | 8 +++++---
> include/migration/page_cache.h | 10 +++++++---
> page_cache.c | 23 +++++++++++++++++++----
> 3 files changed, 31 insertions(+), 10 deletions(-)
>
Reviewed-by: Eric Blake <eblake@redhat.com>
However, I think it would be worth squashing patch 10 into this one.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2014-03-20 19:43 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-18 12:24 [Qemu-devel] [PATCH v3 00/10] migration: Optimizate the xbzrle and fix two corruption issues arei.gonglei
2014-03-18 12:24 ` [Qemu-devel] [PATCH v3 01/10] XBZRLE: Fix one XBZRLE " arei.gonglei
2014-03-18 12:24 ` [Qemu-devel] [PATCH v3 02/10] migration: Add counters of updating the dirty bitmap arei.gonglei
2014-03-20 19:29 ` Eric Blake
2014-03-18 12:24 ` [Qemu-devel] [PATCH v3 03/10] migration: expose the bitmap_sync_counter to the end user arei.gonglei
2014-03-20 19:28 ` Eric Blake
2014-03-18 12:24 ` [Qemu-devel] [PATCH v3 04/10] migration: expose xbzrle cache miss rate arei.gonglei
2014-03-20 19:32 ` Eric Blake
2014-03-18 12:24 ` [Qemu-devel] [PATCH v3 05/10] XBZRLE: optimize XBZRLE to decrease the cache missing arei.gonglei
2014-03-20 19:43 ` Eric Blake [this message]
2014-03-18 12:24 ` [Qemu-devel] [PATCH v3 06/10] XBZRLE: rebuild the cache_is_cached function arei.gonglei
2014-03-20 17:56 ` Dr. David Alan Gilbert
2014-03-20 19:44 ` Eric Blake
2014-03-20 20:09 ` Eric Blake
2014-03-18 12:24 ` [Qemu-devel] [PATCH v3 07/10] migration: Fix the migrate auto converge process arei.gonglei
2014-03-18 12:24 ` [Qemu-devel] [PATCH v3 08/10] migration: optimize xbzrle by reducing data copy arei.gonglei
2014-03-18 12:24 ` [Qemu-devel] [PATCH v3 09/10] migration: clear the dead code arei.gonglei
2014-03-18 12:24 ` [Qemu-devel] [PATCH v3 10/10] XBZRLE: update the doc of XBZRLE arei.gonglei
2014-03-20 19:53 ` Eric Blake
2014-03-20 19:56 ` [Qemu-devel] [PATCH v3 00/10] migration: Optimizate the xbzrle and fix two corruption issues Eric Blake
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=532B44D2.30704@redhat.com \
--to=eblake@redhat.com \
--cc=arei.gonglei@huawei.com \
--cc=chenliang88@huawei.com \
--cc=owasserm@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=weidong.huang@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).