Skip to content

Commit ccaa43c

Browse files
committed
mount: Use single-level compression on NVMe for Btrfs
This will reduce ratio (though not by much), but it will speed up writes and reads in some cases, since NVMe devices are fast enough anyway and the average CPU becomes a bottleneck. See: https://gist.github.com/braindevices/fde49c6a8f6b9aaf563fb977562aafec Signed-off-by: Vasiliy Stelmachenok <[email protected]>
1 parent 1070c8e commit ccaa43c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/modules/mount/mount.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ mountOptions:
5050
- filesystem: efi
5151
options: [ defaults, umask=0077 ]
5252
- filesystem: btrfs
53-
options: [ defaults, noatime, compress=zstd, commit=120 ]
53+
hddOptions: [ compress=zstd ]
54+
ssdOptions: [ compress=zstd ]
55+
nvmeOptions: [ compress=zstd:1 ]
56+
options: [ defaults, noatime, commit=120 ]
5457
- filesystem: btrfs_swap
5558
options: [ defaults, noatime ]
5659
- filesystem: ext4

0 commit comments

Comments
 (0)