From: liuhaiwei
the limit of maximum of rx_queue_size and tx_queue to 1024 is so small as to
affect our network performance when using the virtio-net and vhost ,
we cannot set the maximum size beyond 1k.
why not enlarge the maximum size (such as 4096) when using the vhost backend?
Signed-off
the limit of maximum of rx_queue_size and tx_queue to 1024 is so small as to
affect our network performance when using the virtio-net and vhost ,
we cannot set the maximum size beyond 1k.
why not enlarge the maximum size (such as 4096) when using the vhost backend?
Signed-off-by: liuhaiwei
Signed-off-by: liuhaiwei
---
hw/net/virtio-net.c | 8
hw/virtio/virtio.c | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c
index d63ef24e6a..df16995146 100644
--- a/hw/net/virtio-net.c
+++ b/hw/net/virtio-net.c
@@ -3479,23
Signed-off-by: liuhaiwei
---
hw/virtio/virtio.c | 10 +++---
include/hw/virtio/virtio.h | 1 +
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c
index 5d607aeaa0..d93c20d747 100644
--- a/hw/virtio/virtio.c
+++ b/hw/virtio/virtio.c
Set the max of tx_queue_size to 4096 even if the backends
are not vhost-user.
Set the default of rx/tx_queue_size to 2048 if the backends
are vhost-user, otherwise to 4096.
Signed-off-by: liuhaiwei
---
hw/net/virtio-net.c | 40 ++--
1 file changed, 30
From: liuhaiwei
bug description as https://gitlab.com/qemu-project/qemu/-/issues/1203
Usually,we use the precopy or postcopy mode to migrate block dirty bitmap.
but if block-dirty-bitmap size more than threshold size,we cannot entry the
migration_completion in migration_iteration_run function
From: liuhaiwei
1、dirty bitmap size big enough (such as 8MB) when block size 1T ;
2、we set the migrate speed or the bandwith is small enough(such as 4MB/s)
so we set the fake pending size when pending size > threshold size
Signed-off-by: liuhaiwei
Signed-off-by: liuhaiwei
---
migration/bl
From: liuhaiwei
Signed-off-by: liuhaiwei
---
docs/memory-hotplug.txt | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/docs/memory-hotplug.txt b/docs/memory-hotplug.txt
index 6aa5e17e26..85ed4d8f3d 100644
--- a/docs/memory-hotplug.txt
+++ b/docs/memory-hotplug.txt
From: liuhaiwei
so we set the fake pending size when pending size > threshold size
Signed-off-by: liuhaiwei
Signed-off-by: liuhaiwei
---
migration/block-dirty-bitmap.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/migration/block-dirty-bitmap.c b/migration/bl