Skip Navigation

Using btrfs compression as a backing device for Zram

So, I'm sure some of you know. If configured, you can use a backing device for Zram for scenarios where Zram can't compress the data, e.g. when it's full. For this you can use pretty much any supported partition format, including btrfs, what I realized is that you can used btrfs disk compression on top of that. Question is, is this a good idea? πŸ˜… I imagine you'd want to use LZO-RLE or Zstd.
\ I'm really deep down the Zram rabbit hole, and I've been thinking about all kinds of scenarios.
\ Maybe a few of you are interested in joining me down this rabbit hole and can share some of your own experiments.

2 comments