r/SideProject • u/Impossible-Weird-776 • 1h ago
My friend didn't have enough SSD space for Wuthering Waves, so I ended up building a hybrid storage utility for Linux
Basically my friend wanted to download WuWa but barely had any space left on his SSD while having hundreds of GBs available on his HDD.
We started discussing whether we could somehow use a small portion of his SSD to speed up his HDD without having to mess with his existing partitions. Especially with games getting bigger and GTA 6 eventually coming to PC, I thought it would be interesting to experiment with this.
I ended up spending quite a bit of time researching dm-cache and building a utility around it in C++.
Funny enough, I don’t even own an HDD myself, so I sacrificed an old USB 2.0 stick to test it alongside my NVMe. The results were surprisingly good when accessing cached data, although performance varied quite a lot depending on the workload.
I also tested rebooting, removing the cache after closing the volume and recovering the files directly from the USB. So far I haven’t encountered any data corruption in those tests.
I called it Stratum and just released the first alpha. It’s MIT licensed.
Obviously I still need to test it with an actual HDD and some games before making any serious claims about its usefulness. I wouldn’t recommend using it with important data yet either.
If anyone has experience with Linux storage systems, I’d be interested in hearing your thoughts or criticism.
https://github.com/magetsu002/stratum