summaryrefslogtreecommitdiffstats
path: root/migration/trace-events
diff options
context:
space:
mode:
authorHyman Huang(黄勇)2021-06-29 18:01:23 +0200
committerJuan Quintela2021-11-01 22:56:43 +0100
commit0e21bf24608b801bcdf6057f47808613061ecbe3 (patch)
tree5fd087963ca41e229e1aa9e8131b6855e8a2ed7d /migration/trace-events
parentmigration/dirtyrate: move init step of calculation to main thread (diff)
downloadqemu-0e21bf24608b801bcdf6057f47808613061ecbe3.tar.gz
qemu-0e21bf24608b801bcdf6057f47808613061ecbe3.tar.xz
qemu-0e21bf24608b801bcdf6057f47808613061ecbe3.zip
migration/dirtyrate: implement dirty-ring dirtyrate calculation
use dirty ring feature to implement dirtyrate calculation. introduce mode option in qmp calc_dirty_rate to specify what method should be used when calculating dirtyrate, either page-sampling or dirty-ring should be passed. introduce "dirty_ring:-r" option in hmp calc_dirty_rate to indicate dirty ring method should be used for calculation. Signed-off-by: Hyman Huang(黄勇) <huangy81@chinatelecom.cn> Message-Id: <7db445109bd18125ce8ec86816d14f6ab5de6a7d.1624040308.git.huangy81@chinatelecom.cn> Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration/trace-events')
-rw-r--r--migration/trace-events2
1 files changed, 2 insertions, 0 deletions
diff --git a/migration/trace-events b/migration/trace-events
index a8ae163707..b48d873b8a 100644
--- a/migration/trace-events
+++ b/migration/trace-events
@@ -333,6 +333,8 @@ get_ramblock_vfn_hash(const char *idstr, uint64_t vfn, uint32_t crc) "ramblock n
calc_page_dirty_rate(const char *idstr, uint32_t new_crc, uint32_t old_crc) "ramblock name: %s, new crc: %" PRIu32 ", old crc: %" PRIu32
skip_sample_ramblock(const char *idstr, uint64_t ramblock_size) "ramblock name: %s, ramblock size: %" PRIu64
find_page_matched(const char *idstr) "ramblock %s addr or size changed"
+dirtyrate_calculate(int64_t dirtyrate) "dirty rate: %" PRIi64 " MB/s"
+dirtyrate_do_calculate_vcpu(int idx, uint64_t rate) "vcpu[%d]: %"PRIu64 " MB/s"
# block.c
migration_block_init_shared(const char *blk_device_name) "Start migration for %s with shared base image"