/etc/default/grub 和 /proc/meminfo 之间的 hugepage 值的差异

/etc/default/grub 和 /proc/meminfo 之间的 hugepage 值的差异

我发现 /etc/default/grub 文件和 /proc/meminfo 之间的巨大页面值存在差异。/etc/default/grub 文件中显示 107520。但 /proc/meminfo 显示 106856。原因可能是什么?

root@node:~# cat /proc/meminfo  | grep Huge
AnonHugePages:    356352 kB
HugePages_Total:   106856
HugePages_Free:    106856
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB

root@node:~# cat /etc/default/grub | grep GRUB_CMDLINE_LINUX=
GRUB_CMDLINE_LINUX=" console=tty0 net.ifnames=0 biosdevname=0 rootdelay=90 nomodeset hugepagesz=2M hugepages=107520 isolcpus=1,2,3,4,5,6,7,8,9,10,11,25,26,27,28,29,30,31,32,33,34,35,13,14,15,16,17,18,19,20,21,22,23,37,38,39,40,41,42,43,44,45,46,47, root=UUID=f1607a89-1aaa-4766-8e66-936e3a44e223 "

root@node:~# cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.13.0-85-generic root=/dev/mapper/os-root ro console=tty0 net.ifnames=0 biosdevname=0 rootdelay=90 nomodeset hugepagesz=2M hugepages=107520 isolcpus=1,2,3,4,5,6,7,8,9,10,11,25,26,27,28,29,30,31,32,33,34,35,13,14,15,16,17,18,19,20,21,22,23,37,38,39,40,41,42,43,44,45,46,47, root=UUID=f1607a89-1aaa-4766-8e66-936e3a44e223 nomdmonddf nomdmonisw crashkernel=384M-:128M

相关内容