[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/2] migration: Set the socket backlog number to reduce the c
Re: [PATCH 2/2] migration: Set the socket backlog number to reduce the chance of live migration failure
Fri, 26 Nov 2021 17:44:55 +0100
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0
On 11/26/21 5:32 PM, Juan Quintela wrote:
Li Zhang <firstname.lastname@example.org> wrote:
When creating the guest on destination with -incoming ip:port in QEMU command
the source code that sets the backlog number as the same as multifd channels
get called. So the number of backlog is always 1. It's very easy to cause live
failure, so a bigger number is preferred to reduce the chance of the failure.
Signed-off-by: Li Zhang <email@example.com>
migration/socket.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/migration/socket.c b/migration/socket.c
index 05705a32d8..398d4c10fa 100644
@@ -152,7 +152,7 @@ socket_start_incoming_migration_internal(SocketAddress
QIONetListener *listener = qio_net_listener_new();
MigrationIncomingState *mis = migration_incoming_get_current();
- int num = 1;
+ int num = 16;
Here, the right answer is to use -incoming defer.
Ok, thanks a lot.
[PATCH 2/2] migration: Set the socket backlog number to reduce the chance of live migration failure, Li Zhang, 2021/11/26