Skip to content

How to config cache size? #27715

Oct 16, 2023 · 3 comments · 8 replies
Discussion options

You must be logged in to vote

The milvus v1.x can swap data between memory and disk. If the data size is larger than the cache size, it can load/release segments one by one to search. Once the cache is full, it releases a segment and reads the next segment from the hard disk to search. Since reading data from a hard disk is much slower than from memory, the search performance is very poor. Only when the data size is less than cache size, the search performance is the best.

Milvus v2.x doesn't support swapping data between memory and disk. It requires the target collection must be fully loaded into memory before searching.

The milvus v1.x C++ sdk is here https://github.com/milvus-io/milvus/tree/1.1/sdk, it is inside th…

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
3 replies
@ngominhhaibk
Comment options

@yhmo
Comment options

Answer selected by ngominhhaibk
@ngominhhaibk
Comment options

Comment options

You must be logged in to vote
1 reply
@yhmo
Comment options

Comment options

You must be logged in to vote
4 replies
@yhmo
Comment options

@ian-lss
Comment options

@yhmo
Comment options

@ian-lss
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants