On Tue, Mar 28, 2017 at 12:56:06PM +0200, Juan Quintela wrote:
> Peter Xu <[email protected]> wrote:
> > On Thu, Mar 23, 2017 at 09:44:58PM +0100, Juan Quintela wrote:
> >> Signed-off-by: Juan Quintela <[email protected]>
> >> Reviewed-by: Dr. David Alan Gilbert <[email protected]>
> >
> > Reviewed-by: Peter Xu <[email protected]>
> >
> > (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>.
>
> 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 <[email protected]>
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,
-- peterx