BlackMulch
Posts: 6
Joined: Wed Feb 21, 2018 12:34 pm

Huge Pages

Wed Feb 21, 2018 12:45 pm

Is it possible to enable Huge Pages in Raspbian?

I'm presently using Raspbian Stretch Lite on a Pi 3. I have followed instructions for Debian (https://wiki.debian.org/Hugepages#Enabling_HugeTlbPage) without success (the final 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):

Code: Select all

    sudo sysctl -w vm.nr_hugepages=5
to set the number of huge pages available to the system, but this has no effect (since the file 'nr_hugepages' does not exist).

fruitoftheloom
Posts: 20136
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Huge Pages

Wed Feb 21, 2018 3:54 pm

BlackMulch wrote:
Wed Feb 21, 2018 12:45 pm
Is it possible to enable Huge Pages in Raspbian?

I'm presently using Raspbian Stretch Lite on a Pi 3. I have followed instructions for Debian (https://wiki.debian.org/Hugepages#Enabling_HugeTlbPage) without success (the final 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):

Code: Select all

    sudo sysctl -w vm.nr_hugepages=5
to set the number of huge pages available to the system, but this has no effect (since the file 'nr_hugepages' does not exist).

There does not appear to be any reference to ARMHF Debian / ARM CPU in your links !!

Raspbian is a re-spin of Debian ARMHF ARMv7 to support both ARMv6 & ARMv7..
adieu

Asus CS10 Chromebit / HP Envy 4500 Wireless Printer / Raspberry Pi Model 2B v1.1 / RealVNC Software...

BlackMulch
Posts: 6
Joined: Wed Feb 21, 2018 12:34 pm

Re: Huge Pages

Thu Feb 22, 2018 6:33 pm

Thank you for your reply. Is there documentation available on which Debian features are available in Debian ARMHF, and similarly what features of Debian ARMHF are available in Raspbian?

So far, I have assumed that huge pages are available, but if they're not, that certainly simplifies the problem of enabling them.

fruitoftheloom
Posts: 20136
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Huge Pages

Thu Feb 22, 2018 6:53 pm

BlackMulch wrote:
Thu Feb 22, 2018 6:33 pm
Thank you for your reply. Is there documentation available on which Debian features are available in Debian ARMHF, and similarly what features of Debian ARMHF are available in Raspbian?

So far, I have assumed that huge pages are available, but if they're not, that certainly simplifies the problem of enabling them.


https://wiki.debian.org/Hugepages
adieu

Asus CS10 Chromebit / HP Envy 4500 Wireless Printer / Raspberry Pi Model 2B v1.1 / RealVNC Software...

BlackMulch
Posts: 6
Joined: Wed Feb 21, 2018 12:34 pm

Re: Huge Pages

Thu Feb 22, 2018 10:45 pm

[/quote]
https://wiki.debian.org/Hugepages
[/quote]

That's the page from my original post. To back my assumption that huge pages are supported here is the 'todo' for Debian ARMHF: https://wiki.debian.org/ArmHardFloatTodo

The todo includes issues that were worked, or still need work, in the ARMHF branch. Huge pages is not mentioned anywhere; which puts it into the category of capabilities that should 'just work' in Debian ARMHF. This leads me to believe there should be a way to configure it in Raspbian.

fruitoftheloom
Posts: 20136
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Huge Pages

Fri Feb 23, 2018 12:12 am

adieu

Asus CS10 Chromebit / HP Envy 4500 Wireless Printer / Raspberry Pi Model 2B v1.1 / RealVNC Software...

BlackMulch
Posts: 6
Joined: Wed Feb 21, 2018 12:34 pm

Re: Huge Pages

Sat Feb 24, 2018 3:56 pm

This was encouraging at first, but my Linux-fu is not strong. I don't have enough contextual knowledge about what I'm reading and trying to know if it's helpful. I'm beginning to get the sense that the Raspbian kernel is compiled without support for hugepages because

Code: Select all

grep hugetlbfs /proc/filesystems
returns nothing.

The documentation from the two methods linked in the previous reply infers that they can be enable without kernel support via libhugetlbfs or transparent huge pages packages, but I don't have the knowledge and skill required to get those going without a tutorial- or cookbook- style walkthrough (the readme's in those packages don't have detailed build and implementation instructions). I'll continue to search, thanks for the help so far!

Ichigooo
Posts: 1
Joined: Thu Mar 15, 2018 9:15 am

Re: Huge Pages

Thu Mar 15, 2018 9:21 am

I've also been trying to enable hugepages on raspbian - no success.
But in debian buster, it seems like transparent hugepages are up by default (there is a preview iso @https://wiki.debian.org/RaspberryPi3#Preview_image).
I'll be happy to see raspbian buster with hugepages in the future^^

BlackMulch
Posts: 6
Joined: Wed Feb 21, 2018 12:34 pm

Re: Huge Pages

Thu Mar 22, 2018 12:36 pm

Ichigooo wrote:
Thu Mar 15, 2018 9:21 am
I've also been trying to enable hugepages on raspbian - no success.
But in debian buster, it seems like transparent hugepages are up by default (there is a preview iso @https://wiki.debian.org/RaspberryPi3#Preview_image).
I'll be happy to see raspbian buster with hugepages in the future^^
I'll be looking forward to this as well!

mys5droid
Posts: 6
Joined: Tue Jun 13, 2017 6:27 pm

Re: Huge Pages

Tue Jun 12, 2018 7:29 pm

I am not sure how but I got it enabled... No change in hash rate, one pi still gets around 10 h/s and the other one gets around 6 h/s (no idea why it's different, both overclocked)

It can't be the latest raspbian because I only updated one of the two raspi's to the latest raspbian and both are showing hugepages enabled. I don't think it was the sysctl command, or the bootloader options...

I think it came after an apt update && apt upgrade -y --force-yes && rpi-update (I think the rpi-update enabled it) and make sure "huge-pages": true, is enabled in your config.json

I think the latest update for rpi enabled hugepage support... Can anyone confirm?

Return to “Raspbian”