Is there a kernel module or some other patch or something similar to Windows' ReadyBoost?
Basically I'm looking for something that allows disk reads to be cached on a Flash drive.
|
Is there a kernel module or some other patch or something similar to Windows' ReadyBoost? Basically I'm looking for something that allows disk reads to be cached on a Flash drive. |
||||
|
|
Bcache could be exactly what you're looking for:
I'm eagerly awaiting its inclusion into Linux mainline, but unfortunately it's still not quite there. Some nice and readable info is also available here: Try it out and see how it works on your system! |
|||
|
|
|
There is none, and it really doesn't make sense anymore. ReadyBoost was useful for a short period of time when machines were RAM-limited, drives were slow, and flash was cheap. With RAM so cheap now, it makes much more sense to use RAM instead. Typical flash drives these days have write speeds of only about 5MB/s and read speeds of about 20MB/s. Compare that to your hard drive's 50MB/s read and write and there doesn't seem to be much point. Real-world performance benefits from ReadyBoost are only seen on heavily memory-constrained systems. |
|||||||||||
|
|
Linux has cachefs, which allows you to add a backing cache filesystem to any filesystem. It was originally designed and released in 1993 by Sun Microsystems for use with NFS, and was quickly copied by other Unix-like systems. So yes, it's already there and has been for years. :) |
|||||||
|
|
ZFS originated in Solaris in 2004 and now available in a few Unices including FreeBSD and Linux (though on Linux still in beta and not in the mainline kernel due to licensing issues) also allows to add one or more secondary caches called |
|||
|
|
|
I haven't found such a module for Linux but DragonFly BSD has something equivalent to Windows ReadyBoost. The feature is called SwapCache. It uses a fast swap partition (SSD/Flash) to cache data and meta-data from another drive (HDD). The man page explains how to configure the information to cache. It describes use cases and when and how to use such a caching mechanism. It appears to be interesting when the system is swaping only from time to time (i.e. the amount of RAM is slightly short) or for frequent reads and writes of meta-data. |
|||
|
|
|
Well, from what I understand, Readyboost is basically an extension to the pagefile, which is comparable to the swap partition on FreeBSD (which I think would be similar in Linux), so you might be able to just make a partition the flashdrive to have a swap partition on it. However, I know almost nothing about these things. |
|||||
|