Closed colorimeter closed 5 months ago
@colorimeter you can fix excessive fragmentation by passing -noprealloc
command line switch.
Without -noprealloc
, I've got 30-80 fragments on ext4 (file created by dd if=/dev/zero of=plain/zero bs=1M count=10
).
With -noprealloc
, only 1 fragment.
@alex3d: interesting, but -noprealloc is always forced for BTRFS, so there is no way to improve the allocation there.
@colorimeter: No, actually -noprealloc
is not forced for BTRFS, despite misleading console message. Try to pass this option manually.
@alex3d : wow, you are right! What a misleading message! Thank you.
Fixed via https://github.com/rfjakob/gocryptfs/pull/830/commits/841784124281024c503eb863f02d09a255d446ae . Now btrfs actually causes -noprealloc to be enabled, like the message says.
Files are created terribly fragmented
on btrfs, maybe because of forced -noprealloc, butit makes gocryptfs unusably slow.Update: it happens on ext4 too.
160 extents:
doing the same over the same btrfs filesystem with encfs: 1 extent:
And the BTRFS fs itself without encryption handles the task well: