translator
1,005
edits
(Vorschlag kompression einschalten) |
(Tabelle mit vorschlägen eingefügt) |
||
Line 436: | Line 436: | ||
== Compression [https://btrfs.readthedocs.io/en/latest/Compression.html ⇒] == <!--T:87--> | == Compression [https://btrfs.readthedocs.io/en/latest/Compression.html ⇒] == <!--T:87--> | ||
You can turn on compression at any time by changing the mount options in the fstab. After the next reboot, all newly written data from then on will be automatically compressed. Compression factors of 2:1 on average are not uncommon. | |||
[[Btrfs#Mount_options|@see mount-options]] | |||
UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx / btrfs rw,noatime,compress=zstd,subvol=@ 0 0 | |||
{| class="wikitable" | |||
|+ Which compression suits me best? | |||
|- | |||
! CPU !! rotating disk !! SSD | |||
|- | |||
| slow || zstd:1 ... 4 || zstd:1 ... 3 | |||
|- | |||
| medium || zstd:4 ... 7 || zstd:3 ... 5 | |||
|- | |||
| fast || zstd:7 ... 10 || zstd:5 ... 10 | |||
|} | |||
Compression can only be set '''per volume'''. So if you set different "levels" of compression for different mounts in the fstab, only the first "level" will be applied. [https://btrfs.readthedocs.io/en/latest/Compression.html#how-to-enable-compression see@btrfs.readthedocs.io] | Compression can only be set '''per volume'''. So if you set different "levels" of compression for different mounts in the fstab, only the first "level" will be applied. [https://btrfs.readthedocs.io/en/latest/Compression.html#how-to-enable-compression see@btrfs.readthedocs.io] | ||
{{BoxWarning|Grub needs to load the kernel and initrd|When you use compression on kernel, initrd, or grub config files, '''grub''' needs to decompress these files. Otherwise you will '''not be able to boot'''. GRUB introduced '''zstd''' support in '''2.04.''' Maybe you need to update grub '''and''' reinstall it}} | {{BoxWarning|Grub needs to load the kernel and initrd|When you use compression on kernel, initrd, or grub config files, '''grub''' needs to decompress these files. Otherwise you will '''not be able to boot'''. GRUB introduced '''zstd''' support in '''2.04.''' Maybe you need to update grub '''and''' reinstall it}} |