Moode Forum
Limit the MPD input buffer to less than the available memory. - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Feature requests (https://moodeaudio.org/forum/forumdisplay.php?fid=8)
+--- Thread: Limit the MPD input buffer to less than the available memory. (/showthread.php?tid=6474)



Limit the MPD input buffer to less than the available memory. - the_bertrum - 05-14-2024

An essential feature to prevent idiots like me from having to debug why their player stopped responding halfway through an album.

Turns out a Pi3A+ with an input buffer of 512 completely locks up and emits random cheeps every so often as the system gets totally starved of memory.
So if the input cache selection could only show values less than say 75% of the available memory that would protect me from my own stupidity Smile


RE: Limit the MPD input buffer to less than the available memory. - Tim Curtis - 05-14-2024

That would take all the DIY fun out it ;-)


RE: Limit the MPD input buffer to less than the available memory. - the_bertrum - 05-15-2024

I've done some stupid things with my installation over the years, but this one has to be the stupidest Smile


RE: Limit the MPD input buffer to less than the available memory. - Tim Curtis - 05-15-2024

lol.
Was the MPD input cache ever fully developed? When I last looked at it a long while back it was still a WIP with a couple of devs contributing fixes and improvements. I think it sort of works if you allocate enough RAM.


RE: Limit the MPD input buffer to less than the available memory. - the_bertrum - 05-15-2024

(05-15-2024, 10:28 AM)Tim Curtis Wrote: lol.
Was the MPD input cache ever fully developed? When I last looked at it a long while back it was still a WIP with a couple of devs contributing fixes and improvements. I think it sort of works if you allocate enough RAM.

It does work in that it will get the whole of a track into memory at track change rather than get it in chunks as needed throughout the playback.  I rather expected it to get as many tracks as it could until the allotted cache was full.
Either way, I'm not sure it confers much benefit, but I think it just "feels better" to get a whole track in one hit.


RE: Limit the MPD input buffer to less than the available memory. - Nutul - 05-15-2024

(05-15-2024, 01:01 PM)the_bertrum Wrote: It does work in that it will get the whole of a track into memory at track change rather than get it in chunks as needed throughout the playback.

How does it behave when you have a whole rip in one flac and the tracks are just delimited with a CUE sheet?
Does it load the single FLAC chunk defining the track, or ill it attempt to load the whole FLAC at once?


RE: Limit the MPD input buffer to less than the available memory. - the_bertrum - 05-15-2024

(05-15-2024, 01:16 PM)Nutul Wrote:
(05-15-2024, 01:01 PM)the_bertrum Wrote: It does work in that it will get the whole of a track into memory at track change rather than get it in chunks as needed throughout the playback.

How does it behave when you have a whole rip in one flac and the tracks are just delimited with a CUE sheet?
Does it load the single FLAC chunk defining the track, or ill it attempt to load the whole FLAC at once?

No idea, but I suspect it works on files so it would be the entire FLAC file.  I don't have any suitable files to try it with.