]> git.proxmox.com Git - qemu-server.git/commitdiff
hugepages: check if numa node exist only if hugepages are enabled
authorAlexandre Derumier <aderumier@odiso.com>
Fri, 29 Jul 2016 03:17:33 +0000 (05:17 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 29 Jul 2016 07:50:53 +0000 (09:50 +0200)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/QemuServer/Memory.pm

index 047ddadc2ddcb6e87cb835ef6071839b2abd1526..58c7217ca8480035cc6144eccc3ef28565dfb4a8 100644 (file)
@@ -263,7 +263,7 @@ sub config {
            my $numa_memory = ($static_memory / $sockets);
 
            for (my $i = 0; $i < $sockets; $i++)  {
-               die "host NUMA node$i doesn't exist\n" if ! -d "/sys/devices/system/node/node$i/";
+               die "host NUMA node$i doesn't exist\n" if ! -d "/sys/devices/system/node/node$i/" && $conf->{hugepages};
 
                my $cpustart = ($cores * $i);
                my $cpuend = ($cpustart + $cores - 1) if $cores && $cores > 1;