rfjakob / gocryptfs

Encrypted overlay filesystem written in Go
https://nuetzlich.net/gocryptfs/
MIT License
3.54k stars 252 forks source link

mmap writes are slow on Linux 4.2+, xfstests generic/074 hangs #11

Closed rfjakob closed 8 years ago

rfjakob commented 8 years ago

Or maybe runs really slow? Will investigate next week.

rfjakob commented 8 years ago

Seems to be a kernel writeback issue. This affects all FUSE filesystems, but is fixed in v4.4-rc5-18-gedb42dc .

fuse-devel thread: http://news.gmane.org/find-root.php?message_id=CAPv9Zmm7WOQvMTTJjvxgXfRXzF7nes5zmJvnAo7GKqY7muWwhA%40mail.gmail.com

rfjakob commented 8 years ago

Nope, just took longer to trigger it.

rfjakob commented 8 years ago

Posted to linux-kernel ( http://thread.gmane.org/gmane.linux.kernel/2132944 ), no replies so far.

rfjakob commented 8 years ago

The mailing thread has continued here: http://thread.gmane.org/gmane.comp.file-systems.fuse.devel/15129 , fix has been written: https://lkml.org/lkml/2016/3/10/21

rfjakob commented 8 years ago

Patch: https://patchwork.kernel.org/patch/8554181/

rfjakob commented 8 years ago

Patch landed in Linux 4.6-rc7: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=74d369443325063a5f0260e63971decb950fd8fa

Linux v4.4.10 and v4.5.4 final (currently in review as 4.4.10-rc1/4.5.4-rc1) will have it, too.

rfjakob commented 8 years ago

Fedora 24 ships with kernel 4.5.7, considering this solved.