[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 02/10] migration: Add counters of updating the di
From: |
arei.gonglei |
Subject: |
[Qemu-devel] [PATCH v3 02/10] migration: Add counters of updating the dirty bitmap |
Date: |
Tue, 18 Mar 2014 20:24:16 +0800 |
From: ChenLiang <address@hidden>
Add counters to log the times of updating the dirty bitmap.
Signed-off-by: ChenLiang <address@hidden>
Signed-off-by: Gonglei <address@hidden>
---
arch_init.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch_init.c b/arch_init.c
index 2ac68c2..d1e9199 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -110,6 +110,8 @@ static bool mig_throttle_on;
static int dirty_rate_high_cnt;
static void check_guest_throttling(void);
+static uint64_t bitmap_sync_counter;
+
/***********************************************************/
/* ram save/restore */
@@ -487,6 +489,8 @@ static void migration_bitmap_sync(void)
int64_t end_time;
int64_t bytes_xfer_now;
+ bitmap_sync_counter++;
+
if (!bytes_xfer_prev) {
bytes_xfer_prev = ram_bytes_transferred();
}
@@ -734,6 +738,7 @@ static int ram_save_setup(QEMUFile *f, void *opaque)
migration_dirty_pages = ram_pages;
mig_throttle_on = false;
dirty_rate_high_cnt = 0;
+ bitmap_sync_counter = 0;
if (migrate_use_xbzrle()) {
qemu_mutex_lock_iothread();
--
1.7.12.4
- [Qemu-devel] [PATCH v3 00/10] migration: Optimizate the xbzrle and fix two corruption issues, arei.gonglei, 2014/03/18
- [Qemu-devel] [PATCH v3 01/10] XBZRLE: Fix one XBZRLE corruption issues, arei.gonglei, 2014/03/18
- [Qemu-devel] [PATCH v3 04/10] migration: expose xbzrle cache miss rate, arei.gonglei, 2014/03/18
- [Qemu-devel] [PATCH v3 02/10] migration: Add counters of updating the dirty bitmap,
arei.gonglei <=
- [Qemu-devel] [PATCH v3 08/10] migration: optimize xbzrle by reducing data copy, arei.gonglei, 2014/03/18
- [Qemu-devel] [PATCH v3 07/10] migration: Fix the migrate auto converge process, arei.gonglei, 2014/03/18
- [Qemu-devel] [PATCH v3 05/10] XBZRLE: optimize XBZRLE to decrease the cache missing, arei.gonglei, 2014/03/18
- [Qemu-devel] [PATCH v3 10/10] XBZRLE: update the doc of XBZRLE, arei.gonglei, 2014/03/18
- [Qemu-devel] [PATCH v3 03/10] migration: expose the bitmap_sync_counter to the end user, arei.gonglei, 2014/03/18
- [Qemu-devel] [PATCH v3 06/10] XBZRLE: rebuild the cache_is_cached function, arei.gonglei, 2014/03/18