xmr-stak icon indicating copy to clipboard operation
xmr-stak copied to clipboard

[Ubuntu 20.04.1-latest] MEMORY ALLOC FAILED: mmap with HUGETLB failed, attempting without it (you should fix your kernel)

Open yhilgjff opened this issue 4 years ago • 10 comments

Using Ubuntu 20.04.1 LTS fully patched while using xmr-stak-1.0.5-rx with the following system configs in place:

$ cat /proc/sys/vm/nr_hugepages 128 $ cat /etc/sysctl.conf | grep -i hugepages vm.nr_hugepages=128 $

Am getting: [...] This currency is a way for us to implement the ideas that we were unable to in Monero. See https://github.com/fireice-uk/cryptonote-speedup-demo for details.

[2020-09-12 23:46:28] : Mining coin: randomx [2020-09-12 23:46:28] : Starting 1x thread, affinity: 0. [2020-09-12 23:46:28] : hwloc: memory pinned [2020-09-12 23:46:28] : Starting 1x thread, affinity: 1. [2020-09-12 23:46:28] : MEMORY ALLOC FAILED: mmap with HUGETLB failed, attempting without it (you should fix your kernel) [2020-09-12 23:46:28] : hwloc: memory pinned [2020-09-12 23:46:28] : Starting 1x thread, affinity: 2. [2020-09-12 23:46:28] : MEMORY ALLOC FAILED: mmap with HUGETLB failed, attempting without it (you should fix your kernel) [2020-09-12 23:46:28] : hwloc: memory pinned [2020-09-12 23:46:28] : Starting 1x thread, affinity: 6. [2020-09-12 23:46:28] : MEMORY ALLOC FAILED: mmap with HUGETLB failed, attempting without it (you should fix your kernel) [2020-09-12 23:46:28] : hwloc: memory pinned [2020-09-12 23:46:28] : Starting 1x thread, affinity: 3. [2020-09-12 23:46:28] : MEMORY ALLOC FAILED: mmap with HUGETLB failed, attempting without it (you should fix your kernel) [2020-09-12 23:46:28] : hwloc: memory pinned [2020-09-12 23:46:28] : Starting 1x thread, affinity: 4. [2020-09-12 23:46:28] : MEMORY ALLOC FAILED: mmap with HUGETLB failed, attempting without it (you should fix your kernel) [2020-09-12 23:46:28] : hwloc: memory pinned [2020-09-12 23:46:28] : Starting 1x thread, affinity: 5. [2020-09-12 23:46:28] : MEMORY ALLOC FAILED: mmap with HUGETLB failed, attempting without it (you should fix your kernel) [2020-09-12 23:46:28] : hwloc: memory pinned [2020-09-12 23:46:28] : Starting 1x thread, affinity: 9. [2020-09-12 23:46:28] : MEMORY ALLOC FAILED: mmap with HUGETLB failed, attempting without it (you should fix your kernel) [2020-09-12 23:46:28] : hwloc: memory pinned [2020-09-12 23:46:28] : MEMORY ALLOC FAILED: mmap with HUGETLB failed, attempting without it (you should fix your kernel) [2020-09-12 23:46:28] : Fast-connecting to

But this worked fine using 19.10 and 18.04.

yhilgjff avatar Sep 13 '20 03:09 yhilgjff

I have the same issue with 18.04. using xmr-stak-rx 1.0.5-rx af03d89

satzisa avatar Feb 26 '21 18:02 satzisa

same problem here

Anarbb avatar Feb 27 '21 19:02 Anarbb

I'm getting this running as sudo. As regular user it says MEMORY ALLOC FAILED: mlock failed

xmr-stak-rx-linux-1.0.5-cpu on Arch Linux, kernel 5.11.2.

flipMWD avatar Mar 02 '21 18:03 flipMWD

same problem

XumPZup avatar Mar 03 '21 00:03 XumPZup

I am also getting this issue on Kernel: 5.9.16-1-MANJARO

cuppajoeman avatar Mar 03 '21 04:03 cuppajoeman

Also getting this on stock 5.11.4 linux kernel in archlinux but only when ran as sudo, running as user gives me MEMORY ALLOC FAILED: mlock failed. Mining still works but hashrates are insultingly low (1kH/h on a powerful PC)

KoNickss avatar Mar 09 '21 22:03 KoNickss

Also getting this, even with large tlb on ubuntu 20.04

grep Huge /proc/meminfo AnonHugePages: 2048 kB ShmemHugePages: 0 kB FileHugePages: 0 kB HugePages_Total: 1024 HugePages_Free: 952 HugePages_Rsvd: 952 HugePages_Surp: 0 Hugepagesize: 2048 kB Hugetlb: 2097152 kB

-- Seems broken in xmr-stak.

Available in case further info/testing is needed.

xmr-stak-rx 1.0.4-rx 65ade74 (downloaded newest today)

knofte avatar Apr 03 '21 19:04 knofte

Спасибо друг. но я мало эту тему выучил. просто много детей и не знаю уже как их прокормить

сб, 3 апр. 2021 г. в 22:15, knofte @.***>:

Also getting this, even with large tlb on ubuntu 20.04

grep Huge /proc/meminfo AnonHugePages: 2048 kB ShmemHugePages: 0 kB FileHugePages: 0 kB HugePages_Total: 1024 HugePages_Free: 952 HugePages_Rsvd: 952 HugePages_Surp: 0 Hugepagesize: 2048 kB Hugetlb: 2097152 kB

-- Seems broken in xmr-stak.

Available in case further info/testing is needed.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fireice-uk/xmr-stak/issues/2691#issuecomment-812913136, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOYDYZVDT3RDV42JS4V4OSLTG5SOBANCNFSM4RKLENBA .

Kingrarewolf avatar Apr 03 '21 19:04 Kingrarewolf

ah, I went in to config.txt and change to "no_mlck" instead of "warn" on ubuntu.

Works fine and it creates the pages it needs.

All good there.

knofte avatar Apr 03 '21 19:04 knofte

ah, I went in to config.txt and change to "no_mlck" instead of "warn" on ubuntu.

Works fine and it creates the pages it needs.

All good there.

this solved my issue

Terkea avatar Nov 07 '21 17:11 Terkea

Thanks to everybody's contribution.

As of 22.10 this problem still exists but can be fixed by replacing "warn" by "no_mlck" under the "use_slow_memory" option located in the config.txt of xmr-stak-rk.

Cheers!

yhilgjff avatar Nov 06 '22 18:11 yhilgjff