Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Cache drive as cache_dirs?

Featured Replies

Hi,

 

Do you know if it's possible use cache_dirs(based ram) over Cache drive?

 

It's interesting because you have all the space of cache drive and no need extra ram to prevent spin up disk when try to get directory info.

 

 

Not sure what you're asking here.

 

Cache Dirs is a utility to cache the directories of your disks in RAM so disks don't need to be spun up to access the directories.

 

A cache drive is used to cache disk writes so they'll be quicker than writing directly to the protected array -- writes can occur at "disk speed" instead of requiring 4 disk operations per write (which are required to maintain parity).

 

Not sure what you're asking here.

 

Cache Dirs is a utility to cache the directories of your disks in RAM so disks don't need to be spun up to access the directories.

 

A cache drive is used to cache disk writes so they'll be quicker than writing directly to the protected array -- writes can occur at "disk speed" instead of requiring 4 disk operations per write (which are required to maintain parity).

I think what he is asking is if instead of keeping the directories cached in ram, to use a cache device (probably an SSD) to do this instead, saving that oh-so-precious RAM.

Yes, that makes sense.    Of course then the cache drive has to spin up to access the directories (unless it's an SSD ... in which case it simply needs to exit standby if it's in that mode).

 

I don't see much benefit to this, as Cache Dirs doesn't really use all that much RAM in the great scheme of things when considering how much RAM modern systems have.

 

  • Community Expert

I also do not see how such a capability could easily be implemented! 

 

The existing cache-dirs. plugin leverages the built-in Linux behaviour of trying to keep in RAM frequently used file/directory information.  Trying to engineer in a different mechanism to achieve similar results would almost certainly be very difficult and error-prone.

Agree ... applying the old "if it ain't broke, don't fit it" adage, the current Cache Dirs package works quite nicely, so I see no reason to change it  :)

 

  • Author

Hi,

 

Thanks for your answers.

 

you are right, i'm talking about using on cache drive SSD anyway about memory cache dir, how much RAM consume on 3rd level directory cached?

 

Do you know if it's working on unraid 6 beta?

 

 

 

 

... how much RAM consume on 3rd level directory cached?

 

It depends entirely on how many files you have.    Read the details on Cache Dirs => there are several options that let you control just what it does/doesn't cache to help control its memory usage.

 

Basically I think you are asking if there is a Paging File capability to set up a SSD as a Virtual Ram disk. Sort of what windows does.

I don't know myself but from the sounds of it I think that is what you are after.

Basically I think you are asking if there is a Paging File capability to set up a SSD as a Virtual Ram disk. Sort of what windows does.

I don't know myself but from the sounds of it I think that is what you are after.

 

I found a swapfile plugin but looks so far to be for Unraid 5. Anyone know if it works for 6 or if there is a version for 6 out there?

Basically I think you are asking if there is a Paging File capability to set up a SSD as a Virtual Ram disk. Sort of what windows does.

I don't know myself but from the sounds of it I think that is what you are after.

 

I found a swapfile plugin but looks so far to be for Unraid 5. Anyone know if it works for 6 or if there is a version for 6 out there?

 

Found Raid 6 - Basic for now only uses Cache Drive. I have a mounted appdisk that is an SSD and it doesn't support it ATM. Looks to be a active project though for this developer. Worth Watching.

http://unraid.zeron.ca/plugins/swapfile/SwapFile.plg

 

Found Unraid 5

https://raw.githubusercontent.com/theone11/swapfile_plugin/master/swapfile.plg

  • Author

is it swapfile plugin compatible with cache_dir?

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.