원문 보기: https://dawoum.duckdns.org/wiki/Btrfs
보통, 마운트 옵션에서 compress=zstd를 사용할 경우에 압축 레벨 3를 사용하고, HDD와 느린 플래시 스토리지에 적합하다고 알려져 있습니다. 좀 더 빠른 SATA SSD는 압축 레벨 2가 적당하고, NVME는 압축 레벨 1이 적당하다고 합니다:
Yup, this is it. On slow storage higher compression levels tend to yield higher total storage throughput because you spend less time bound by slow storage bandwidth, instead you spend CPU time compressing/decompressing that data. The rick is to pick a compression level that yields greater total throughput than storage bandwidth can accommodate on its own. This approach works well on bandwidth limited storage like HDD pools, slow flash nand, flash nand attached to the system via slow USB, etc.
On the flip side you don't want to constrain high bandwidth storage by sending data through a compression algorithm that limits throughput so lower compression levels (like zstd:1 on nvme storage, or zstd:2 on fast SATA SSDs) are usually safe choices.— seaQueue, Btrfs compress level, https://www.reddit.com/r/btrfs/comments/15i0psb/which_compression_level_should_i_choose/
위에 인용하지는 않았지만, 이를 언급한 사용자는 결국 간단한 벤치마킹을 통해 자신의 디바이스에 적합한 압축 수준을 결정하라고 합니다.
일반 사용자의 입장에서 벤치마킹이 쉽지 않기 때문에, 그냥 위에서 제시한 압축 수준을 그대로 이용할 수 있습니다.
댓글
댓글 쓰기