Skip to content

Question about gocryptfs performance #756

Answered by rfjakob
ffaruqui asked this question in Q&A
Discussion options

You must be logged in to vote

The numbers at https://nuetzlich.net/gocryptfs/comparison/#performance-on-linux are with bs=128k. For small blocksizes, like 1k as you have, the FUSE overhead comes into play quite a bit.

I have benchmarked what I get for blocksizes from 1kiB up to 1MiB. Note that gocryptfs internally works with blocks up to 128kiB in size, so going larger than that should make no difference.

$ for i in 1k 2k 4k 8k 16k 32k 64k 128k 256k 512k 1M ; do echo -n "bs=$i: " ; timeout --foreground -s INT 1s dd if=/dev/zero bs=$i of=zero 2>&1 | tail -1 ; done
bs=1k: 10482688 bytes (10 MB, 10 MiB) copied, 0,472906 s, 22,2 MB/s
bs=2k: 40665088 bytes (41 MB, 39 MiB) copied, 0,996893 s, 40,8 MB/s
bs=4k: 95678464 bytes…

Replies: 2 comments 14 replies

Comment options

You must be logged in to vote
13 replies
@rfjakob
Comment options

@ffaruqui
Comment options

@rfjakob
Comment options

@ffaruqui
Comment options

@rfjakob
Comment options

Answer selected by rfjakob
Comment options

You must be logged in to vote
1 reply
@DrDaveD
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants