diff options
author | 2022-11-29 12:04:04 +0800 | |
---|---|---|
committer | 2023-02-06 19:22:56 +0100 | |
commit | bd9510d38546a19aa2e58e1a94597acfb0fd82d4 (patch) | |
tree | 7bc978d7b91d0460697e471ef9f3ff92020b0a09 /scripts/coverage/compare_gcov_json.py | |
parent | migration: Perform vmsd structure check during tests (diff) | |
download | qemu-bd9510d38546a19aa2e58e1a94597acfb0fd82d4.tar.xz qemu-bd9510d38546a19aa2e58e1a94597acfb0fd82d4.zip |
migration/dirtyrate: Show sample pages only in page-sampling mode
The value of "Sample Pages" is confusing in mode other than page-sampling.
See below:
(qemu) calc_dirty_rate -b 10 520
(qemu) info dirty_rate
Status: measuring
Start Time: 11646834 (ms)
Sample Pages: 520 (per GB)
Period: 10 (sec)
Mode: dirty-bitmap
Dirty rate: (not ready)
(qemu) info dirty_rate
Status: measured
Start Time: 11646834 (ms)
Sample Pages: 0 (per GB)
Period: 10 (sec)
Mode: dirty-bitmap
Dirty rate: 2 (MB/s)
While it's totally useless in dirty-ring and dirty-bitmap mode, fix to
show it only in page-sampling mode.
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
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 'scripts/coverage/compare_gcov_json.py')
0 files changed, 0 insertions, 0 deletions