07-25-2020, 09:26 AM
(07-24-2020, 06:09 PM)DRONE7 Wrote: Cache vs buffers ?
Turn cache off and restart then monitor memory use...does it increase by the audio buffer size as a track begins to play ? (I'm guessing as I've not tried this and I am away from the Pi)
My tests have been with a playlist of 70+ tracks. Cache grows slowly until track 63 where the large tracks (mentioned in my last post) load and then jumps accordingly.
I'm not sure that entering tracks to the playlist one by one is a valid test ? In your example no change after adding the second track seems correct as there was only one existing track so nothing to cache once the first lone track started playing.
bob
Quick test with cache off
Base memory 19%
Added 4 tracks 19%
play track 1 20%
play track 2 20%
play track 3 20%
play track 4 20%
play tracks 1,2,3 & 4 again 20%
add track 5 20%
play track 5 20%
No extra memory usage with cache off.