fireice-uk / xmr-stak-cpu

Monero CPU miner
GNU General Public License v3.0
1.11k stars 478 forks source link

membind not supported & mlock failed on FreeBSD #432

Open klikfroggi opened 6 years ago

klikfroggi commented 6 years ago

I had run 2 mining on FreeBSD box and looks like it complains about hwloc and mlock failed. Any hints?

[2017-12-07 00:00:06] : Start mining: MONERO [2017-12-07 00:00:06] : Starting double thread, affinity: 0. [2017-12-07 00:00:06] : hwloc: set_thisthread_membind not supported [2017-12-07 00:00:06] : Starting single thread, affinity: 1. [2017-12-07 00:00:06] : hwloc: set_thisthread_membind not supported [2017-12-07 00:00:06] : Starting double thread, affinity: 2. [2017-12-07 00:00:06] : hwloc: set_thisthread_membind not supported [2017-12-07 00:00:06] : Starting single thread, affinity: 3. [2017-12-07 00:00:06] : hwloc: set_thisthread_membind not supported

[2017-12-06 23:56:29] : Start mining: MONERO [2017-12-06 23:56:29] : hwloc: set_thisthread_membind not supported [2017-12-06 23:56:29] : MEMORY ALLOC FAILED: mlock failed [2017-12-06 23:56:29] : MEMORY ALLOC FAILED: mlock failed [2017-12-06 23:56:29] : hwloc: set_thisthread_membind not supported [2017-12-06 23:56:29] : MEMORY ALLOC FAILED: mlock failed

Thank you

laeti-tia commented 6 years ago

Setting affine_to_cpu to false in cpu.txt prevents XMR to try to use thread affinity, which removes the membind issue.

However, I'm not sure what to do with the mlock one. I tried using memorylocked=unlimited in /etc/login.conf but without any luck so far.

antoine@baobab:)~/xmr-stak/build/bin(git:master)$ limits -l
Resource limits (current):
  memorylocked         infinity kB
antoine@baobab:)~/xmr-stak/build/bin(git:master)$ ./xmr-stak --benchmark v7
[2018-04-12 16:10:31] : MEMORY ALLOC FAILED: mlock failed
[2018-04-12 16:10:31] : MEMORY ALLOC FAILED: mlock failed
[2018-04-12 16:10:31] : MEMORY ALLOC FAILED: mlock failed
[2018-04-12 16:10:31] : MEMORY ALLOC FAILED: mlock failed
[2018-04-12 16:10:31] : MEMORY ALLOC FAILED: mlock failed
-------------------------------------------------------------------
xmr-stak 2.4.2 e10e8e6