Use ramfs rather than tmpfs in RAMDisk.
#1
Not sure how many people use RAMDisk but for me, it provides better SQ than playing music on disk or from network drive.  This is enabled in SnakeOil / Hardware tab.  (And use Browse tab to push music to RAMDisk).

[Image: Ramdisk-settings.jpg]

My NUC has lots of free memory, but I allow for plenty of spare room.  There are 2 ways to enable RAM disk, tmpfs and ramfs.  From AK in the Wiki
 
Quote:tmpfs
tmpfs has more checks and balances. You'll never run out of memory with this type. If your system runs out of space, the Operating System will automatically swap out unused memory blocks into swap space. The upside is increased stability. The downside is memory swapping incurs a penalty and may result in lessor audio quality.

ramfs
This is the more unstable version of a RAM disk. The Operating System will not swap out your memory. If you specify a size that's too big and the system has run out of RAM, the whole machine will freeze in ithe worst case scenerio. The upside is you are assured of the lowest possible latency in music playback. The downside is you got to really know what you're doing.

Based on above advice, been conservative and using tmpfs until I (just) found out that it impacts latency.  For reference, running SO 1.3.0 on Ubuntu Server 22.0.4 LTS with real time kernel. System load average about 1.5, with CamillaDSP running convolution room correction. playing music using LMS/Squeezelite. CPUset is enabled with CPU 0, 1 for system and 1, 2 for user.  

[Image: Cyclictest-ramfs.jpg]
This is typical max latency using ramfs

[Image: Cyclictest-tmpfs.jpg]
Did not realise how bad tmpfs affected the max latency.

So, I hope I know what I am doing, and will now use ramfs from here on.  On the Pi, there is a lot less free memory, but will leave some room below the free memory limit.
Reply

#2
(02-Jan-2024, 03:28 PM)Snoopy8 Wrote: So, I hope I know what I am doing, and will now use ramfs from here on.  On the Pi, there is a lot less free memory, but will leave some room below the free memory limit.
You'll be fine as long as you make sure you don't run of RAM, which is kind of OK with computer playback.

Do not be influenced by lower latency is always better mantra. It's more about the profile, which really isn't possible with a normal cyclic test. You'll really need to bin the latency into "bins", and look at it from a frequency domain, i.e. cyclicscope. I hope to implement this in the WebApp some day, unsure when though. That will be more useful, however we should also avoid the "is better" concept, as this is just one variable of a somewhat complex (if not outright chaotic) puzzle.
Snakeoil Operating System - Music, your way!
Reply



Bookmarks



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
Howto setup resampling in Logitech Media...
Last Post: Coacharnold
18-Nov-2024 12:06 AM
» Replies: 7
» Views: 5811
Dropping Measurements, Hello High-End.
Last Post: agent_kith
26-Oct-2024 09:02 AM
» Replies: 12
» Views: 455
Very happy to have Sankeoil......! mpd w...
Last Post: run51
24-Oct-2024 05:35 AM
» Replies: 9
» Views: 1686
SO no soundcard detected - RPI Pi4 snake...
Last Post: run51
21-Oct-2024 10:55 PM
» Replies: 4
» Views: 114
download
Last Post: Snoopy8
19-Oct-2024 05:52 AM
» Replies: 1
» Views: 113
Full proces to instal snakeiol 100% work...
Last Post: audioluthier
11-Oct-2024 02:32 AM
» Replies: 9
» Views: 349
A network protocol designed for CAS
Last Post: hkphantomgtr
10-Oct-2024 09:48 PM
» Replies: 0
» Views: 90
CAS with "Single Core"
Last Post: hkphantomgtr
06-Oct-2024 08:32 AM
» Replies: 2
» Views: 124
MPD player not working
Last Post: Snoopy8
27-Sep-2024 11:54 AM
» Replies: 7
» Views: 225
LMS playing DFF files sampling rate
Last Post: Snoopy8
16-Sep-2024 07:45 PM
» Replies: 5
» Views: 163

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