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%.
This commit is contained in:
Nick Craig-Wood 2019-11-04 17:40:39 +00:00
parent 5beeac7959
commit 21c6babdbb

View file

@ -32,12 +32,10 @@ func mountOptions(device string) (options []fuse.MountOption) {
fuse.Subtype("rclone"), fuse.Subtype("rclone"),
fuse.FSName(device), fuse.FSName(device),
fuse.VolumeName(mountlib.VolumeName), fuse.VolumeName(mountlib.VolumeName),
fuse.AsyncRead(),
// Options from benchmarking in the fuse module // Options from benchmarking in the fuse module
//fuse.MaxReadahead(64 * 1024 * 1024), //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(), //fuse.WritebackCache(),
} }
if mountlib.NoAppleDouble { if mountlib.NoAppleDouble {