More migration stats
cover More migration stats
Hi
Just updating documentation for migration stats and sorting them.
Please review.
Juan Quintela (2):
migration: Document all migration_stats
migration: Put zero_pages in alphabetical order
migration/migration-stats.h | 45 ++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-)
Signature · 1 line
2.40.0
PATCH 1/2 migration: Document all migration_stats
--- migration/migration-stats.h | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+)
migration/migration-stats.h +43 -0
@@ -22,17 +22,60 @@* one thread). */ typedef struct { +/* +* number of bytes that were dirty last time that we sync with the +* guest memory. We use that to calculate the downtime. As the +* remaining dirty amounts to what we know that is still dirty +* since last iteration, not counting what the guest has dirtied +* sync we synchronize bitmaps. +*/ Stat64 dirty_bytes_last_sync; +/* +* number of pages dirtied by second. +*/ Stat64 dirty_pages_rate; +/* +* number of times we have synchronize guest bitmaps. +*/ Stat64 dirty_sync_count; +/* +* number of times zero copy failed to send any page using zero +* copy. +*/ Stat64 dirty_sync_missed_zero_copy; +/* +* number of bytes sent at migration completion stage while the +* guest is stopped. +*/ Stat64 downtime_bytes; +/* +* number of pages transferred that were full of zeros. +*/ Stat64 zero_pages; +/* +* number of bytes sent through multifd channels. +*/ Stat64 multifd_bytes; +/* +* number of pages transferred that were not full of zeros. +*/ Stat64 normal_pages; +/* +* number of bytes sent during postcopy. +*/ Stat64 postcopy_bytes; +/* +* number of postcopy page faults that we have handled during +* postocpy stage. +*/ Stat64 postcopy_requests; +/* +* number of bytes sent during precopy stage. +*/ Stat64 precopy_bytes; +/* +* total number of bytes transferred. +*/ Stat64 transferred; }MigrationAtomicStats ;
Signature · 1 line
2.40.0
Re: [PATCH 1/2] migration: Document all migration_stats
Quoted 10 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- migration/migration-stats.h | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+)migration/migration-stats.h +0
-0
migration/migration-stats.h line 26
Quoted 5 lines
migration/migration-stats.h +2
-0@@ -22,17 +22,60 @@* one thread). */ typedef struct { + /* + * number of bytes that were dirty last time that we sync with the
s/sync/synced/
migration/migration-stats.h line 30
Quoted 4 lines
migration/migration-stats.h +4
-0+* guest memory. We use that to calculate the downtime. As the +* remaining dirty amounts to what we know that is still dirty +* since last iteration, not counting what the guest has dirtied +* sync we synchronize bitmaps.
s/synchronize/synchronized/
migration/migration-stats.h line 34
Quoted 4 lines
migration/migration-stats.h +3
-0+*/ Stat64 dirty_bytes_last_sync; +/* +* number of pages dirtied by second.
s/by/per/
migration/migration-stats.h line 38
Quoted 4 lines
migration/migration-stats.h +3
-0+*/ Stat64 dirty_pages_rate; +/* +* number of times we have synchronize guest bitmaps.
s/synchronize/synchronized/
migration/migration-stats.h line 69
Quoted 4 lines
migration/migration-stats.h +3
-0Stat64 postcopy_bytes; +/* +* number of postcopy page faults that we have handled during +* postocpy stage.
s/postocpy/postcopy/
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Re: [PATCH 1/2] migration: Document all migration_stats
Quoted 38 lines · Daniel P. Berrangé
Quoted 10 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- migration/migration-stats.h | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+)migration/migration-stats.h +0
-0migration/migration-stats.h line 26
Quoted 5 lines
migration/migration-stats.h +2
-0@@ -22,17 +22,60 @@* one thread). */ typedef struct { + /* + * number of bytes that were dirty last time that we sync with thes/sync/synced/
migration/migration-stats.h line 30
Quoted 4 lines
migration/migration-stats.h +4
-0+* guest memory. We use that to calculate the downtime. As the +* remaining dirty amounts to what we know that is still dirty +* since last iteration, not counting what the guest has dirtied +* sync we synchronize bitmaps. s/synchronize/synchronized/
migration/migration-stats.h line 34
Quoted 4 lines
migration/migration-stats.h +3
-0+*/ Stat64 dirty_bytes_last_sync; +/* +* number of pages dirtied by second. s/by/per/
migration/migration-stats.h line 38
Quoted 4 lines
migration/migration-stats.h +3
-0+*/ Stat64 dirty_pages_rate; +/* +* number of times we have synchronize guest bitmaps.
Quoted 8 lines
s/synchronize/synchronized/
migration/migration-stats.h line 69
Quoted 4 lines
migration/migration-stats.h +3
-0Stat64 postcopy_bytes; +/* +* number of postcopy page faults that we have handled during +* postocpy stage. s/postocpy/postcopy/
Integrated all of them.
Quoted 3 lines
Reviewed-by Daniel P. Berrangé <[email protected]>
Thanks.
Quoted 3 lines
With regards,
Daniel
Re: [PATCH 1/2] migration: Document all migration_stats
In reply to Juan QuintelaQuoted 1 line · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>
Quoted 9 lines
--- migration/migration-stats.h | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+)migration/migration-stats.h +0
-0
migration/migration-stats.h line 26
Quoted 5 lines
migration/migration-stats.h +2
-0@@ -22,17 +22,60 @@* one thread). */ typedef struct { + /* + * number of bytes that were dirty last time that we sync with the
Minor, but given that you are writing sentences, please start with a capital letter.
Quoted 37 lines
migration/migration-stats.h +29
-0+* guest memory. We use that to calculate the downtime. As the +* remaining dirty amounts to what we know that is still dirty +* since last iteration, not counting what the guest has dirtied +* sync we synchronize bitmaps. +*/ Stat64 dirty_bytes_last_sync; +/* +* number of pages dirtied by second. +*/ Stat64 dirty_pages_rate; +/* +* number of times we have synchronize guest bitmaps. +*/ Stat64 dirty_sync_count; +/* +* number of times zero copy failed to send any page using zero +* copy. +*/ Stat64 dirty_sync_missed_zero_copy; +/* +* number of bytes sent at migration completion stage while the +* guest is stopped. +*/ Stat64 downtime_bytes; +/* +* number of pages transferred that were full of zeros. +*/ Stat64 zero_pages; +/* +* number of bytes sent through multifd channels. +*/ Stat64 multifd_bytes; +/* +* number of pages transferred that were not full of zeros. +*/ Stat64 normal_pages; +/*
migration/migration-stats.h line 73
Quoted 10 lines
migration/migration-stats.h +8
-0+* number of bytes sent during postcopy. +*/ Stat64 postcopy_bytes; +/* +* number of postcopy page faults that we have handled during +* postocpy stage. +*/ Stat64 postcopy_requests; +/* +* number of bytes sent during precopy stage.
Spurious double space before 'number'.
Quoted 10 lines
migration/migration-stats.h +4
-0+*/ Stat64 precopy_bytes; +/* +* total number of bytes transferred. +*/ Stat64 transferred; } MigrationAtomicStats;Signature · 1 line
2.40.0
Signature · 1 line
I'm not the reason you're looking for redemption.
Re: [PATCH 1/2] migration: Document all migration_stats
Quoted 5 lines · David Edmondson
Quoted 1 line · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>Reviewed-by David Edmondson <[email protected]>
Thanks.
Quoted 4 lines
Quoted 4 lines
--- migration/migration-stats.h | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+)
Quoted 13 lines
migration/migration-stats.h line 26
Quoted 10 lines
migration/migration-stats.h +2
-0@@ -22,17 +22,60 @@* one thread). */ typedef struct { + /* + * number of bytes that were dirty last time that we sync with theMinor, but given that you are writing sentences, please start with a capital letter.
Done.
Quoted 49 lines
Quoted 38 lines
migration/migration-stats.h +29
-0+* guest memory. We use that to calculate the downtime. As the +* remaining dirty amounts to what we know that is still dirty +* since last iteration, not counting what the guest has dirtied +* sync we synchronize bitmaps. +*/ Stat64 dirty_bytes_last_sync; +/* +* number of pages dirtied by second. +*/ Stat64 dirty_pages_rate; +/* +* number of times we have synchronize guest bitmaps. +*/ Stat64 dirty_sync_count; +/* +* number of times zero copy failed to send any page using zero +* copy. +*/ Stat64 dirty_sync_missed_zero_copy; +/* +* number of bytes sent at migration completion stage while the +* guest is stopped. +*/ Stat64 downtime_bytes; +/* +* number of pages transferred that were full of zeros. +*/ Stat64 zero_pages; +/* +* number of bytes sent through multifd channels. +*/ Stat64 multifd_bytes; +/* +* number of pages transferred that were not full of zeros. +*/ Stat64 normal_pages; +/* migration/migration-stats.h line 73
Quoted 10 lines
migration/migration-stats.h +8
-0+* number of bytes sent during postcopy. +*/ Stat64 postcopy_bytes; +/* +* number of postcopy page faults that we have handled during +* postocpy stage. +*/ Stat64 postcopy_requests; +/* +* number of bytes sent during precopy stage.
Quoted 1 line
Spurious double space before 'number'.
Done.
PATCH 2/2 migration: Put zero_pages in alphabetical order
In reply to Juan QuintelaI forgot to move it when I rename it from duplicated_pages.
--- migration/migration-stats.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
migration/migration-stats.h +4 -4
@@ -48,10 +48,6 @@ typedef struct {* guest is stopped. */ Stat64 downtime_bytes; -/* -* number of pages transferred that were full of zeros. -*/ -Stat64 zero_pages;/* * number of bytes sent through multifd channels. */
@@ -77,6 +73,10 @@ typedef struct {* total number of bytes transferred. */ Stat64 transferred; +/* +* number of pages transferred that were full of zeros. +*/ +Stat64 zero_pages; } MigrationAtomicStats;extern MigrationAtomicStats mig_stats;
Signature · 1 line
2.40.0
Re: [PATCH 2/2] migration: Put zero_pages in alphabetical order
Quoted 6 lines · Juan Quintela
I forgot to move it when I rename it from
duplicated_pages.Signed-off-by Juan Quintela <[email protected]>--- migration/migration-stats.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Re: [PATCH 2/2] migration: Put zero_pages in alphabetical order
In reply to Juan QuintelaQuoted 3 lines · Juan Quintela
I forgot to move it when I rename it from
duplicated_pages.Signed-off-by Juan Quintela <[email protected]>
Quoted 32 lines
--- migration/migration-stats.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)migration/migration-stats.h +4
-4@@ -48,10 +48,6 @@ typedef struct {* guest is stopped. */ Stat64 downtime_bytes; -/* -* number of pages transferred that were full of zeros. -*/ -Stat64 zero_pages;/* * number of bytes sent through multifd channels. */ @@ -77,6 +73,10 @@ typedef struct {* total number of bytes transferred. */ Stat64 transferred; +/* +* number of pages transferred that were full of zeros. +*/ +Stat64 zero_pages; } MigrationAtomicStats;extern MigrationAtomicStats mig_stats;Signature · 1 line
2.40.0
Signature · 1 line
I've got a little black book with my poems in.
Re: [PATCH 2/2] migration: Put zero_pages in alphabetical order
In reply to Juan QuintelaQuoted 3 lines · Juan Quintela
I forgot to move it when I rename it from
duplicated_pages.Signed-off-by Juan Quintela <[email protected]>
Signature · 1 line
Peter Xu