I use Linux 5.15.55-1 LTS
Nope, but i did now.
$ sudo btrfs balance start -v /
[sudo] Passwort für user:
WARNING:
Full balance without filters requested. This operation is very
intense and takes potentially very long. It is recommended to
use the balance filters to narrow down the scope of balance.
Use 'btrfs balance start --full-balance' option to skip this
warning. The operation will start in 10 seconds.
Use Ctrl-C to stop it.
10 9 8 7 6 5 4 3 2 1
Starting balance without any filters.
Dumping filters: flags 0x7, state 0x0, force is off
DATA (flags 0x0): balancing
METADATA (flags 0x0): balancing
SYSTEM (flags 0x0): balancing
Done, had to relocate 303 out of 303 chunks
It took a while, but after reboot i got this (note I haven’t made any further changes to the fstab since I changed the 1
for fsck back to 0
:
Btrfs read:
$ time cat Test.tar.gz > /dev/null
cat Test.tar.gz > /dev/null 0,04s user 12,96s system 65% cpu 19,940 total
Btrfs write, copying the data from subvolume to subvolume:
$ time sudo cp Test.tar.gz /opt/Test1.tar.gz
[sudo] Passwort für user:
sudo cp Test.tar.gz /opt/Test1.tar.gz 0,02s user 23,34s system 90% cpu 25,734 total
So it doesn’t matter if there is clear_cache,nospace_cache
& space_cache=v2
in fstab, because it is already the default?
What about discard=async
& ssd
? it’s there since the installation…
So in your opinion i should enable fstrim.timer and delete from fstab discard=async
, ssd
, clear_cache
& nospace_cache
, keep defaults
& noatime
and add compress=zstd:1
?