现象

调用spdk_dma_zmalloc() 申请大页内存失败,即便延时重试页发现对有的size的大页内存也持续申请失败

解决思路.

解决方法:

系统大页初始化的时候尝试用1G大页;

操作命令如下:

减小大页内存池的预申请size和规模

先停掉其他占用大页多的进程再启动因为申请大页失败无法启动的进程,再启动前面停掉的进程

指定在对应的numa node上多申请大页内存

   echo "The following environment variables can be specified."
    echo "HUGEMEM           Size of hugepage memory to allocate (in MB). 2048 by default."
    echo "                  For NUMA systems, the hugepages will be evenly distributed"
    echo "                  between CPU nodes"
    echo "NRHUGE            Number of hugepages to allocate. This variable overwrites HUGEMEM."
    echo "HUGENODE          Specific NUMA node to allocate hugepages on. To allocate"
    echo "                  hugepages on multiple nodes run this script multiple times -"
    echo "                  once for each node."