[pve-devel] [PATCH 1/2] hugepages: check if numa node exist only if hugepages are enabled

Wolfgang Bumiller w.bumiller at proxmox.com
Fri Jul 29 11:15:38 CEST 2016


Applied this first patch, waiting with the second one until we're
finished with the foreach_dimm part I mentioned in the other mail.

On Fri, Jul 29, 2016 at 05:17:33AM +0200, Alexandre Derumier wrote:
> Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
> ---
>  PVE/QemuServer/Memory.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/PVE/QemuServer/Memory.pm b/PVE/QemuServer/Memory.pm
> index 047ddad..58c7217 100644
> --- a/PVE/QemuServer/Memory.pm
> +++ b/PVE/QemuServer/Memory.pm
> @@ -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;
> -- 
> 2.1.4
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 



More information about the pve-devel mailing list