]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: Increase AIO_MAX to 256
authorAsias He <asias.hejun@gmail.com>
Mon, 4 Jun 2012 15:10:04 +0000 (23:10 +0800)
committerPekka Enberg <penberg@kernel.org>
Tue, 12 Jun 2012 09:09:52 +0000 (12:09 +0300)
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 <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/disk/core.c

index 2b482c6a51842557832adce1c12ac4df499d284d..2739dcdb6f8aac65e35e3adc260d3646d65e793a 100644 (file)
@@ -6,7 +6,7 @@
 #include <sys/eventfd.h>
 #include <sys/poll.h>
 
-#define AIO_MAX 32
+#define AIO_MAX 256
 
 int debug_iodelay;