5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-10 01:18:01 +03:00

increase start timeout when hugepages are enabled.

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.
This commit is contained in:
Alexandre Derumier 2018-01-09 18:42:46 +01:00 committed by Wolfgang Bumiller
parent d40d949455
commit f38de678e4

View File

@ -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',