]> xenbits.xensource.com Git - xen.git/commitdiff
libxl: increase hotplug timeout to 40s
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 4 Aug 2015 10:02:55 +0000 (12:02 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 5 Aug 2015 09:39:40 +0000 (10:39 +0100)
The default libxl timeout for hotplug scripts execution is too low, when
launching 40 HVM guests in parallel, all using the same file as disk,
execution times of ~20s are expected. Increase the timeout to 40s in order
to be sure hotplug scripts have enough time to execute.

This is a short term solution.

Reported-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_internal.h

index 2771c71af0bdc8559b02deaa91faff9a2b7518f6..29e04291b52095e8e9f6aee641e564cade41ac85 100644 (file)
@@ -86,7 +86,7 @@
 
 #define LIBXL_INIT_TIMEOUT 10
 #define LIBXL_DESTROY_TIMEOUT 10
-#define LIBXL_HOTPLUG_TIMEOUT 10
+#define LIBXL_HOTPLUG_TIMEOUT 40
 /* QEMU may be slow to load and start due to a bug in Linux where the I/O
  * subsystem sometime produce high latency under load. */
 #define LIBXL_DEVICE_MODEL_START_TIMEOUT 60