From: Asias He Date: Mon, 4 Jun 2012 15:10:04 +0000 (+0800) Subject: kvm tools: Increase AIO_MAX to 256 X-Git-Tag: next-20120724~32^2~82^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b9137f616884386484319f33cd6bec2839486233;p=karo-tx-linux.git 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 --- 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;