4

Is there a way to setup on a Linux iSCSI initiator a local disk partition for write cache ?

The data would be first written on some high performance local disk and then in a second time on capacitive disks mounted through iSCSI.

Thanks

3
  • 1
    so are you asking for a 3 tiers vs the normal 2 tiers (not counting the local hd cache) of caching as in the system os will cache disk io then you want something like a layer of ssd then a final write to spinning disks? Or should you just buy more ram so the os can cache more disk io?
    – tony roth
    Nov 21, 2012 at 16:44
  • The use case is to write a lot of data faster than the 1Gb ethernet link is able to transfer to the disks enclosure. The hardware cache is on the enclosure side (so after the ethernet bottleneck). So the idea is indeed emulating an SSD layer.
    – skizo
    Jan 30, 2013 at 8:40
  • Beware, a writeback cache does NOT mean more throughput in many situations. It must be flushed regularly. This flush has to happen over the ethernet link, so you will still be limited to your link speed during sequential write. If you are making many small changes sporadically, a writeback cache will perform beautifully. However, it will be nearly useless in a sequential write pattern or heavy continuous random writes, such as a backup, media, or highly active database server. The same is true of a read cache in most situations.
    – Spooler
    Oct 11, 2016 at 8:17

1 Answer 1

4

Take a look at block cache solutions, like bcache, flashcashe, l2arc on zfs...

You must log in to answer this question.

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