Skip to contentSkip to conversation

More migration stats

PATCH In review Juan Quintela 4 participants 10 messages May 4, 2023 – May 25, 2023

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

PATCH 1/2 migration: Document all migration_stats

---
 migration/migration-stats.h | 43 +++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
migration/migration-stats.h +43 -0
index 149af932d7..0e49c236fa 100644
@@ -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
Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] migration: Document all migration_stats

Quoted 10 lines · Juan Quintela
---
 migration/migration-stats.h | 43 +++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
migration/migration-stats.h +0 -0
index 149af932d7..0e49c236fa 100644

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 -0
     Stat64 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 :|
#3 lore raw

Re: [PATCH 1/2] migration: Document all migration_stats

Quoted 38 lines · Daniel P. Berrangé
Quoted 10 lines · Juan Quintela
---
 migration/migration-stats.h | 43 +++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
migration/migration-stats.h +0 -0
index 149af932d7..0e49c236fa 100644

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.
Quoted 8 lines

s/synchronize/synchronized/

migration/migration-stats.h line 69

Quoted 4 lines
migration/migration-stats.h +3 -0
     Stat64 postcopy_bytes;
+    /*
+     * number of postcopy page faults that we have handled during
+     * postocpy stage.

s/postocpy/postcopy/

Integrated all of them.

Quoted 3 lines

Thanks.

Quoted 3 lines

With regards,
Daniel

Reviewed-by on v1 1/2
#4 lore raw

Re: [PATCH 1/2] migration: Document all migration_stats

In reply to Juan Quintela
Quoted 1 line · Juan Quintela
Quoted 9 lines
---
 migration/migration-stats.h | 43 +++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
migration/migration-stats.h +0 -0
index 149af932d7..0e49c236fa 100644

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.
#5 lore raw

Re: [PATCH 1/2] migration: Document all migration_stats

Quoted 5 lines · David Edmondson
Quoted 1 line · Juan Quintela

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
index 149af932d7..0e49c236fa 100644
@@ -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.

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.

#6 lore raw

PATCH 2/2 migration: Put zero_pages in alphabetical order

In reply to Juan Quintela

I 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
index 0e49c236fa..b87ba30ea8 100644
@@ -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
Reviewed-by on v1 2/2
#7 lore raw

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.

---
 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 :|
Reviewed-by on v1 2/2
#8 lore raw

Re: [PATCH 2/2] migration: Put zero_pages in alphabetical order

In reply to Juan Quintela
Quoted 3 lines · Juan Quintela

I forgot to move it when I rename it from duplicated_pages.

Quoted 32 lines
---
 migration/migration-stats.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
migration/migration-stats.h +4 -4
index 0e49c236fa..b87ba30ea8 100644
@@ -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.