[pve-devel] [PATCH qemu-server 1/1] increase start timeout when hugepages are enabled.
    Alexandre Derumier 
    aderumier at odiso.com
       
    Tue Jan  9 18:42:46 CET 2018
    
    
  
Hugepages can take some time to be allocated by qemu at start (60s for 120G of 1G hugepages).
This patch increase start timeout to 5min when hugepages are enabled.
---
 PVE/QemuServer.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 3e3c93e..1ca3456 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -4688,7 +4688,8 @@ sub vm_start {
 	my $cpuunits = defined($conf->{cpuunits}) ? $conf->{cpuunits}
 	                                          : $defaults->{cpuunits};
 
-	my %run_params = (timeout => $statefile ? undef : 30, umask => 0077);
+	my $start_timeout = $conf->{hugepages} ? 300 : 30;
+	my %run_params = (timeout => $statefile ? undef : $start_timeout, umask => 0077);
 
 	my %properties = (
 	    Slice => 'qemu.slice',
-- 
2.11.0
    
    
More information about the pve-devel
mailing list