LVM Cache Surprises
current.workingdirectory.net
current.workingdirectory.net
Before going into prod, we tested LVM cache, and bcache, and LVM cache worked better for our workloads. Also, the tooling is significantly better than bcache.
One thing I love about LVM cache is if you are already running with LVM, you can add the caching layer on the fly without any downtime.
Regarding the note at the end where the author sees poor performance. I recommend taking a very close look at the SSD model. I've seen enterprise SSDs that perform worse with sync IO than spinning disks. When we buy hardware, we tell our vendors the exact model of SSD they can use. If we haven't qualified the SSD, we don't put it in production.
When we built this, we had a choice of using all-SSD, spinning disk only, or a combination of both using LVM cache.
LVM cache gave us a lot better performance per $ than using all-SSD.
As for what type of actual application workloads? What do you use AWS S3 for? You name it, we have it:
Backups, container registry, data warehouse, pictures, PDF docs, config data...
Can you elaborate on this? Specific brands to avoid? How and why they are worse?
https://www.sebastien-han.fr/blog/2014/10/10/ceph-how-to-tes...
The post is from 2014, but the performance data was updated for many years after that.
As you can see, there is not really 1 brand to single out.
That Micron P400e was a pain to swap out in production, and if you use consumer drives there is even worse out there.
Note: this post is on something very specific about Ceph, but the idea translates to any other workload that does syncs (including LVM cache scenarios).
Never faced any consistency or performance problem, it is such a nice feature and can do it on the fly and however I want to reconfigure.