Skip to content

Commit df10ac4

Browse files
committed
wip: mount2: temporarily cap the max_write to 128 KiB to reduce memory usage
Signed-off-by: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com>
1 parent 7d200f6 commit df10ac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/mount2/mount.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func mountOptions(fsys *FS, f fs.Fs, opt *mountlib.Options) (mountOpts *fuse.Mou
3131
DisableXAttrs: true,
3232
Debug: fsys.opt.DebugFUSE,
3333
MaxReadAhead: int(fsys.opt.MaxReadAhead),
34-
MaxWrite: 1024 * 1024, // Linux v4.20+ caps requests at 1 MiB
34+
MaxWrite: 128 * 1024, // Linux v4.20+ caps requests at 1 MiB
3535
DisableReadDirPlus: true,
3636
MaxStackDepth: fsys.opt.MaxStackDepth,
3737

0 commit comments

Comments
 (0)