Closed jcorporation closed 5 months ago
Hi @jcorporation!
I've tried some of what you're suggesting here https://github.com/Polochon-street/blissify-rs/pull/58, fix-timeout-mpd
, could you clone it and tell me if it's fixing the issue for you?
Thank you! The new song fetching attempt works flawlessly.
Have you seen that I changed the initial bug report? The issue is not the song fetching, but the memory usage of blissify.
I tested it again and the memory usage increases until the kernel oom-killer kills the blissify process.
Edit: You can safely increase the search window. I use 10.000 for myMPD without issues.
Ah damn, I didn't see. It still OOMs then even in fix-timeout-mpd
? I'll have to take a closer look at it then.
It still OOMs then even in fix-timeout-mpd?
exact. It seems you forget to free an object in a loop. The memory usage steadily grows. In the logs are also some analysis errors. I do not know if they matter, only for completeness.
How many songs do you have? I just tried to reproduce by cloning some songs so I reach 150k songs on MPD, but the memory usage stayed the same. If you try using --number-cores 1, does it OOM? And if you have a lot of songs, could you try analyzing with maybe "only" 150k, to see if the problem comes from there?
I'm trying to pinpoint the issue, because I am not sure where it is coming from :)
The issue occurs after a few hundred of songs analyzed. At the moment I have no access to my laptop with the installation and access to the music directory.
If it helps: It runs the latest x86 Ubuntu version.
I tried to reproduce, but I can't find memory steadily increasing (it just spikes from time to time but that's because we load songs directly in memory) - when you have access to your library again, could you try to run RUST_LOG=debug blissify init --number-cores 1 path/to/library
, and check it it always fails around the same song?
I'm thinking maybe you have a song that fills up the RAM for some reason, either because it is large, or because there are some errors decoding it. If so, I could try and debug it using your song :)
Running blissify with --number-cores 1
fixes the issue, with 8 cores it works also. Blissify uses in the default config all cores of the system? It seems I have not enough ram for the 16 cores.
Thanks for your help!
By default blissify uses all the cores in the system, yes :) Songs cannot really be streamed yet, so RAM can be a pain point, but I'm working on lowering RAM consumption a bit.
Cheers!
Hi,
I am the developer of myMPD and I find blissify interesting and I would play around with it.
I have tried to test it and my kernel oom-killer terminates
blissify init
. The machine it is running has 16GB of ram. I thought before it was a MPD timeout...Blissify log:
MPD log:
Kernel log: