Received: from eggs.gnu.org ([2001:4830:134:3::10]:56943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhPYE-0000Ia-8F for qemu-devel@nongnu.org; Mon, 05 May 2014 16:31:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WhPY9-00017j-0K for qemu-devel@nongnu.org; Mon, 05 May 2014 16:31:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhPY8-00017d-Q6 for qemu-devel@nongnu.org; Mon, 05 May 2014 16:31:44 -0400 From: Juan Quintela Date: Mon, 5 May 2014 22:30:32 +0200 Message-Id: <1399321834-31310-35-git-send-email-quintela@redhat.com> In-Reply-To: <1399321834-31310-1-git-send-email-quintela@redhat.com> References: <1399321834-31310-1-git-send-email-quintela@redhat.com> Subject: [Qemu-devel] [PATCH 34/36] migration: Add counts of updating the dirty bitmap List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: ChenLiang , Gonglei From: ChenLiang Add counts to log the times of updating the dirty bitmap. Signed-off-by: ChenLiang Signed-off-by: Gonglei Reviewed-by: Eric Blake Signed-off-by: Juan Quintela --- arch_init.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch_init.c b/arch_init.c index 0ffecee..c02bce6 100644 --- a/arch_init.c +++ b/arch_init.c @@ -111,6 +111,8 @@ static bool mig_throttle_on; static int dirty_rate_high_cnt; static void check_guest_throttling(void); +static uint64_t bitmap_sync_count; + /***********************************************************/ /* ram save/restore */ @@ -488,6 +490,8 @@ static void migration_bitmap_sync(void) int64_t end_time; int64_t bytes_xfer_now; + bitmap_sync_count++; + if (!bytes_xfer_prev) { bytes_xfer_prev = ram_bytes_transferred(); } @@ -732,6 +736,7 @@ static int ram_save_setup(QEMUFile *f, void *opaque) mig_throttle_on = false; dirty_rate_high_cnt = 0; + bitmap_sync_count = 0; if (migrate_use_xbzrle()) { XBZRLE_cache_lock(); -- 1.9.0