Discussion:
Any way to allow contiguous writes to be cached?
Daniel Smedegaard Buus
2014-04-01 07:10:23 UTC
Permalink
On Amazon EC2, SSD devices on instances are wiped when a machine
crashes and between stop/start cycles.

Therefore, I'm using them with writethrough bcache in front of slower
EBS storage to ensure that my data survives such scenarios, while
still benefiting from (some of) the speed they provide.

My actual data set isn't expected to grow beyond the size that the
cache device offers any time soon, if ever, and so in my case, the
optimum behavior of bcache would be to not just cache random data, but
contiguous as well.

I realize that this isn't how bcache behaves, but I'm wondering if
there's any way to tell it to do so?

Thanks in advance,
Daniel :)
Sitsofe Wheeler
2014-04-01 09:29:14 UTC
Permalink
Hi,
Post by Daniel Smedegaard Buus
My actual data set isn't expected to grow beyond the size that the
cache device offers any time soon, if ever, and so in my case, the
optimum behavior of bcache would be to not just cache random data, but
contiguous as well.
I realize that this isn't how bcache behaves, but I'm wondering if
there's any way to tell it to do so?
A very frequent question - see TROUBLESHOOTING PERFORMANCE in the
bcache.txt document
(http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/bcache.txt#n130
) - explicitly the "Bad performance, or traffic not going to the SSD that
you'd expect".
--
Sitsofe | http://sucs.org/~sits/
Daniel Smedegaard Buus
2014-04-01 10:50:07 UTC
Permalink
Post by Sitsofe Wheeler
Hi,
A very frequent question - see TROUBLESHOOTING PERFORMANCE in the
bcache.txt document
(http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/bcache.txt#n130
) - explicitly the "Bad performance, or traffic not going to the SSD that
you'd expect".
Ah, that's great, thank you Sitsofe :)
Post by Sitsofe Wheeler
--
Sitsofe | http://sucs.org/~sits/
Loading...