diff options
author | Hyman Huang(黄勇) <huangy81@chinatelecom.cn> | 2021-07-20 23:19:16 +0800 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2021-11-01 22:56:44 +0100 |
commit | 4998a37e4bf2bc47f76775e6e6a0cd50bacfb16a (patch) | |
tree | 8fbbe5f9fa968b54bf63948034db6d7d46db6064 /migration | |
parent | 6fee3a1fd9ecde99c43e659cf8eb6c35c116d05e (diff) |
memory: introduce total_dirty_pages to stat dirty pages
introduce global var total_dirty_pages to stat dirty pages
along with memory_global_dirty_log_sync.
Signed-off-by: Hyman Huang(黄勇) <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')
-rw-r--r-- | migration/dirtyrate.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/migration/dirtyrate.c b/migration/dirtyrate.c index f92c4b498e..17b3d2cbb5 100644 --- a/migration/dirtyrate.c +++ b/migration/dirtyrate.c @@ -28,6 +28,13 @@ #include "sysemu/runstate.h" #include "exec/memory.h" +/* + * total_dirty_pages is procted by BQL and is used + * to stat dirty pages during the period of two + * memory_global_dirty_log_sync + */ +uint64_t total_dirty_pages; + typedef struct DirtyPageRecord { uint64_t start_pages; uint64_t end_pages; |