Trying to update grub but not able to

Latest response

Hi Everyone, I needed to update grub to reserve hugepages and isolate cpu cores for ovs dpdk and for the Virtual Machines I creates on rhel9.2 and did this in grub

GRUB_CMDLINE_LINUX="crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=/dev/mapper/rhel-swap rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet default_hugepagesz=1G hugepagesz=1G hugepages=24 iommu=pt intel_iommu=on isolcpus=16-24,47-49"

I updated this and to update grub I used cmd as below

[root@localhost ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Adding boot menu entry for UEFI Firmware Settings ...
done

and then rebooted the system
and when I check cat /proc/cmdline, the changes I made are not getting updated and even hugepages are not being reserved (please have a look at below o/p)

[root@localhost ~]# cat /proc/cmdline
BOOT_IMAGE=(hd0,gpt2)/vmlinuz-5.14.0-362.18.1.el9_3.x86_64 root=/dev/mapper/rhel-root ro crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=/dev/mapper/rhel-swap rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet

[root@localhost ~]# cat /proc/meminfo | grep -i hugepages_
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0

Even attaching numactl -H for ref,

[root@localhost ~]# numactl -H
available: 2 nodes (0-1)
node 0 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
node 0 size: 29858 MB
node 0 free: 29152 MB
node 1 cpus: 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
node 1 size: 30230 MB
node 1 free: 29371 MB
node distances:
node 0 1
0: 10 20
1: 20 10

Could anyone please help me to achieve this - Thanks in Advance!

Responses