mirror of https://github.com/milvus-io/milvus.git
enhance:[cherry-pick]update mmapchunkmanager config in milvus.yaml (#35186)
issue: https://github.com/milvus-io/milvus/issues/32984 related pr: https://github.com/milvus-io/milvus/pull/35180 Signed-off-by: cqy123456 <qianya.cheng@zilliz.com>pull/35245/head
parent
f90322a8ca
commit
d9c1990045
|
@ -348,8 +348,8 @@ queryNode:
|
|||
mmap:
|
||||
mmapEnabled: false # Enable mmap for loading data
|
||||
growingMmapEnabled: false # Enable mmap for growing segment
|
||||
fixedFileSizeForMmapAlloc: 4 #MB, fixed file size for mmap chunk manager to store chunk data
|
||||
maxDiskUsagePercentageForMmapAlloc: 20 # max percentage of disk usage in memory mapping
|
||||
fixedFileSizeForMmapAlloc: 1 #MB, fixed file size for mmap chunk manager to store chunk data
|
||||
maxDiskUsagePercentageForMmapAlloc: 50 # max percentage of disk usage in memory mapping
|
||||
lazyload:
|
||||
enabled: false # Enable lazyload for loading data
|
||||
waitTimeout: 30000 # max wait timeout duration in milliseconds before start to do lazyload search and retrieve
|
||||
|
|
|
@ -179,7 +179,7 @@ func InitMmapManager(params *paramtable.ComponentParam) error {
|
|||
defer C.free(unsafe.Pointer(cCacheReadAheadPolicy))
|
||||
diskCapacity := params.QueryNodeCfg.DiskCapacityLimit.GetAsUint64()
|
||||
diskLimit := uint64(float64(params.QueryNodeCfg.MaxMmapDiskPercentageForMmapManager.GetAsUint64()*diskCapacity) * 0.01)
|
||||
mmapFileSize := params.QueryNodeCfg.FixedFileSizeForMmapManager.GetAsUint64() * 1024 * 1024
|
||||
mmapFileSize := params.QueryNodeCfg.FixedFileSizeForMmapManager.GetAsFloat() * 1024 * 1024
|
||||
mmapConfig := C.CMmapConfig{
|
||||
cache_read_ahead_policy: cCacheReadAheadPolicy,
|
||||
mmap_path: cMmapChunkManagerDir,
|
||||
|
|
Loading…
Reference in New Issue