MoneroOcean / xmrig

Monero (rx/0, rx/wow, rx/loki, defyx, rx/arq, rx/sfx, rx/keva, cn/0, cn/1, cn/2, cn/r, cn/fast, cn/half, cn/xao, cn/rto, cn/rwz, cn/zls, cn/double, cn/gpu, cn-lite/0, cn-lite/1, cn-heavy/0, cn-heavy/tube, cn-heavy/xhv, cn-pico, cn-pico/tlo, argon2/chukwa, argon2/wrkz, astrobwt) CPU/GPU miner
https://moneroocean.stream
GNU General Public License v3.0
277 stars 85 forks source link

Never proceeds past benchmarks on Raspberry ARM64 #128

Open Botspot opened 6 months ago

Botspot commented 6 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Compile xmrig as shown in this script: https://github.com/Botspot/pi-apps/blob/master/apps/XMRig/install

Expected behavior Running xmrig for the first time completes all benchmarks and then mining begins.

20240510_15h25m04s_grim

I think this is the same problem as what was encountered in issue https://github.com/MoneroOcean/xmrig/issues/125. Please respond. Let me know if you need additional context or information. I can provide you with remote access to my Raspberry Pi 5 for testing and debugging.

realsetvin commented 6 months ago

do you have hwloc installed? seems some kind of memory issue. Undoubtedly due to arm incompatibility

https://github.com/xmrig/xmrig/issues/3183

image

realsetvin commented 6 months ago

I know someone who is good with arm, will try to ask them to take a look later

Botspot commented 6 months ago

This info should help:

I copied a xmrig.json from another PC to skip the benchmarks, then tested one algorithm at a time. It seems that all cn algos fail, while the remaining ones mine fine.

realsetvin commented 6 months ago

This info should help:

I copied a xmrig.json from another PC to skip the benchmarks, then tested one algorithm at a time. It seems that all cn algos fail, while the remaining ones mine fine.

do u have hwloc installed, ext?

Botspot commented 6 months ago

do u have hwloc installed, ext?

hwloc package is not installed. Should I install it?

realsetvin commented 6 months ago

do u have hwloc installed, ext?

hwloc package is not installed. Should I install it?

please do

Botspot commented 6 months ago

please do

OK, I have it installed now. Should I try recompiling xmrig now, or is there something from the output of hwloc-info that you need to see?

Botspot commented 6 months ago

It's worth noting that libhwloc-dev was installed prior to compilation. Was that the package you meant? Also, I can offer you access to my Pi via remote desktop software.

mickbot-92 commented 3 months ago

Hello 👋 When building the latest XMRig only with cmake .., the benchmark seems to work. After benchmarking, you can use the optimised one freely. So this issue seems to be linked with the CMake flags 🤔 Compiled on RPi 400 (RPiOS Bookworm) then tested on RPi 5 (NextCloudPi, unofficial armbian, Bookworm).

Botspot commented 3 months ago

I had never updated this issue with my full findings. With the very helpful tip from @mickbot-92, it's worth sharing them now.

Botspot commented 3 months ago

I have made a change to the Pi-Apps install script for XMRig which should solve the issue. https://github.com/Botspot/pi-apps/commit/d6c940212513ccbee157fc0299ed7ccb619236e7