From 494c5b7ccabea4e946da686bfeabc947c6f79348 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sun, 21 Jul 2024 07:06:26 +0300 Subject: [PATCH] essentialsoftware: note btrfs compression --- n/essentialsoftware.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/n/essentialsoftware.md b/n/essentialsoftware.md index 2cab40d..1376f73 100644 --- a/n/essentialsoftware.md +++ b/n/essentialsoftware.md @@ -24,6 +24,7 @@ _{{ page.excerpt }}_ - [Offtopic system configuration](#offtopic-system-configuration) - [Debian-based](#debian-based) - [SSD](#ssd) + - [BTRFS](#btrfs) @@ -102,3 +103,13 @@ issue): suffering especially on BTRFS. I have been doing fine without it for years, it will not help any issue, unless you want read operations to cause writes and eat space... + +### BTRFS + +- The above applies, `/etc/fstab` must have `noatime`. +- `compress=zstd:0` may be helpful. It enables zstd compression, which is an + integrated feature of BTRFS, with the default compression level (3 at the time + of writing). The BTRFS devs are most likely wiser than me and can provide a + reasonable balance between efficiency and CPU use. + - The compression will happen either the next time the file is written or can + be manually triggered through `sudo btrfs filesystem defragment -r "$PWD"`