Set readahead to 1MB
This bring streaming read performance from 12MB/s to 30MB/s
This commit is contained in:
parent
448e88490b
commit
ad3a1a8899
1
main.go
1
main.go
@ -30,6 +30,7 @@ func main() {
|
|||||||
fuse.Subtype(PROGRAM_NAME),
|
fuse.Subtype(PROGRAM_NAME),
|
||||||
fuse.VolumeName(PROGRAM_NAME),
|
fuse.VolumeName(PROGRAM_NAME),
|
||||||
fuse.LocalVolume(),
|
fuse.LocalVolume(),
|
||||||
|
fuse.MaxReadahead(1024*1024),
|
||||||
}
|
}
|
||||||
conn, err := fuse.Mount(conf.GetMountPoint(), mountOpts...)
|
conn, err := fuse.Mount(conf.GetMountPoint(), mountOpts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user