cat /proc/meminfo | grep Huge
HugePages_Total: 1024
HugePages_Free: 1024
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
发现是2M大页内存
改问1GB大页内存
设置1GB大页内存 /etc/default/grub中的GRUB_CMDLINE_LINUX 加上transparent_hugepaage=never default_hugepagesz=1G hugepagesz=1G hugepages=32
然后#grub2-mkconfig -o /boot/grub2/grub.cfg
#reboot
cat /proc/meminfo | grep Hugepagesize 是1048576 kB
参考
https://blog.csdn.net/shaoyunzhe/article/details/54614077
https://blog.csdn.net/yutianzuijin/article/details/41912871
来源:CSDN
作者:weixin_41666796
链接:https://blog.csdn.net/weixin_41666796/article/details/104580609