mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
enhance: revert mmap configs (#46581)
Signed-off-by: yangxuan <xuan.yang@zilliz.com>
This commit is contained in:
parent
f087b7432e
commit
4230a5beaa
@ -520,14 +520,14 @@ queryNode:
|
||||
readAheadPolicy: willneed # The read ahead policy of chunk cache, options: `normal, random, sequential, willneed, dontneed`
|
||||
mmap:
|
||||
vectorField: true # Enable mmap for loading vector data
|
||||
vectorIndex: true # Enable mmap for loading vector index
|
||||
scalarField: true # Enable mmap for loading scalar data
|
||||
scalarIndex: true # Enable mmap for loading scalar index
|
||||
vectorIndex: false # Enable mmap for loading vector index
|
||||
scalarField: false # Enable mmap for loading scalar data
|
||||
scalarIndex: false # Enable mmap for loading scalar index
|
||||
jsonShredding: true # Enable mmap for loading json stats
|
||||
# Enable memory mapping (mmap) to optimize the handling of growing raw data.
|
||||
# By activating this feature, the memory overhead associated with newly added or modified data will be significantly minimized.
|
||||
# However, this optimization may come at the cost of a slight decrease in query latency for the affected data segments.
|
||||
growingMmapEnabled: true
|
||||
growingMmapEnabled: false
|
||||
fixedFileSizeForMmapAlloc: 1 # tmp file size for mmap chunk manager
|
||||
maxDiskUsagePercentageForMmapAlloc: 50 # disk percentage used in mmap chunk manager
|
||||
lazyload:
|
||||
|
||||
@ -163,8 +163,8 @@ func (suite *SegmentSuite) TestResourceUsageEstimate() {
|
||||
// sealed segment has resource usage
|
||||
usage = suite.sealed.ResourceUsageEstimate()
|
||||
// mmap is on
|
||||
suite.Zero(usage.MemorySize)
|
||||
suite.NotZero(usage.DiskSize)
|
||||
suite.NotZero(usage.MemorySize)
|
||||
suite.Zero(usage.DiskSize)
|
||||
suite.Zero(usage.MmapFieldCount)
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user