On 2021/1/23 下午6:39, Roman Mamedov wrote:
On Sat, 23 Jan 2021 16:42:33 +0800
Qu Wenruo <quwenruo.bt...@gmx.com> wrote:

For the worst case, btrfs can allocate a 128 MiB file extent, and have
good luck to write 127MiB into the extent. It will take 127MiB + 128MiB
space, until the last 1MiB of the original extent get freed, the full
128MiB can be freed.

Does it mean enabling compression actually mitigates this issue as a
side-effect? Since each extent will be limited to only 128K.

Yes! Compression brings the side effect of reducing the maximum data
extent size, thus mitigates the problem by 1024.

But the problem is still there.

Thanks,
Qu

What are the typical extent sizes without compression?

Reply via email to