FS#76735 - [monero] monerod: high cpu usage
Attached to Project:
Community Packages
Opened by Leon Möller (jkhsjdhjs) - Sunday, 04 December 2022, 00:21 GMT
Last edited by kpcyrd (kpcyrd) - Sunday, 15 October 2023, 20:02 GMT
Opened by Leon Möller (jkhsjdhjs) - Sunday, 04 December 2022, 00:21 GMT
Last edited by kpcyrd (kpcyrd) - Sunday, 15 October 2023, 20:02 GMT
|
Details
Description:
Some time after startup (usually 1-3 days), monerod starts to consume a high amount of CPU time on two threads (each thread 80+% of a Ryzen 5950X CPU thread). To at least get any info on what is causing it I built the package myself with debug symbols enabled by adding the options !strip and debug to the PKGBUILD and changing CMAKE_BUILD_TYPE from release to debug. Output of perf top -a and htop: https://gist.github.com/jkhsjdhjs/03a1f5a8c7198de2463ca7c9068898bd Since the perf top output contains some SSL related stuff I thought that it might be related to this package being linked against OpenSSL 3, while the official binaries are linked against OpenSSL 1.1. Thus I built monerod with OpenSSL 1.1 myself by exporting PKG_CONFIG_PATH=/usr/lib/openssl-1.1/pkgconfig in the build() function of the PKGBUILD. But the same issue appeared: https://gist.github.com/jkhsjdhjs/4f46c15961f8163f41405696539682db This package is also linked against unbound, which is currently built with OpenSSL 3, so in the second build monerod was linked against OpenSSL 3 and OpenSSL 1.1. I'm not sure if I'd also have to rebuild unbound with OpenSSL 1.1 to make sure it's not a compatibility issue with OpenSSL 3. The log file doesn't indicate anything useful. My config is available here: https://gist.github.com/jkhsjdhjs/d6d14560f9e697ed595749946cd49dbc I haven't been able to reproduce this issue with the official binary (yet, maybe I didn't wait long enough in the last attempt). I'm currently trying to do exactly that again. Additional info: * package version(s) 0.18.1.2-2 |
This task depends upon
Closed by kpcyrd (kpcyrd)
Sunday, 15 October 2023, 20:02 GMT
Reason for closing: Fixed
Additional comments about closing: 0.18.3.1-3
Sunday, 15 October 2023, 20:02 GMT
Reason for closing: Fixed
Additional comments about closing: 0.18.3.1-3
[1] https://github.com/monero-project/monero/issues/8550
I also just noticed that I leaked my RPC password when I posted my config :D