From 21c6babdbb0e8e1f7fb4633340fd6ebd8be366d3 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 4 Nov 2019 17:40:39 +0000 Subject: [PATCH] mount: enable async reads for a 20% speedup Now that the vfs can cope with out of order reads we can enable the async read feature for an increase in througput on the local disk of about 20%. --- cmd/mount/mount.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/mount/mount.go b/cmd/mount/mount.go index 117eb76da..e798e3d28 100644 --- a/cmd/mount/mount.go +++ b/cmd/mount/mount.go @@ -32,12 +32,10 @@ func mountOptions(device string) (options []fuse.MountOption) { fuse.Subtype("rclone"), fuse.FSName(device), fuse.VolumeName(mountlib.VolumeName), + fuse.AsyncRead(), // Options from benchmarking in the fuse module //fuse.MaxReadahead(64 * 1024 * 1024), - //fuse.AsyncRead(), - FIXME this causes - // ReadFileHandle.Read error: read /home/files/ISOs/xubuntu-15.10-desktop-amd64.iso: bad file descriptor - // which is probably related to errors people are having //fuse.WritebackCache(), } if mountlib.NoAppleDouble {