From 4230a5beaaed3c8822da3958d7175ede005d9ab3 Mon Sep 17 00:00:00 2001 From: XuanYang-cn Date: Mon, 29 Dec 2025 15:09:21 +0800 Subject: [PATCH] enhance: revert mmap configs (#46581) Signed-off-by: yangxuan --- configs/milvus.yaml | 8 ++++---- internal/querynodev2/segments/segment_test.go | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/configs/milvus.yaml b/configs/milvus.yaml index 145cf1a045..16489e9a2c 100644 --- a/configs/milvus.yaml +++ b/configs/milvus.yaml @@ -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: diff --git a/internal/querynodev2/segments/segment_test.go b/internal/querynodev2/segments/segment_test.go index 4676e38dc2..fe604fcb46 100644 --- a/internal/querynodev2/segments/segment_test.go +++ b/internal/querynodev2/segments/segment_test.go @@ -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) }