Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Given a PC with several hard drives: Is it possible to use one fast disk as a giant file cache?

I.e. automatically copying frequently accessed data to that one disk, and transparently redirecting reads and writes to that disk, so that other drives would only have be accessed occassionally.

(writes would have to be forwarded to the other disks after a while of course)


  • the other drives could be powered down most of the time; reducing power, heat, noise
  • speed of the other drives would not matter much.
  • cache disk could be solid state.

How can I set such a system up?

What OS supports these options? Is this possible at all using Windows or Linux?



There are 3 disks with 1 Tb each. most of the files are only accessed very rarely, but about 5% of each disk is used frequently. Which files are used frequently may change over time. A solid state disk with 150GB should cache the currently frequently accessed files, so that access time is faster and the drives can be put into power saving mode.

share|improve this question

It's possible for both Linux and Windows and, in fact, is a good idea. For Windows you can move it in the Advanced settings under performance of your system. Linux depends on the distro but you normally establish it during installation.

Putting the paging on another disk is a good possible boost. In fact, Microsoft has a temporary paging option called "Readyboost" which does this with a thumb drive!

As far as if it's going to be smart about WHAT is cashed is dependent on the OS and really relies more on the Physical RAM of the device. Late Linux versions have excellent cashing as well as Microsoft's SuperFetch and Readyboost on Windows Vista and 7. Older OSes are not so smart.

share|improve this answer
I think you misunderstand ( or I missunderstand the answer): I am not talking about paging. I want to cache files on another disk. So one disk has 1TB of files, but only 5% is accessed frequently. That 50 GB could be cached on another disk automatically, so that the first disk can be powered down most of the time. – HugoRune Jan 6 '11 at 17:01
Yes, this is what SuperFetch and Readyboost do. They cashe files in either RAM or another drive in order for it to load faster. As far as permanent residency on the disk, I can not answer for other then simply installing the most used programs on the second disk – Jeff F. Jan 6 '11 at 17:07
I was thinking more of video and audio files for a multimedia file server. My software would already comfortably fit on the ssd. Sorry, perhaps I should rephrase the question – HugoRune Jan 7 '11 at 1:39

You're thinking of something like bcache. It doesn't quite give you all the things you're looking for though:

the other drives could be powered down most of the time; reducing power, heat, noise

Not really. If the drive is a cache, writes have to be synchronized back to the original disk. Unless you've got a largely read-only workflow (most people don't), you're just not going to see this.

Also, for a cache like this, you'd really only want to be caching things that the cache does better than the underlying storage. If you're talking SSDs and HDDs -- small random I/O. HDs are already good at large sequential I/O.

share|improve this answer

Actually, something just like that would be quite easy, provided you don't mind using ZFS filesystem for all disks. Then you can put cache (L2ARC cache) and write log (ZIL) onto SSD ... ergo: fast access to your often used files without need to move them around! Also, you never have to worry that you will run out of space on SSD and having to shuffle files/programs around in worst possible moment (that is, when you need to do something ASAP).

The only problem is the ZFS Fuse implementation isn't that fast ... might come to the rescue sometime later.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .