-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
High system load on Arch linux #4003
Comments
I believe the biggest bottleneck in |
I just found that Bisq writes 2GB of data to disk in just 2h of uptime. I strongly recommend deciding on bisq-network/projects#25 just to address this before it becomes an issue. |
CPU load is WAY too high for this application. Does this issue only affect arch linux, and not all platforms? |
@tenaciousRas after some investigating, I believe that is not only for arch linux but a general issue. However, I do have no means to verify that... |
@freimair Sweet snapshot - same here I cannot verify on Windows or Mac. My question is somewhat rhetorical - it probably isn't confined to *nix. Could be related to #3752. I haven't checked out the code, yet. Talk of thread-safe serialization within a FileManager class doesn't sound proper. "Create protobuf objects on the UserThread instead of the FileManager writer thread" --- sounds proper to me and points to something lacking in architecture. |
stejbac:
|
No update in many years? I found this issue after struggling with bisq draining some resource on my system during bisq startup. The mouse cursor or keyboard input works at 2 events per second for some 2 minutes straight when bisq is starting up. And that is on a 24 core, 32GB RAM desktop with SSD. I also notice CPU load to go be high during that time but I'm surprised the app manages to kill performance outside of the app itself. |
So while writing this reply, I saw weird lines flicker on my screen outside the bisq window. this is indeed a bit scary. Does this issue not affect others? |
Ok, I have a lead. I have a 2 monitor setup with one in portrait orientation and when I minimize the bisq window, my system turns smooth. When I bring back the window, it laaaggs everything to the point that typing produces double letters and missing shift modifiers. Screencast.from.2024-05-07.19-26-33.webmFunny how it even appears to mess with my screen recording :D |
@Giszmo just a hunch, but would you be able to confirm if bisq is using HW acceleration or not? If not, that could be the cause of poor performance within the app, though not sure it would affect the entire system. You can launch the app with
You can follow similar instructions at the bottom of https://bisq.wiki/Reducing_memory_usage by adding it to your Bisq.cfg. |
So can we agree that it's a severe bug that the app needs hardware acceleration to show a window with a spinner? When I minimize the window, it should do the same as maximized except for the UI, yet the bigger I draw the window the more my mouse cursor lags. It probably does not use hardware acceleration if that's GPU you are talking about as I have issues configuring it. |
The UI framework (JavaFx) determines whether to enable HW acceleration based on your system, and in some cases may disable it and fall back to SW acceleration. Some of the UI components used require heavy processing and will increase CPU usage if using SW acceleration. As to whether that heavy processing is due to an issue with Bisq's implementation or the framework itself, is a separate discussion. But I believe there is an option within the Bisq app to disable animations, which might help. Or if you do have a GPU available, you can try forcing it to use HW acceleration with |
Description
One of my two always-on bisq apps is sitting at 100% CPU.
Version
1.2.7
Steps to reproduce
nothing special. start it up.
Expected behaviour
not have that high of a CPU load
Actual behaviour
Profiling the thing shows:
33.4% - bisq.common.storage.FileManager.saveToFile
21.7% - bisq.network.http.HttpClient.requestWithGETProxy
9.5% - com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException
Screenshots
Device or machine
my dev machine, arch linux
The text was updated successfully, but these errors were encountered: