Skip to contentSkip to conversation

migration: Increase default max_downtime from 30ms to 300ms

PATCH In review Alexey Kardashevskiy 5 participants 10 messages Mar 27, 2014 – Jun 9, 2014 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 migration: Increase default max_downtime from 30ms to 300ms

The existing timeout is 30ms which on 100MB/s (1Gbit) gives us 3MB/s rate maximum. If we put some load on the guest, it is easy to get page dirtying rate too big so live migration will never complete. In the case of libvirt that means that the guest will be stopped anyway after a timeout specified in the "virsh migrate" command and this normally generates even bigger delay.

This changes max_downtime to 300ms which seems to be more reasonable value.

---
 migration.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
migration.c +1 -1
index e0e24d4..02bbce9 100644
@@ -144,7 +144,7 @@ void process_incoming_migration(QEMUFile *f)
  * the choice of nanoseconds is because it is the maximum resolution that
  * get_clock() can achieve. It is an internal measure. All user-visible
  * units must be in seconds */
-static uint64_t max_downtime = 30000000;
+static uint64_t max_downtime = 300000000;
 
 uint64_t migrate_max_downtime(void)
 {
Signature · 1 line
1.8.4.rc4
#1 lore raw

Adding Juan.

Quoted 28 lines · Alexey Kardashevskiy

The existing timeout is 30ms which on 100MB/s (1Gbit) gives us 3MB/s rate maximum. If we put some load on the guest, it is easy to get page dirtying rate too big so live migration will never complete. In the case of libvirt that means that the guest will be stopped anyway after a timeout specified in the "virsh migrate" command and this normally generates even bigger delay.

This changes max_downtime to 300ms which seems to be more reasonable value.

---
 migration.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
migration.c +1 -1
index e0e24d4..02bbce9 100644
@@ -144,7 +144,7 @@ void process_incoming_migration(QEMUFile *f)
  * the choice of nanoseconds is because it is the maximum resolution that
  * get_clock() can achieve. It is an internal measure. All user-visible
  * units must be in seconds */
-static uint64_t max_downtime = 30000000;
+static uint64_t max_downtime = 300000000;
 
 uint64_t migrate_max_downtime(void)
 {

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 11 lines · Alexey Kardashevskiy
Quoted 5 lines · Alexey Kardashevskiy
Quoted 1 line · Markus Armbruster

Adding Juan.

Ping?

Ping?

Ping?

Quoted 36 lines
Quoted 34 lines
Quoted 32 lines
Quoted 28 lines · Alexey Kardashevskiy

The existing timeout is 30ms which on 100MB/s (1Gbit) gives us 3MB/s rate maximum. If we put some load on the guest, it is easy to get page dirtying rate too big so live migration will never complete. In the case of libvirt that means that the guest will be stopped anyway after a timeout specified in the "virsh migrate" command and this normally generates even bigger delay.

This changes max_downtime to 300ms which seems to be more reasonable value.

---
 migration.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
migration.c +1 -1
index e0e24d4..02bbce9 100644
@@ -144,7 +144,7 @@ void process_incoming_migration(QEMUFile *f)
  * the choice of nanoseconds is because it is the maximum resolution that
  * get_clock() can achieve. It is an internal measure. All user-visible
  * units must be in seconds */
-static uint64_t max_downtime = 30000000;
+static uint64_t max_downtime = 300000000;
 
 uint64_t migrate_max_downtime(void)
 {
Signature · 1 line
Alexey
#5 lore raw
In reply to a message not in the archive
Quoted 6 lines · Alexey Kardashevskiy
Quoted 5 lines · Alexey Kardashevskiy
Quoted 1 line · Markus Armbruster

Adding Juan.

Ping?

Patch is OK for me.

As sender says, with guests doing anything/bigger than 1GB RAM is basically implosible to get into the 30ms downtime.

Later, Juan.

Quoted 39 lines

Ping?

Quoted 34 lines
Quoted 32 lines
Quoted 28 lines · Alexey Kardashevskiy

The existing timeout is 30ms which on 100MB/s (1Gbit) gives us 3MB/s rate maximum. If we put some load on the guest, it is easy to get page dirtying rate too big so live migration will never complete. In the case of libvirt that means that the guest will be stopped anyway after a timeout specified in the "virsh migrate" command and this normally generates even bigger delay.

This changes max_downtime to 300ms which seems to be more reasonable value.

---
 migration.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
migration.c +1 -1
index e0e24d4..02bbce9 100644
@@ -144,7 +144,7 @@ void process_incoming_migration(QEMUFile *f)
  * the choice of nanoseconds is because it is the maximum resolution that
  * get_clock() can achieve. It is an internal measure. All user-visible
  * units must be in seconds */
-static uint64_t max_downtime = 30000000;
+static uint64_t max_downtime = 300000000;
 
 uint64_t migrate_max_downtime(void)
 {
#6 lore raw
Quoted 9 lines · Juan Quintela
Quoted 6 lines · Alexey Kardashevskiy
Quoted 5 lines · Alexey Kardashevskiy
Quoted 1 line · Markus Armbruster

Adding Juan.

Ping?

Patch is OK for me.

Who else needs to be ok to get this in upstream? :) Thanks!

Quoted 44 lines

As sender says, with guests doing anything/bigger than 1GB RAM is basically implosible to get into the 30ms downtime.

Later, Juan.

Quoted 39 lines

Ping?

Quoted 34 lines
Quoted 32 lines
Quoted 28 lines · Alexey Kardashevskiy

The existing timeout is 30ms which on 100MB/s (1Gbit) gives us 3MB/s rate maximum. If we put some load on the guest, it is easy to get page dirtying rate too big so live migration will never complete. In the case of libvirt that means that the guest will be stopped anyway after a timeout specified in the "virsh migrate" command and this normally generates even bigger delay.

This changes max_downtime to 300ms which seems to be more reasonable value.

---
 migration.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
migration.c +1 -1
index e0e24d4..02bbce9 100644
@@ -144,7 +144,7 @@ void process_incoming_migration(QEMUFile *f)
  * the choice of nanoseconds is because it is the maximum resolution that
  * get_clock() can achieve. It is an internal measure. All user-visible
  * units must be in seconds */
-static uint64_t max_downtime = 30000000;
+static uint64_t max_downtime = 300000000;
 
 uint64_t migrate_max_downtime(void)
 {
Signature · 1 line
Alexey
#7 lore raw
Quoted 7 lines · Alexey Kardashevskiy
Quoted 6 lines · Juan Quintela
Quoted 5 lines · Alexey Kardashevskiy
Quoted 4 lines · Alexey Kardashevskiy
Quoted 1 line · Markus Armbruster

Adding Juan.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line

Ping?

Patch is OK for me.

Who else needs to be ok to get this in upstream? :) Thanks!

Peter?
David?
Paolo? (I think to remember that they are ok with it)

Thanks, Juan.

#8 lore raw

Il 04/06/2014 12:25, Juan Quintela ha scritto:

Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

Who else needs to be ok to get this in upstream? :) Thanks!

Peter?
David?
Paolo? (I think to remember that they are ok with it)

Certainly okay by me.

Paolo

Reviewed-by on v1 1/1
#9 lore raw
In reply to Alexey Kardashevskiy
Quoted 11 lines · Alexey Kardashevskiy

The existing timeout is 30ms which on 100MB/s (1Gbit) gives us 3MB/s rate maximum. If we put some load on the guest, it is easy to get page dirtying rate too big so live migration will never complete. In the case of libvirt that means that the guest will be stopped anyway after a timeout specified in the "virsh migrate" command and this normally generates even bigger delay.

This changes max_downtime to 300ms which seems to be more reasonable value.

Amit

#10 lore raw
Quoted 8 lines · Amit Shah
Quoted 7 lines · Alexey Kardashevskiy

The existing timeout is 30ms which on 100MB/s (1Gbit) gives us 3MB/s rate maximum. If we put some load on the guest, it is easy to get page dirtying rate too big so live migration will never complete. In the case of libvirt that means that the guest will be stopped anyway after a timeout specified in the "virsh migrate" command and this normally generates even bigger delay.

Quoted 6 lines
Quoted 4 lines

This changes max_downtime to 300ms which seems to be more reasonable value.

Cool, thanks!

But what is next? The patch is > 2 months old and it is simple and everything but it did not make it to any tree so far :)

Signature · 1 line
Alexey
#11 lore raw
Quoted 12 lines · Alexey Kardashevskiy
Quoted 11 lines · Amit Shah
Quoted 10 lines · Alexey Kardashevskiy

The existing timeout is 30ms which on 100MB/s (1Gbit) gives us 3MB/s rate maximum. If we put some load on the guest, it is easy to get page dirtying rate too big so live migration will never complete. In the case of libvirt that means that the guest will be stopped anyway after a timeout specified in the "virsh migrate" command and this normally generates even bigger delay.

This changes max_downtime to 300ms which seems to be more reasonable value.

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

Cool, thanks!

But what is next? The patch is > 2 months old and it is simple and everything but it did not make it to any tree so far :)

I'll pester Juan to get it in :-)

Amit