]> git.proxmox.com Git - mirror_qemu.git/commit - migration/ram.c
migration: Count new_dirty instead of real_dirty
authorKeqian Zhu <zhukeqian1@huawei.com>
Mon, 22 Jun 2020 03:20:37 +0000 (11:20 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 3 Jul 2020 15:23:05 +0000 (16:23 +0100)
commitfb6135807fcab4670d69663ac88e88e124348ffd
treec6efa8ee3ca8d2c30759ac43426d18f4f6510e15
parent617a32f5295ee4efcc17abadcecc3cf482c98e80
migration: Count new_dirty instead of real_dirty

real_dirty_pages becomes equal to total ram size after dirty log sync
in ram_init_bitmaps, the reason is that the bitmap of ramblock is
initialized to be all set, so old path counts them as "real dirty" at
beginning.

This causes wrong dirty rate and false positive throttling.

Signed-off-by: Keqian Zhu <zhukeqian1@huawei.com>
Message-Id: <20200622032037.31112-1-zhukeqian1@huawei.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
include/exec/ram_addr.h
migration/ram.c