Feature request: playing musicfiles from RAM
#1
Would it be possible to add functionality that pre-loads and de-compresses music files into memory before playing?
Reply

#2
(07-May-2016, 05:04 AM)Leonard Wrote: Would it be possible to add functionality that pre-loads and de-compresses music files into memory before playing?

That's something in my todo list, but not sure when it'd be ready yet.

While play from RAM has it's advantages, not  concinved yet it's the right way to go. The only advantage I can see is it's easy to setup. Which is why I'd be trying to add this feature in, just not sure what's the best implementation yet.

If you want to spend some effort on Snakeoil, in theory at least, the features already available on Snakeoil on paper should beat any RAM DISK playback available today.

Unfortunately the learning curve is steeper.

The features in Snakeoil that are of import are : 
  • custom low latency kernel capable of servicing requests in real time (and now kernel boot options)
  • ability to change priority of running process (Change Priority in snakeoil tab)
  • ability to customise priority of theads and buffer tweaks (software  tab)
The above 3 work in tandem to streamline the push of data from your storage device all the way to the hardware. Merely setting all things to RT will not be ideal. You have to spend time to tweak, listen and access to work on a final magical setup.

Hardware wise you'd also need to make sure any bottlenecks are reduced to a minimum: 
  • SSD instead of HDD.
  • PCI-e Intel NIC instead of on-board NIC (enable jumbo frame if music is from NAS).
  • Use R1 memory, and if your board has two DIMMs, pair it up to get double data rates
  • Use WAV (and not FLAC)
While this sounds like a lot of work, the rewards can be very satisfying.
Snakeoil Operating System - Music, your way!
[-] The following 1 user Likes agent_kith's post:
  • Leonard
Reply

#3
Yesterday evening we have done a side by side comparison between a Snakeoil installation on a 2,5" harddisk *1 and running Snakeoil entirely from RAM (/w harddisk detached). For us the RAM configuration was the big winner in almost every aspect (more detail and more space)!

*1 Note that in this setup the harddisk was not powered seperately. Using a separate PS for the HD will surely help improving the sound. However I expect that it will still not be nearly as good as the RAM soluition.
Reply

#4
(12-May-2016, 08:15 PM)Leonard Wrote: Yesterday evening we have done a side by side comparison between a Snakeoil installation on a 2,5" harddisk *1 and running Snakeoil entirely from RAM (/w harddisk detached). For us the RAM configuration was the big winner in almost every aspect (more detail and more space)!

*1 Note that in this setup the harddisk was not powered seperately. Using a separate PS for the HD will surely help improving the sound. However I expect that it will still not be nearly as good as the RAM soluition.

Is that a SSD or normal spinning HDD?
Snakeoil Operating System - Music, your way!
Reply

#5
(12-May-2016, 08:15 PM)Leonard Wrote: Yesterday evening we have done a side by side comparison between a Snakeoil installation on a 2,5" harddisk *1 and running Snakeoil entirely from RAM (/w harddisk detached). For us the RAM configuration was the big winner in almost every aspect (more detail and more space)!

*1 Note that in this setup the harddisk was not powered seperately. Using a separate PS for the HD will surely help improving the sound. However I expect that it will still not be nearly as good as the RAM soluition.

Does that mean you loaded the OS on RAM as well as playlist or just the playlist.

When I was using Daphile I definitely felt playing from RAM was superior to playing from the SSD.

I have my SSDs separately powered from my Uptone Audio JS-2.
Reply

#6
(13-May-2016, 07:26 AM)agent_kith Wrote: Is that a SSD or normal spinning HDD?

A normal spinning HDD.
Not sure if a SSD will perform much better as a regular HD as SSD probably also produces more noise.

(13-May-2016, 03:16 PM)a.dent Wrote: Does that mean you loaded the OS on RAM as well as playlist or just the playlist.

When I was using Daphile I definitely felt playing from RAM was superior to playing from the SSD.

I have my SSDs separately powered from my Uptone Audio JS-2.

Yes, I loaded OS in RAM. The music is played from an attached NAS.

Daphile indeed offers the opportunity to play music from RAM. But Daphile itself is stored on your HD or USB. I have tried Daphile several times (so including the latest version) as I really like the concept and the ease of use. However Snakeoil is waaaay better than Daphile regarding SQ :-) and is also gives the opportunity to choose what player you want to use (Squeezelight, MPD).

It would be nice if Snakeoil gets the option to play from RAM as well in a sense that would load and decompress the music file first in RAM before starting to play it. This is what this feature request is about.
Reply

#7
(13-May-2016, 04:17 PM)Leonard Wrote: A normal spinning HDD.
Not sure if a SSD will perform much better as a regular HD as SSD probably also produces more noise.
Worthwhile to try out SSD and see if it's any better. SSD to me produces less noise (in terms of audible noise, when the platters are spinning).. It depends on the computer case I reckon, for me I just find HDD don't work well with streamcom cases (a lot of people here in Perth is using this case).

Not entirely about SQ when it comes to SSD vs HDD. I can't say I can reliably pick it, but my preference is still SSD. Having said that, I don't use SSD. [Image: biggrin.png] I use a NAS (5 x 4TB Hitachis), and kept this machine well away from the listening room.
(13-May-2016, 04:17 PM)Leonard Wrote: It would be nice if Snakeoil gets the option to play from RAM as well in a sense that would load and decompress the music file first in RAM before starting to play it. This is what this feature request is about.
And this is why I'm interested in implemting this. The ability to decompress FLAC into WAV into some "scratch" folder, and then play it. RAM disk is ideal for this becase it will not cause fragmentation (if we do this on storage media over time the read/write performance will get worse and worse).

I'm willing to bet the reason why RAM play sounds so good is because people are listening to WAV and not FLAC, and not because RAM has a lower access latency when comparing to SSD or HDD.

Not sure when I will have this feature ready though. But for now I'd just try to get the foundations of Snakeoil right, and once that is done, I'd start working on this.
Snakeoil Operating System - Music, your way!
Reply



Bookmarks

Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVEDRequest for UEFI boot zackthedog 13 8,304 22-May-2021, 02:37 PM
Last Post: agent_kith
  Request For Comments: Snakeoil 1.2.0 (Gear Isolation) agent_kith 103 27,803 02-May-2021, 09:14 PM
Last Post: agent_kith
  Request For Comments: Snakeoil OS 1.1.0 (Blind Testing) agent_kith 58 20,680 24-Jun-2019, 12:35 AM
Last Post: Toto
  Request For Comments: Snakeoil 1.0.0 agent_kith 35 16,588 27-May-2017, 10:13 PM
Last Post: agent_kith



Users browsing this thread:
1 Guest(s)

[-]
Our Sponsors

[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Latest Threads
ZimaBoard 2x NIC, 2x SATA, 2x USB, 1x PC...
Last Post: agent_kith
26-Mar-2024 12:04 PM
» Replies: 13
» Views: 612
LMS Upgrade ?
Last Post: uglymusic
15-Mar-2024 09:14 PM
» Replies: 7
» Views: 149
Squeezebox shutdown
Last Post: TripleX
13-Mar-2024 07:34 AM
» Replies: 4
» Views: 70
MP3 Not Playing
Last Post: Coacharnold
10-Mar-2024 10:25 AM
» Replies: 3
» Views: 52
Fail to install myMPD
Last Post: hkphantomgtr
03-Mar-2024 08:45 PM
» Replies: 9
» Views: 195
Intel HFI Driver Can "Save Tons Of CPU C...
Last Post: hkphantomgtr
28-Feb-2024 09:15 PM
» Replies: 0
» Views: 41
Announcing Snakeoil Measurements 1.3.0
Last Post: agent_kith
26-Feb-2024 10:02 PM
» Replies: 94
» Views: 4137
More Problems with Squeezelite in 1.3
Last Post: Coacharnold
17-Feb-2024 09:47 PM
» Replies: 2
» Views: 69
Snakeoil Music server & Snakeoil its own...
Last Post: Snoopy8
17-Feb-2024 11:20 AM
» Replies: 8
» Views: 365
RoonBridge (64 bit only)
Last Post: scrarfussi
15-Feb-2024 08:26 PM
» Replies: 3
» Views: 4125

[-]
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.


Powered By MyBB, © 2002-2024. Theme © Melroy van den Berg.