3

How can I enable huge pages in Raspbian Stretch? I have followed instructions for Debian (https://wiki.debian.org/Hugepages#Enabling_HugeTlbPage) without success (reboot puts my Pi 3 into 'emergency' mode, can't log back in, have to start with a fresh image). I have also tried (from https://github.com/xmrig/xmrig/issues/32):

sudo sysctl -w vm.nr_hugepages=5

But this has no effect (since the file 'nr_hugepages' does not exist).

Is there something specific for Raspbian that I'm missing?

whit
  • 31
  • 3

2 Answers2

5

Based on the information I can find online (example here), I don't believe the ARM Cortex-A7 used in the Raspberry Pi supports Huge Pages in the L1 TLB, so it most likely won't work properly due to the Hardware itself.

If someone finds a more definitive answer, please let us know!

MrChips
  • 993
  • 1
  • 5
  • 11
0

I guess that Huge pages are supported from Raspberry PI 4B. The supported huge page sizes are:

 - 1 GB
 - 32 MB
 - 2 MB (default)
 - 64 KB

As a side note, for more details, I posted an answer on StackOverflow which explains how to configure and use them. But it is for Raspberry Pi OS 64 bits (formerly called Raspbian).

RKou
  • 101
  • 4