enhance: revert mmap configs (#46581)

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
This commit is contained in:
XuanYang-cn 2025-12-29 15:09:21 +08:00 committed by GitHub
parent f087b7432e
commit 4230a5beaa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -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:

View File

@ -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)
}