xmr-stak
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)
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.
I have the same issue with 18.04. using xmr-stak-rx 1.0.5-rx af03d89
same problem here
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.
same problem
I am also getting this issue on Kernel: 5.9.16-1-MANJARO
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)
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)
Спасибо друг. но я мало эту тему выучил. просто много детей и не знаю уже как их прокормить
сб, 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 .
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.
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
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!