8 comments

[ 1.6 ms ] story [ 25.7 ms ] thread
Would BtrFS mix well with BCache? Does anyone recommend it if I want zSTD compression?

Otherwise, what compression options does BCacheFS offer? Is BCacheFS stable enough?

I have been using a BCache (SSD) in front of a BtrFS Native RAID (HDD) for quite a while without issue.
TLDR: I do not recommend using bcache with btrfs, but this is a sample of 1.

I've been using bcache (SSD) with btrfs (4TB hard drive) for while, and am in the process of ripping it out. What I found is the filesystem gets wedged if there is a heavy write load (lots of files) such as running debootstrap. This happened with both write-through and write-back. The symptoms are all requests stall and a kernel log message about hung btrfs tasks. Only a reboot (typically needing sysrq keys to complete) works.

The problem did not occur previously when using btrfs without bcache and the same workload. It also doesn't occur during "lighter" workloads.

See under the status headline on http://bcachefs.org/ and decide for yourself whether that's good enough for your use case.
Wrong filesystem. bcache is the one that sits in front of another filesystem, and improves its performance. bcachefs (your link) is from the same author, but is a standalone filesystem.

https://en.wikipedia.org/wiki/Bcache

I've asked about both, but it's always good to clear things out.
Wow, is all this news from this week coming out because of SC17?
I'm skeptical that any kernel-related news was delayed for announcement during SC. But a lot of the hardware related announcements (e.g. the RHEL on ARM etc...) are probably timed since SC has a major industry expo.