main: increase max write size to maximum
Previously, it was at the go-fuse default of 64KiB. Getting bigger writes should increase throughput somewhat. Testing on tmpfs shows an improvement from 112MiB/s to 120MiB/s.
This commit is contained in:
parent
cf1ded5236
commit
f91ce0b004
7
mount.go
7
mount.go
@ -282,8 +282,11 @@ func initFuseFrontend(key []byte, args *argContainer, confFile *configfile.ConfF
|
|||||||
EntryTimeout: time.Second,
|
EntryTimeout: time.Second,
|
||||||
}
|
}
|
||||||
conn := nodefs.NewFileSystemConnector(pathFs.Root(), fuseOpts)
|
conn := nodefs.NewFileSystemConnector(pathFs.Root(), fuseOpts)
|
||||||
var mOpts fuse.MountOptions
|
mOpts := fuse.MountOptions{
|
||||||
mOpts.AllowOther = false
|
// Bigger writes mean fewer calls and better throughput.
|
||||||
|
// Capped to 128KiB on Linux.
|
||||||
|
MaxWrite: 1048576,
|
||||||
|
}
|
||||||
if args.allow_other {
|
if args.allow_other {
|
||||||
tlog.Info.Printf(tlog.ColorYellow + "The option \"-allow_other\" is set. Make sure the file " +
|
tlog.Info.Printf(tlog.ColorYellow + "The option \"-allow_other\" is set. Make sure the file " +
|
||||||
"permissions protect your data from unwanted access." + tlog.ColorReset)
|
"permissions protect your data from unwanted access." + tlog.ColorReset)
|
||||||
|
Loading…
Reference in New Issue
Block a user