Mellanox / libvma

Linux user space library for network socket acceleration based on RDMA compatible network adaptors
https://www.mellanox.com/products/software/accelerator-software/vma?mtag=vma
Other
557 stars 152 forks source link

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

Open zhangasia opened 7 months ago

zhangasia commented 7 months ago

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?