From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ct9Zp-0007sg-Lb for qemu-devel@nongnu.org; Wed, 29 Mar 2017 05:07:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ct9Zo-00033V-MW for qemu-devel@nongnu.org; Wed, 29 Mar 2017 05:07:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49440) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ct9Zo-00032I-GF for qemu-devel@nongnu.org; Wed, 29 Mar 2017 05:07:36 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 96F3481250 for ; Wed, 29 Mar 2017 09:07:35 +0000 (UTC) Date: Wed, 29 Mar 2017 17:07:29 +0800 From: Peter Xu Message-ID: <20170329090729.GH3152@pxdev.xzpeter.org> References: <20170323204544.12015-1-quintela@redhat.com> <20170323204544.12015-6-quintela@redhat.com> <20170327073407.GB11497@pxdev.xzpeter.org> <87wpb9r7p5.fsf@secure.mitica> <20170329065533.GD3152@pxdev.xzpeter.org> <87poh0o409.fsf@secure.mitica> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87poh0o409.fsf@secure.mitica> Subject: Re: [Qemu-devel] [PATCH 05/51] ram: Move bitmap_sync_count into RAMState List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: qemu-devel@nongnu.org, dgilbert@redhat.com On Wed, Mar 29, 2017 at 10:56:22AM +0200, Juan Quintela wrote: > Peter Xu wrote: > > On Tue, Mar 28, 2017 at 12:56:06PM +0200, Juan Quintela wrote: > >> Peter Xu wrote: > >> > On Thu, Mar 23, 2017 at 09:44:58PM +0100, Juan Quintela wrote: > >> >> Signed-off-by: Juan Quintela > >> >> Reviewed-by: Dr. David Alan Gilbert > >> > > >> > Reviewed-by: Peter Xu > >> > > >> > (I see that we have MigrationStats.dirty_pages_rate which looks > >> > similar to this one. Maybe one day we can merge these two?) > >> > >> no, this one is how many times we have synchronized the dirty bitmap > >> with kvm/rest of qemu. > >> dirty_pages_rame is the pages we have dirtied in some . > >> > >> Period is not clear, it tries to be around one second, but that part is > >> not specially well done. > > > > Oh, sorry... I was trying to mean MigrationStats.dirty_sync_count, not > > MigrationStats.dirty_pages_rate. I think it was introduced in: > > > > commit 58570ed894631904bcdbcd1e8b34479cebe2aae9 > > Author: ChenLiang > > Date: Fri Apr 4 17:57:55 2014 +0800 > > > > migration: expose the bitmap_sync_count to the end > > > > And these two variables are synchronized every time in > > migration_bitmap_sync(), so looks the same. Thanks, > > Ah, now I understand you. See this patch, it does what you suggest, no? > > [PATCH 31/51] ram: Create ram_dirty_sync_count() Yes, it is. :) -- peterx