We have moved! This forum is now read only. (June 03)

New community website: https://community.snakeoil-os.net (June 03)

Join us in the new community by Creating a new account. (June 04)


RAM disk vs large Squeezelite buffer?
#9
Thank you! Smile

Today I was playing with Snakeoil a little bit more.
Since I have a couple of Squeezeboxes, an original Slimdevices V3 and a Touch, I have concentrated on LMS first, since I wanted to make a multiroom system with my NUC running Snakeoil + LMS.

But after I started exploring MPD, I have discovered that I like it's sound even better!
Snakeoil with MPD sounds really impressive! You have done a great job!
It is much closer to my MacMini running Audirvana+, in some aspects even better, so it seems that MPD will be my player of choice for "serious" listening.

So, naturally, Smile I wanted to do the similar RAM buffer thing that I have achieved with LMS and Squeezelite.

Here https://www.musicpd.org/doc/html/user.html I see that there is a similar setting for MPD called Input Cache:
 
Configuring the Input CacheThe input cache prefetches queued song files before they are going to be played. This has several advantages:
  • risk of buffer underruns during playback is reduced because this decouples playback from disk (or network) I/O
  • bulk transfers may be faster and more energy efficient than loading small chunks on-the-fly
  • by prefetching several songs at a time, the hard disk can spin down for longer periods of time
This comes at a cost:
  • memory usage
  • bulk transfers may reduce the performance of other applications which also want to access the disk (if the kernel’s I/O scheduler isn’t doing its job properly)
To enable the input cache, add an input_cache block to the configuration file:
input_cache {
size "1 GB"
}

This allocates a cache of 1 GB. If the cache grows larger than that, older files will be evicted.

 
The only problem is that I don't know how to apply this setting. Smile

I have tried to locate the mpd.conf file, and the only one I was able to find is /var/www/scratch/mpd.conf
which seemed to be an unusual location according to the MPD literature that I've found online.

Anyway I decided to give it a go, and I tried to edit it with Nano. 
The problem is that edits don't "stick"!
I can open the mpd.conf file, add the cache setting and save it,
but when I start MPD playback, the edit that i have done just disappears from the configuration file. 
The same thing happens when I reboot the machine.

How can I make edits to mpd.conf permanent?
And, maybe the better question is am I editing the right file?! Smile
Or, is there some other way to apply this input cache setting to MPD?
Out of despair Smile I have even tried the player setting field in Snakeoil web interface that worked for Squeezelite, but no luck!
Reply


Messages In This Thread
RE: RAM disk vs large Squeezelite buffer? - by koko6969koki - 24-Apr-2020, 09:17 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Snakeoil 1.4 and Squeezelite R2 - not rembering USB audio output petemac110 4 793 23-Feb-2025, 07:47 PM
Last Post: petemac110
  Snakeoil OS 1.4 problem with Squeezelite and Lyrion mloutfie 14 2,379 14-Feb-2025, 07:00 AM
Last Post: mloutfie
  Question about RAM Disk justme 6 1,022 28-Jan-2025, 10:01 AM
Last Post: agent_kith
  [SOLVEDSomething seriously wrong with Squeezelite. davem 11 2,915 01-Jul-2024, 09:22 AM
Last Post: Snoopy8
  More Problems with Squeezelite in 1.3 Coacharnold 2 845 17-Feb-2024, 09:47 PM
Last Post: Coacharnold



Users browsing this thread: 1 Guest(s)
[-]
Our Sponsors
{myadvertisements[zone_4]}

[-]
Latest Threads
Android Firefox issues with forum
Last Post: agent_kith
10-Jun-2025 04:45 PM
» Replies: 21
» Views: 2041
[split] Possible To Load Snakeoil OS in ...
Last Post: Snoopy8
09-Jun-2025 06:43 AM
» Replies: 14
» Views: 1536
Snakeoil 1.4.3 (High End U3)
Last Post: hkphantomgtr
05-Jun-2025 03:58 PM
» Replies: 67
» Views: 9000
Snakeoil with Ubuntu Desktop ?
Last Post: Snoopy8
02-Jun-2025 09:38 AM
» Replies: 8
» Views: 903
Add IR remote control using Flirc USB in...
Last Post: Snoopy8
31-May-2025 03:50 PM
» Replies: 5
» Views: 658
Work In Progress: 1.4.4
Last Post: hkphantomgtr
29-May-2025 11:44 PM
» Replies: 44
» Views: 4985
SQ difference - Raspberry Pi vs x86_64?
Last Post: Snoopy8
27-May-2025 02:16 PM
» Replies: 42
» Views: 5452
Snakeoil 1.4.0 (High End)
Last Post: aabman
25-May-2025 11:35 AM
» Replies: 93
» Views: 14918
new install issues
Last Post: carlodim
23-May-2025 09:56 AM
» Replies: 42
» Views: 4405
Is this project still alive?
Last Post: agent_kith
20-May-2025 03:11 PM
» Replies: 10
» Views: 1179

[-]
SnakeoilOS Mission Statement

Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.

SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.

If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.