Set up hugepage

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Set up hugepage

2,481 次查看
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 项奖励
回复
3 回复数

2,467 次查看
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 项奖励
回复

2,458 次查看
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 项奖励
回复

2,440 次查看
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 项奖励
回复