Ask Your Question
0

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

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

udayutkarsh gravatar image

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

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: https://docs.openstack.org/nova/pike/admin/huge-pages.html#enabling-huge-pages-on-the-host

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="$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
0

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

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 rd.lvm.lv=vg00/root rd.lvm.lv=vg00/swap crashkernel=auto vconsole.font=latarcyrheb-sun16 vconsole.keymap=fi rhgb quiet default_hugepagesz=1GB hugepagesz=1GB hugepages=32

https://access.redhat.com/discussions...

edit flag offensive delete link more
0

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 199 times

Last updated: May 27 '18