From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ct9P3-0005b6-Jt for qemu-devel@nongnu.org; Wed, 29 Mar 2017 04:56:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ct9P0-0007IW-I3 for qemu-devel@nongnu.org; Wed, 29 Mar 2017 04:56:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41504) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ct9P0-0007HD-Co for qemu-devel@nongnu.org; Wed, 29 Mar 2017 04:56:26 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 26226437F75 for ; Wed, 29 Mar 2017 08:56:25 +0000 (UTC) From: Juan Quintela In-Reply-To: <20170329065533.GD3152@pxdev.xzpeter.org> (Peter Xu's message of "Wed, 29 Mar 2017 14:55:33 +0800") 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> Reply-To: quintela@redhat.com Date: Wed, 29 Mar 2017 10:56:22 +0200 Message-ID: <87poh0o409.fsf@secure.mitica> MIME-Version: 1.0 Content-Type: text/plain 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: Peter Xu Cc: qemu-devel@nongnu.org, dgilbert@redhat.com 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() Later, Juan.