From b9137f616884386484319f33cd6bec2839486233 Mon Sep 17 00:00:00 2001 From: Asias He Date: Mon, 4 Jun 2012 23:10:04 +0800 Subject: [PATCH] kvm tools: Increase AIO_MAX to 256 The queue size for virtio_blk is 256 and AIO_MAX is 32, we might be short of available aio events if guest issues > 32 requests simultaneously. Following error is observed when guest running stressed I/O workload. Info: disk_image__read error: total=-11 To fix this, let's increase the aio events limit. Signed-off-by: Asias He Signed-off-by: Pekka Enberg --- tools/kvm/disk/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kvm/disk/core.c b/tools/kvm/disk/core.c index 2b482c6a5184..2739dcdb6f8a 100644 --- a/tools/kvm/disk/core.c +++ b/tools/kvm/disk/core.c @@ -6,7 +6,7 @@ #include #include -#define AIO_MAX 32 +#define AIO_MAX 256 int debug_iodelay; -- 2.39.5