Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Never proceeds past benchmarks on Raspberry ARM64 #128

Open
Botspot opened this issue May 10, 2024 · 12 comments
Open

Never proceeds past benchmarks on Raspberry ARM64 #128

Botspot opened this issue May 10, 2024 · 12 comments

Comments

@Botspot
Copy link

Botspot commented May 10, 2024

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 #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
Copy link

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

xmrig#3183

image

@realsetvin
Copy link

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

@Botspot
Copy link
Author

Botspot commented May 28, 2024

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
Copy link

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
Copy link
Author

Botspot commented May 28, 2024

do u have hwloc installed, ext?

hwloc package is not installed. Should I install it?

@realsetvin
Copy link

do u have hwloc installed, ext?

hwloc package is not installed. Should I install it?

please do

@Botspot
Copy link
Author

Botspot commented May 28, 2024

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
Copy link
Author

Botspot commented May 28, 2024

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
Copy link

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
Copy link
Author

Botspot commented Aug 2, 2024

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

  • After bypassing benchmarking, I found that all cn algorithms failed, and the others succeeded. I was able to make partial use of xmrig by setting all benchmark scores of the cn algos to 0.
  • I got huge pages working after recompiling the kernel, which boosted performance significantly.
  • Today after the comment from @mickbot-92, I just now found that the cause of all this trouble was the -ffast-math cmake flag. It seems that without that flag, xmrig performs fine.

Botspot added a commit to Botspot/pi-apps that referenced this issue Aug 3, 2024
@Botspot
Copy link
Author

Botspot commented Aug 3, 2024

I have made a change to the Pi-Apps install script for XMRig which should solve the issue. Botspot/pi-apps@d6c9402

@anthonymonti2
Copy link

I'm having the same issue with a Pi 3 failing during cn/r benchmarking. I tried the suggestions in this thread and the pi-apps build script. The non Monero Ocean XMRig works fine with XMR mining on Monero Ocean. I know the Pi 3 is old and not worth I but I was just messing around with it on Monero Ocean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants