[PATCH] octeontx: add linux 5.10 testing kernel support

Daniel Danzberger daniel at dd-wrt.com
Sun Sep 12 21:23:05 PDT 2021


On Sat, 2021-09-04 at 15:18 +0200, Daniel Danzberger wrote:
> > > 
> > > > +CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
> > > 
> > > CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y might not be a performance
> > > win,
> > > especially with only 1 GiB of RAM. Should be measured, otherwise
> > > MADVISE should be selected instead.
> > Same here, it was selected in the 5.4 kernel config and I have only
> > run
> > tested with this option so far.
> > Let me do some benchmarking with MADVISE before we continue here
> > ...
> Looks like none of the processes running even gets a huge page:
> --
> root at OpenWrt:~# grep AnonHugePages /proc/meminfo 
> AnonHugePages:         0 kB
> root at OpenWrt:~# 
> --
> Even my test tool that just allocs one 8MB block doesn't get one.
> Looks like CONFIG_TRANSPARENT_HUGEPAGE isn't working on this
> platform.
After further testing, huge pages only get used when memory is
allocated >= 2MB with mmap() on arm64.
Unlike on x86 where processes get a huge page when using malloc() or
mmap() >= 2MB.
So I think we can safely keep CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y like
in 5.4



-- 
Regards

Daniel Danzberger
embeDD GmbH, Alter Postplatz 2, CH-6370 Stans




More information about the openwrt-devel mailing list