aboutsummaryrefslogtreecommitdiff
path: root/migration/migration.h
diff options
context:
space:
mode:
authorXiao Guangrong <xiaoguangrong@tencent.com>2019-01-11 14:37:30 +0800
committerDr. David Alan Gilbert <dgilbert@redhat.com>2019-01-23 15:51:47 +0000
commitaecbfe9c64a6005f57b2132eb29db2ba7c0993fe (patch)
tree5c1b0e10566754158d5ab04af72ea4bb7adfa5c0 /migration/migration.h
parentde22ded044db6b78ef8c04b8045c63683751613f (diff)
migration: introduce pages-per-second
It introduces a new statistic, pages-per-second, as bandwidth or mbps is not enough to measure the performance of posting pages out as we have compression, xbzrle, which can significantly reduce the amount of the data size, instead, pages-per-second is the one we want Signed-off-by: Xiao Guangrong <xiaoguangrong@tencent.com> Message-Id: <20190111063732.10484-2-xiaoguangrong@tencent.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> With typo's Eric spotted fixed
Diffstat (limited to 'migration/migration.h')
-rw-r--r--migration/migration.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/migration/migration.h b/migration/migration.h
index 02b7304610..dcd05d9f87 100644
--- a/migration/migration.h
+++ b/migration/migration.h
@@ -126,7 +126,13 @@ struct MigrationState
*/
QemuSemaphore rate_limit_sem;
- /* bytes already send at the beggining of current interation */
+ /* pages already send at the beginning of current iteration */
+ uint64_t iteration_initial_pages;
+
+ /* pages transferred per second */
+ double pages_per_second;
+
+ /* bytes already send at the beginning of current iteration */
uint64_t iteration_initial_bytes;
/* time at the start of current iteration */
int64_t iteration_start_time;
@@ -271,6 +277,8 @@ bool migrate_use_block_incremental(void);
int migrate_max_cpu_throttle(void);
bool migrate_use_return_path(void);
+uint64_t ram_get_total_transferred_pages(void);
+
bool migrate_use_compression(void);
int migrate_compress_level(void);
int migrate_compress_threads(void);