https://access.redhat.com/solutions/3936101
How to change the default HugePage size in Red Hat Enterprise Linux 8?
SOLUTION 已验证 - 已更新 2019年二月24日21:52 -
环境
- Red Hat Enterprise Linux 8
- HugePage
问题
- How to change the default HugePage size in Red Hat Enterprise Linux 8?
- How to change the default HugePage size to 1GB on X86-64 platform?
决议
-
The kernel boot parameter
default_hugepageszis used to set the size of the default HugeTLB page. -
Set
default_hugepagesz=1Gin/boot/grub2/grubenvfile to change the default HugePage size to 1GB on X86-64 platform.
# grep kernelopts /boot/grub2/grubenv
kernelopts=root=/dev/mapper/rhel-root ro resume=/dev/mapper/rhel-swap rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet default_hugepagesz=1G
- Reboot the system for changes to take effect.
# reboot
- Verify the default HugePage size using the following commands.
# grep Hugepagesize: /proc/meminfo
Hugepagesize: 1048576 kB
# hugeadm --pool-list
Size Minimum Current Maximum Default
1073741824 0 0 0 *
本文围绕Red Hat Enterprise Linux 8系统展开,主要探讨如何更改默认HugePage大小,还提及在X86 - 64平台将其改为1GB的方法,包括通过设置内核启动参数、修改文件,重启系统使更改生效,并给出验证默认HugePage大小的命令。
3000

被折叠的 条评论
为什么被折叠?



