RAM cache (disk) support


Recommended Posts

Hi all,

 

Since more hardwares support big memory now (64GB, 128GB or above), the feature of RAM cache (disk) becomes practical.

RAM cache has more i/o speed than SSD, and no worries about SSD lifetime. This feature can be either

 

  • Accelerating unraid JBOD arrays by RAM caching. Or,
  • User-defined temporary file storage

 

I would like to see this performance enhancement.

 

 

Link to comment
On 3/6/2023 at 8:19 AM, itimpi said:

Any location that is not on a physical device would automatically be in RAM so you can get this already.

 

I apologize but could you elaborate on how to do this. I understand the basis of what you said however when I look to store data for example my Plex transcode folder in what I would like to be a Ram Cache. the only locations I can see would be the array or my unassigned drive (SSD) I am currently using. How would I point that to "Any location that is not a physical Device" If I can not see it? Sorry for such a noobish question. 

Link to comment
On 3/11/2023 at 5:03 PM, JorgeB said:

Unraid has a default RAM disk on /dev/shm, it will use half installed RAM, and safer to use that.

Exactly. Many unix-style system has /dev/shm device that uses RAM first (could use swap file if needed) as "tmpFS".

That is what I need, but it is not convenient to use. Forgive me, in Unraid system, I don't really want to use the terminal.

So I request this feature to support RAM disk: maybe in a plugin, that could configure RAM disk on website, in cache pool or somewhere else.

Link to comment
  • 4 months later...
  • 4 weeks later...

I have a (for me) huge amount of ram installed on my homeserver and tested creating dummyfiles on /dev/shm.

Unfortunatelly it seems that only half of the installed RAM is available. After a certain point i get "No space left on device." even though RAM is only half filled.

 

Is there a way to change that so that my RAM is not installed but unused all the time?

Link to comment
On 8/30/2023 at 11:23 AM, nuhll said:

 

So, command in the go file it is?

sudo mount -o remount,size=XXXG /dev/shm

 

 

On 8/30/2023 at 11:23 AM, nuhll said:

I have all my dockers on dev shm and made it nearly full ram ("only" have 64gb)

Cool! Is there a guide how to do that?

Link to comment
36 minutes ago, Greyberry said:

 

So, command in the go file it is?

sudo mount -o remount,size=XXXG /dev/shm

 

 

Cool! Is there a guide how to do that?

Wouldnt change it there. Install user scripts plugin and make a script run ONLY once at startup

 

A guide for what? Just change all directories (of temp files) which normally would go to appdata to dev shm.

 

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.