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 10,236 22-May-2021, 02:37 PM
Last Post: agent_kith
  Request For Comments: Snakeoil 1.2.0 (Gear Isolation) agent_kith 103 37,345 02-May-2021, 09:14 PM
Last Post: agent_kith
  Request For Comments: Snakeoil OS 1.1.0 (Blind Testing) agent_kith 58 26,628 24-Jun-2019, 12:35 AM
Last Post: Toto
  Request For Comments: Snakeoil 1.0.0 agent_kith 35 20,154 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
Installation of SnakeOil OS 1.3.0 on RPi...
Last Post: miksi
23-Dec-2024 02:14 AM
» Replies: 14
» Views: 629
Dropping Measurements, Hello High-End.
Last Post: uglymusic
18-Dec-2024 12:02 AM
» Replies: 20
» Views: 728
CA Server issues
Last Post: Peter_F
16-Dec-2024 06:36 PM
» Replies: 13
» Views: 231
install Snakeoil on Audio Alchemy DMP-1 ...
Last Post: uglymusic
08-Dec-2024 08:48 PM
» Replies: 2
» Views: 217
Announcing Snakeoil Measurements 1.3.0
Last Post: hkphantomgtr
03-Dec-2024 09:55 PM
» Replies: 105
» Views: 12078
Howto setup resampling in Logitech Media...
Last Post: Coacharnold
18-Nov-2024 12:06 AM
» Replies: 7
» Views: 6005
Very happy to have Sankeoil......! mpd w...
Last Post: run51
24-Oct-2024 05:35 AM
» Replies: 9
» Views: 1817
SO no soundcard detected - RPI Pi4 snake...
Last Post: run51
21-Oct-2024 10:55 PM
» Replies: 4
» Views: 193
download
Last Post: Snoopy8
19-Oct-2024 05:52 AM
» Replies: 1
» Views: 183
Full proces to instal snakeiol 100% work...
Last Post: audioluthier
11-Oct-2024 02:32 AM
» Replies: 9
» Views: 530

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