Can mmap be used when building a HNSW index? #41649
Replies: 3 comments
-
mmap only takes effect for index files and raw data files. |
Beta Was this translation helpful? Give feedback.
-
Milvus split data into segments, by default it's 1G. Which means even if you have 10G data, buidling index will only takes you 2-3 GB memory instead of 10GB+ |
Beta Was this translation helpful? Give feedback.
-
if you don't have enough memory, the easiest way it to reduce the segment size to 256MB(of course it will affect your performance) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I understand that with mmap support, loading an existing HNSW index for search reduces memory usage a lot. But can milvus use mmap during insertion? If not, is DiskANN the only option if the server doesn't have enough RAM to build the index?
Beta Was this translation helpful? Give feedback.
All reactions