====== ! BTRFS Hints ====== ===== Attention ===== * 2021-03: Keep at least 10GB free space ! * 2021-03: Never ever let BTRFS to be out of space. Balande data chunks regulary to always make space for growing metadatas (snapshots) * 2021-03: Do not use quota groups (it is not stable) * 2021-03: Do not use BTRFS with HDDs with ''bfq'' scheduler. Performance accesing metadata is very poor and can hause system lockups. * [[https://wiki.debian.org/Btrfs#Other_Warnings|Other Warnings]] ===== Hints ===== * Default node size for ''mkfs.btrfs'' is 16kB and offers best performance. If file is small enough to be stored in btrfs leaf metadata it is directly stored in metadatas (max file size if 16384-148 heaf header) * Disable COW on ''/tmp'': ''sudo chattr -R +C /tmp'' Depending on your chosen Linux distribution, you might want to follow the latest 5.10 LTS kernel which is supposed to contain numerous btrfs related improvements. However, be warned that the current 5.10 kernel also has several btrfs related performance regression issues so definitely do not rush to upgrade even if you are capable of doing so.