All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/1] COLO: only flush dirty ram pages from colo cache
@ 2020-09-10 10:46 Derek Su
  2020-09-10 10:46 ` [PATCH v1 1/1] " Derek Su
  0 siblings, 1 reply; 9+ messages in thread
From: Derek Su @ 2020-09-10 10:46 UTC (permalink / raw)
  To: qemu-devel; +Cc: Derek Su, zhang.zhanghailiang, dgilbert, quintela

In the secondary side, the colo_flush_ram_cache() calls
migration_bitmap_find_dirty() finding the dirty pages and
flushes them to host. But ram_state's ram_bulk_stage flag is always
enabled in secondary side, it leads to the whole ram pages copy
instead of only dirty pages.

In the test VM with 4GB RAM under the steady state, the
colo_flush_ram_cache() consumes 650 ms.

Here, the ram_bulk_stage flag in secondary side is disabled in the
preparation of COLO incoming process to avoid the whole dirty ram
pages flush.

After patching, the time consumption of colo_flush_ram_cache() is
reduced to 10 ms averagely.

Please help to review and give comments, thanks a lot!


Derek Su (1):
  COLO: only flush dirty ram pages from colo cache

 migration/colo.c |  6 +++++-
 migration/ram.c  | 10 ++++++++++
 migration/ram.h  |  3 +++
 3 files changed, 18 insertions(+), 1 deletion(-)

-- 
2.25.1



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-09-22  5:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-10 10:46 [PATCH v1 0/1] COLO: only flush dirty ram pages from colo cache Derek Su
2020-09-10 10:46 ` [PATCH v1 1/1] " Derek Su
2020-09-22  3:31   ` Derek Su
2020-09-22  3:41     ` Zhang, Chen
2020-09-22  3:48       ` Derek Su
2020-09-22  5:04         ` Rao, Lei
2020-09-22  5:18           ` Derek Su
2020-09-22  5:37             ` Zhang, Chen
2020-09-22  5:46               ` Derek Su

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.