enhance(client): change default value for aheadReadMem

close:#1000517044

Signed-off-by: chihe <chihe@oppo.com>
(cherry picked from commit 95cef5547c)
This commit is contained in:
chihe 2025-12-19 10:34:03 +08:00
parent 85d119ca04
commit 2816bd85d9

View File

@ -195,10 +195,10 @@ func InitMountOptions(opts []MountOption) {
opts[BcacheOnlyForNotSSD] = MountOption{"enableBcacheOnlyForNotSSD", "Enable block cache only for not ssd", "", false}
opts[AheadReadEnable] = MountOption{"aheadReadEnable", "enable ahead read", "", false}
opts[AheadReadTotalMemGB] = MountOption{"aheadReadTotalMemGB", "ahead read total mem(GB)", "", int64(30)}
opts[AheadReadTotalMemGB] = MountOption{"aheadReadTotalMemGB", "ahead read total mem(GB)", "", int64(10)}
opts[AheadReadBlockTimeOut] = MountOption{"aheadReadBlockTimeOut", "ahead read block expiration time", "", int64(3)}
opts[AheadReadWindowCnt] = MountOption{"aheadReadWindowCnt", "ahead read window block count", "", int64(128)}
opts[MinReadAheadSize] = MountOption{"minReadAheadSize", "minimum file size to trigger ahead read (bytes)", "", int64(1048576)} // default 1MB
opts[AheadReadWindowCnt] = MountOption{"aheadReadWindowCnt", "ahead read window block count", "", int64(8)}
opts[MinReadAheadSize] = MountOption{"minReadAheadSize", "minimum file size to trigger ahead read (bytes)", "", int64(10485760)} // default 10MB
opts[ForceRemoteCache] = MountOption{"forceRemoteCache", "All read requests are handled by the remote cache.", "", false}
opts[DebugCluster] = MountOption{"debugCluster", "display cluster name", "", ""}
opts[EnableAsyncFlush] = MountOption{"enableAsyncFlush", "async flush extent handler", "", true}