Ask Your Question

How to configure huge pages of 1G manually on computes?

asked 2018-05-21 04:28:48 -0600

udayutkarsh gravatar image

updated 2018-05-21 04:29:14 -0600

Hi all,

I have to configure hugepages of 1G manually on compute nodes running on hel7.3 mapio and openstack release version is liberty. 
I have followed this link:

It does not reflect after reboot.

I have followed following steps:

# echo 'GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX hugepagesz=1G hugepages=5 transparent_hugepage=never"' > /etc/default/grub
$ grep GRUB_CMDLINE_LINUX /etc/default/grub
GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX hugepagesz=2G hugepages=5 transparent_hugepage=never"

After this my /etc/default/grub file looks as under:
[root@compute ~]# cat /etc/default/grub 
GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX hugepagesz=1G hugepages=5 transparent_hugepage=never"

And then rebooted the compute and checked:

grep "Huge" /proc/meminfo

[root@compute ~]# grep -i huge /proc/meminfo 
AnonHugePages:     67584 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
[root@compute ~]#
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2018-05-24 21:20:07 -0600

Don75080 gravatar image

grub2-mkconfig -o /etc/grub2.cfg

You have to rebuild the /boot/grub file which the above command will do.

edit flag offensive delete link more

answered 2018-05-27 12:24:56 -0600

Dipak Warade gravatar image

If its RHEL 7x , try this

cat /proc/cmdline BOOT_IMAGE=/vmlinuz-3.10.0-123.el7.x86_64 root=UUID=38b95071-ece4-49c3-b062-bd8a188e95cd ro crashkernel=auto crashkernel=auto vconsole.font=latarcyrheb-sun16 vconsole.keymap=fi rhgb quiet default_hugepagesz=1GB hugepagesz=1GB hugepages=32

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2018-05-21 04:28:48 -0600

Seen: 1,044 times

Last updated: May 27 '18