SSD cache drive (EXT4 + alignment)


Recommended Posts

With the drop in price of SSD using SSD as a cache drive is even more viable. Obviously SSD can be used this now but without EXT4 there is no TRIM and I am not sure if the current alignment code is optimized for SSD.

 

So I am proposing:

 

EXT4 with TRIM support

EXT4 choice for cache drive

Alignment if necessary

 

Likely a tick box that says SSD that automatically uses these settings would be the most convenient route.

Link to comment

Are there any thoughts about using an SSD as a block cache drive as opposed to a filesystem-based cache drive (like ZFS supports and BTRFS is going to be supporting soon) ?

 

Obviously 5.1.... 5.5.... 6.0 type stuff, not 5.0 :)

 

It'd just be nice to be able to put in a fast device and have things go faster without worrying about space for said cache device.

Link to comment

You would still be limited by your network. Assuming you're running a GbE network, that's 125 Mb/s max. And it's very unlikely you'll reach that speed anyway, even with a SSD.

 

Speed is an issue for me as well and I'm seriously considering going for a dedicated 10GbE link between my workstation and my server. As for future unRAID devs, I think a native link aggregation is much more useful. My 2 ct though...

Link to comment

It not only what's coming over the wire to the cache drive. Ex. Sab DL to the cache drive over the wire Handbrake encodes running, iso's unpacking. Fixing a DL with quickpar, remuxing a few mkv's, watching a recent DL, deleted BR iso's after unpack, etc all this happening at the same time. I have personally brought my cache drive to a turtles pace, were you could see I/O waits. So an SSD would be very welcomed. Not large enought yet, unless there was a way to have several under raid 0 as one cache drive.

 

Link to comment

It would also be a big boost for things like XBMC central art cache where there are hundreds of thousands of small files.

 

As madburg points out its not only about throughput over the wire.

 

Sorry could you clarify this? Would you need to create a hidden directory on the cache drive and specify with XBMC where the art cache is stored or would XBMC benefit natively?

Link to comment

I think this is a really good idea.

 

SSD's become cheaper every day, and for me it would be great to have my MediaPortal Artwork Cache and SQLite DB's on that cache drive so every HTPC could access it.

Btw. that maybe a dumb question, but till now i dont use any cache drive. Is a share on a cache drive already possible today? And would that share also be protected by unRaid. In my opinion this shar would be out of the Array, and so not protected, what wouldn't be a problem for me in this case.

Link to comment

I think this is a really good idea.

 

SSD's become cheaper every day, and for me it would be great to have my MediaPortal Artwork Cache and SQLite DB's on that cache drive so every HTPC could access it.

Btw. that maybe a dumb question, but till now i dont use any cache drive. Is a share on a cache drive already possible today? And would that share also be protected by unRaid. In my opinion this shar would be out of the Array, and so not protected, what wouldn't be a problem for me in this case.

 

Data on the cache drive will not be protected by the array however could be protected independently if you were to use hardware RAID1 (two mirrored drives acting as a single cache drive). The unRAID wiki explains a couple of ways you can use the cache drive for other purposes, based on how the mover operates:

 

Link: http://lime-technology.com/wiki/index.php/Cache_disk#The_Mover

 

- The mover will not move any top-level directories which begin with a '.' character. Such directories will not exist in normal use, but an advanced user may use this knowledge to create directories which won't get moved.

- The mover will not move any files that exist in the root of the cache disk. Such files will not exist in normal use, but an advanced user may use this knowledge to create files which won't get moved (for example, a swap file).

 

If you created a folder on the cache drive called ".stuff" then this folder would never be moved to the array by the mover and could be used to store metadata. Alternatively any files stored directly on the cache drive (not in folders) will also not be touched by the mover.

Link to comment

That sound good.

By the way it would be possible to write a shell script which could run every now and then compress the data and copy it to the array.

So also the data on the cache drive would atleast be backed up.

 

I mean for the data i would store there, that would be safe enough.

Link to comment
  • 2 weeks later...

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.