07-22-2020, 01:09 PM
(07-22-2020, 01:03 PM)Tim Curtis Wrote: The value is prolly something that should be auto-calculated depending on the memory specs. In the Pi family we have .5, 1, 2, 4, and 8GB. Maybe something like 25% with a max of 512MB ??
Assuming 30 MB avg for the size of FLAC encoded track (Popular music)
512 MB -> 128 MB -> 4 tracks
1 GB -> 256 MB -> 8 tracks
2 GB -> 512 MB -> 16 tracks
4 GB -> 512 MB -> 16 tracks
8 GB -> 512 MB -> 16 tracks
Alternatively it could be an option in MPD Config that has a range of values up to 50% of RAM.
I have the 4GB Pi 4, and have been running the 0.22~ with 3GB of cache 24 hours of the day (as a test). So far no problems. The one GB RAM left over is plenty for everything else running on the Pi. By-the-by I’m also running it with two cores reserved exclusively for MPD, and that also seems to be running without problems. Also now running it on the 64-bit kernel, and that too is now running without problems (incl. updating the MPD database).