Anyone can get RISC-V hugepage memory supported ? Thanks a lot.
I want to use hugepage memory to improve performance of application.
Firstly, I run make with freedom-u-sdk/Makefile.
Then, I run these commands to enable hugetlbfs:
cp freedom-u-sdk/work/linux/.config freedom-u-sdk/linux/
cd freedom-u-sdk/linux/
make menuconfig
cp freedom-u-sdk/linux/.config freedom-u-sdk/conf/linux_defconfig
root@UBT-16045:freedom-u-sdk# grep -i huge conf/linux_defconfig
CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y
CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD=y
CONFIG_HAVE_ARCH_HUGE_VMAP=y
CONFIG_TRANSPARENT_HUGEPAGE is not set
CONFIG_HUGETLBFS=y
CONFIG_HUGETLB_PAGE=y
Next, I run “make" with freedom-u-sdk/Makefile again to update linux kernel.
And run “make DISK=/dev/sdb format-boot-loader” to update the TF card.
With this new TF card, linux starts. But I can’t confirm hugepage memory is working
because I can’t find any hugepage setting in /proc/meminfo on my HiFive Unleashed board:
grep -i huge /proc/meminfo
ls -la /sys/kernel/mm/
total 0
drwxr-xr-x 3 root root 0 Jan 1 00:00 .
drwxr-xr-x 6 root root 0 Jan 1 00:00 …
drwxr-xr-x 2 root root 0 Jan 1 00:00 swap