ptitSeb / box64

Box64 - Linux Userspace x86_64 Emulator with a twist, targeted at ARM64 Linux devices
https://box86.org
MIT License
3.9k stars 287 forks source link

Newest git version unuseable - high cpu usage on RPI 5 ARM64 #1301

Closed thaihugo closed 8 months ago

thaihugo commented 8 months ago

Hi,

I have a surprisingly big performance issue with latest git versions. I cannot pinpoint which ones, but I'm working everyday on 0.2.6, and I started having the issue compiling newer git version by the end of January.

My report is with today's git version.

Problem:

Technical info:

As the program function normally except for the slow behavior, I'm not sure if there is any log I can provide, but I'm ready to test any simple or advanced procedures.

Thanks

ptitSeb commented 8 months ago

I have not experienced this behaviour on my side. If you can do sudo perf top it would be interesting to see what takes time at the loading.

ptitSeb commented 8 months ago

Also, if you can do a bisect between v0.2.6 and now to see when this behaviour started, that would be very helpfull.

ptitSeb commented 8 months ago

Mmmm, just troed on my side (not on a Pi5, I don't have access to that) and the loading of the classic version 50.11 was instantaneous. Not sure if we are talking about the same program tho. Check that your build is still DYNAREC enabled. simply use box64 --version to check

thaihugo commented 8 months ago

DYNAREC is indeed not enabled in the git version. I'm going to check my compilation, but I select the RPI5ARM64 option in ccmake.

thaihugo commented 8 months ago

I can confirm that ccmake does not enable the ARM64_dynarec parameter by default, while cmake enables it.

Thanks for helping me finding my mistake. I now have git DYNAREC builds.

ptitSeb commented 8 months ago

Glad it work now. Enjoy fast loading times :)