Set up hugepage

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Set up hugepage

2,452 Views
LeNormich
Contributor I

Hello,

I'm on LS2088

I just wanted to know if there was another way of setting up hugepages than forcing the /boot/grub/ls2088ardb_grub.cfg

I feel like it's not the right way but i couldn't find other ways...

Thanks

0 Kudos
Reply
3 Replies

2,438 Views
yipingwang
NXP TechSupport
NXP TechSupport

You could set up hugepage in Linux Kernel bootargs, please refer to the following.

default_hugepagesz=1024m hugepagesz=1024m hugepages=8

0 Kudos
Reply

2,429 Views
LeNormich
Contributor I

Yes, these are the values I want to set.

But my question is where do I specify it?

I tried modifying /etc/sysctl.conf and /boot/grub/ls2088ardb_grub.cfg, both without success

0 Kudos
Reply

2,411 Views
yipingwang
NXP TechSupport
NXP TechSupport

Under u-boot, configure bootargs as the following.

setenv bootargs "console=ttyS1,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0600 ramdisk_size=0x2000000 default_hugepagesz=1024m hugepagesz=1024m hugepages=8"

0 Kudos
Reply