Skip to content

How do I fix the warning "Not enough hugepage resources for VMA memory allocation"? #1054

@zhangasia

Description

@zhangasia

VMA WARNING: **************************************************************
VMA WARNING: * NO IMMEDIATE ACTION NEEDED!
VMA WARNING: * Not enough hugepage resources for VMA memory allocation.
VMA WARNING: * VMA will continue working with regular memory allocation.
VMA INFO: * Optional:
VMA INFO: * 1. Switch to a different memory allocation type
VMA INFO: * (VMA_MEM_ALLOC_TYPE!= 2)
VMA INFO: * 2. Restart process after increasing the number of
VMA INFO: * hugepages resources in the system:
VMA INFO: * "echo 1000000000 > /proc/sys/kernel/shmmax"
VMA INFO: * "echo 800 > /proc/sys/vm/nr_hugepages"
VMA WARNING: * Please refer to the memory allocation section in the VMA's
VMA WARNING: * User Manual for more information
VMA WARNING: **************************************************************

The configuration of my computer

Linux GPU03 4.19.0-25-amd64 #1 SMP Debian 4.19.289-2 (2023-08-08) x86_64 GNU/Linux
OS: Debian GNU/Linux 10 (buster) x86_64 
Kernel: 4.19.0-25-amd64 
CPU: Intel Xeon Gold 5317 (24) @ 3.600GHz 
GPU: NVIDIA NVIDIA Corporation Device 2204 
Memory: 6082MiB / 515663MiB

libvma version: 9.8.40

I have tried the following command.

echo 1000000000 > /proc/sys/kernel/shmmax
echo 800 > /proc/sys/vm/nr_hugepages

I'm sure it was executed correctly, but there is still this warning. How can I eliminate this warning?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions