From: Jiri Denemark Subject: [RFC][PATCH] Increase hotplug timeout Date: Wed, 15 Apr 2009 16:41:42 +0200 Message-ID: <20090415144142.GA9633@orkuz.home> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="envbJBWh7q8WU6mo" Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi. When a process in dom0 is writing huge amount of data to a disk in parallel to creating new domain, it may take quite a lot of time until all hotplug scripts finish. For example, on my system it takes almost 5 minutes to start all hotplug scripts. So it seems 100 seconds is not enough for such scenarios as xend would give up waiting for hotplug scripts too early. What do you think about the attached patch, which increases the timeout to 10 minutes? Of course, the dark side of this change is that it would take ages to recognize hotplug scripts are not really working. Thanks for your opinions on this. Signed-off-by: Jiri Denemark --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="hoplug-timeout.patch" diff --git a/tools/python/xen/xend/server/DevConstants.py b/tools/python/xen/xend/server/DevConstants.py --- a/tools/python/xen/xend/server/DevConstants.py +++ b/tools/python/xen/xend/server/DevConstants.py @@ -16,7 +16,7 @@ # Copyright (C) 2005 XenSource Ltd #============================================================================ -DEVICE_CREATE_TIMEOUT = 100 +DEVICE_CREATE_TIMEOUT = 600 DEVICE_DESTROY_TIMEOUT = 100 HOTPLUG_STATUS_NODE = "hotplug-status" HOTPLUG_ERROR_NODE = "hotplug-error" --envbJBWh7q8WU6mo Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --envbJBWh7q8WU6mo--