summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-09-06 09:47:27 +0200
committerJakob Unterwurzacher2015-09-06 09:47:27 +0200
commitad3a1a88994bbf54e95295d70f7424b67894da3e (patch)
tree961738ec26cea8fb5907b37e78de8a3edac8daf8 /main.go
parent448e88490bedb1efcaa6bc19f2347a24ed27579a (diff)
Set readahead to 1MB
This bring streaming read performance from 12MB/s to 30MB/s
Diffstat (limited to 'main.go')
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index 6857b61..20b340a 100644
--- a/main.go
+++ b/main.go
@@ -30,6 +30,7 @@ func main() {
fuse.Subtype(PROGRAM_NAME),
fuse.VolumeName(PROGRAM_NAME),
fuse.LocalVolume(),
+ fuse.MaxReadahead(1024*1024),
}
conn, err := fuse.Mount(conf.GetMountPoint(), mountOpts...)
if err != nil {