diff options
author | Kunkun Jiang | 2021-03-16 13:57:16 +0100 |
---|---|---|
committer | Dr. David Alan Gilbert | 2021-05-13 19:21:13 +0200 |
commit | ba1b7c812c1efa49f9c297b6a22c598ff0eb5a4b (patch) | |
tree | 2e2af203529ac74af5ca61cf7425943441b49cc2 /.gitattributes | |
parent | migration/ram: Reduce unnecessary rate limiting (diff) | |
download | qemu-ba1b7c812c1efa49f9c297b6a22c598ff0eb5a4b.tar.gz qemu-ba1b7c812c1efa49f9c297b6a22c598ff0eb5a4b.tar.xz qemu-ba1b7c812c1efa49f9c297b6a22c598ff0eb5a4b.zip |
migration/ram: Optimize ram_save_host_page()
Starting from pss->page, ram_save_host_page() will check every page
and send the dirty pages up to the end of the current host page or
the boundary of used_length of the block. If the host page size is
a huge page, the step "check" will take a lot of time.
It will improve performance to use migration_bitmap_find_dirty().
Tested on Kunpeng 920; VM parameters: 1U 4G (page size 1G)
The time of ram_save_host_page() in the last round of ram saving:
before optimize: 9250us after optimize: 34us
Signed-off-by: Keqian Zhu <zhukeqian1@huawei.com>
Signed-off-by: Kunkun Jiang <jiangkunkun@huawei.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-Id: <20210316125716.1243-3-jiangkunkun@huawei.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions