[pve-devel] [PATCH v2] fix #2402: allow 1GB hugepages if 2MB is unavailable

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Oct 10 15:43:33 CEST 2019


On 10/10/19 12:18 PM, Stefan Reiter wrote:
> As reported in bug #2402, a system started with "default_hugepagesz=1G
> hugepagesz=1G" does not have a /sys/kernel/mm/hugepages/hugepages-2048kB
> directory.
> 
> To fix, ignore the missing directory in hugepages_mount (since it might
> not be needed anyway), and correctly check if the requested hugepage
> size is available in hugepages_size instead.
> 
> Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
> ---
> 
> v2: Correct error message if 1GB hugepages would be supported, but memory is not
> a multiple of 1024
> 
>  PVE/QemuServer/Memory.pm | 16 +++++++++++-----
>  1 file changed, 11 insertions(+), 5 deletions(-)
> 

applied, thanks!




More information about the pve-devel mailing list