Persistent RAM disk?
#1
Hey everyone,

I am loving snakeoil. I want to see if I can have a persistent RAM disk for my favourite tracks, so I don't have to manually add the files each time I start up the server.

I've read a webpage that you can do it with ramdisk-sync? https://linuxhint.com/ramdisk_ubuntu_1804/

Thoughts? The instructions are for ubuntu 18 and our snakeoil is on ubuntu 16.
Reply

#2
The RamDisk itself is "persistent" in SnakeOil in that it is set up during boot. Rather than do a backup of the RamDisk and reinstall, an easier way is to set up a playlist to load music to RamDisk after boot.
Reply

#3
Hey @Snoopy8 ! Smile

I wasn't aware playlists can do the copying too?

I have setup playlists to play from the nvme.
Reply

#4
RAM by default isn't persistent. Content will be lost when PC is rebooted, or shutdown.

Having said that, I am not sure if Intel Opane will work - it's marketed as persistent memory. I believe there are some servers with battery backed RAM also.

There's nothing Snakeoil OS can do, it's hardware.
Snakeoil Operating System - Music, your way!
Reply

#5
Thanks @agent_kith. I tried copying the music files using playlist. Found some weird results. Using ramfs, it results in errors saying no files copied. with tmpfs, it copies the m3u playlist and not the music files.

@Snoopy8 , when you say load the music files after boot using playlist, you're referring to the manual process via the web interface browser? It can't be automated upon boot yeah?
Reply

#6
(26-Oct-2020, 10:59 AM)emptor Wrote: Thanks @agent_kith. I tried copying the music files using playlist. Found some weird results. Using ramfs, it results in errors saying no files copied. with tmpfs, it copies the m3u playlist and not the music files.
Your playlist is bigger than the RAM disk you allocated. Snakeoil does not check if there's enough space for you to copy the files or not. With one of the file systems (Can't remember which), it never checks for disk full and will have weird results.

So to use this feature, make sure you allocate enough size for your RAM disk..
Snakeoil Operating System - Music, your way!
Reply

#7
(26-Oct-2020, 10:59 AM)emptor Wrote: @Snoopy8 , when you say load the music files after boot using playlist, you're referring to the manual process via the web interface browser? It can't be automated upon boot yeah?

This was a suggestion from me in the RamDisk thread.  I am hoping that Agent Kith can create a script to read a "RamDisk auto load" playlist after the system comes up.
Reply

#8
(25-Oct-2020, 07:57 PM)emptor Wrote: Hey everyone,

I am loving snakeoil. I want to see if I can have a persistent RAM disk for my favourite tracks, so I don't have to manually add the files each time I start up the server.

I've read a webpage that you can do it with ramdisk-sync? https://linuxhint.com/ramdisk_ubuntu_1804/

Thoughts? The instructions are for ubuntu 18 and our snakeoil is on ubuntu 16.

Upgrading SnakeOil from 16.04 to 18.04 is easy.  But the sound is not as good as 16.04 in my system.   And the upgrade is not reversible unless you go for total re-installation.
But if running SnakeOil OS as music server only, 18.04 produces much better sound than 16.04.  Of course I have no idea why.
Reply

#9
(26-Oct-2020, 11:13 AM)agent_kith Wrote:
(26-Oct-2020, 10:59 AM)emptor Wrote: Thanks @agent_kith. I tried copying the music files using playlist. Found some weird results. Using ramfs, it results in errors saying no files copied. with tmpfs, it copies the m3u playlist and not the music files.
Your playlist is bigger than the RAM disk you allocated. Snakeoil does not check if there's enough space for you to copy the files or not. With one of the file systems (Can't remember which), it never checks for disk full and will have weird results.

So to use this feature, make sure you allocate enough size for your RAM disk..
Hi @agent_kith , i created a ram disk of 4GB. I couldn't copy via the M3U playlist for even 5 songs in a playlist. ? Ramfs says error files not copied and tmpfs copies the m3u playlist file itself
Reply

#10
(26-Oct-2020, 05:56 PM)emptor Wrote: Hi @agent_kith , i created a ram disk of 4GB. I couldn't copy via the M3U playlist for even 5 songs in a playlist. ? Ramfs says error files not copied and tmpfs copies the m3u playlist file itself
Hmm. Weird, this sounds like a bug.. I'll hopefully give it a go later today and see if I can re-create this. Will let you know. It's already a busy day at work so ping me again if you havn't hear from me in a few days (just in case I forget).
Snakeoil Operating System - Music, your way!
Reply



Bookmarks

Possibly Related Threads…
Thread Author Replies Views Last Post
  Question about RAM Disk justme 6 178 28-Jan-2025, 10:01 AM
Last Post: agent_kith
  [SOLVEDSet up disk greenman61 10 2,485 29-Mar-2022, 04:17 PM
Last Post: greenman61
  RAM disk vs large Squeezelite buffer? koko6969koki 17 7,103 28-Apr-2020, 09:35 AM
Last Post: agent_kith
  [SOLVEDProblem with mounting disk c.trung 2 4,549 05-Jun-2016, 12:09 PM
Last Post: c.trung



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
Crazy! This New BS Strategy That Will Sh...
Last Post: JosephCen
Today 05:34 AM
» Replies: 0
» Views: 5
Can't get Roon bridge or UPNP renderer t...
Last Post: agent_kith
21-Feb-2025 04:38 PM
» Replies: 9
» Views: 231
Progress update on High End U1
Last Post: agent_kith
21-Feb-2025 10:43 AM
» Replies: 8
» Views: 527
Snakeoil OS 1.4 problem with Squeezelite...
Last Post: mloutfie
14-Feb-2025 07:00 AM
» Replies: 14
» Views: 614
Snakeoil 1.4.0 (High End)
Last Post: hkphantomgtr
11-Feb-2025 09:07 AM
» Replies: 60
» Views: 3712
fw: a letter to request Album Player(gen...
Last Post: clark8888
08-Feb-2025 03:44 PM
» Replies: 3
» Views: 521
SQ difference - Raspberry Pi vs x86_64?
Last Post: Snoopy8
06-Feb-2025 08:46 AM
» Replies: 13
» Views: 671
Using Ubuntu low latency & real time ker...
Last Post: agent_kith
05-Feb-2025 02:19 PM
» Replies: 9
» Views: 358
Music Players missing
Last Post: justme
31-Jan-2025 01:07 PM
» Replies: 2
» Views: 106
My Snakeoil-powered system
Last Post: petemac110
29-Jan-2025 03:46 AM
» Replies: 4
» Views: 490

[-]
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-2025. Theme © Melroy van den Berg.