Replies: 7 comments
-
https://github.com/facebookresearch/faiss/wiki/Indexing-1M-vectors
|
Beta Was this translation helpful? Give feedback.
-
@IcanDoItL |
Beta Was this translation helpful? Give feedback.
-
@alexanderguzhva I tried, it doesn't work.
|
Beta Was this translation helpful? Give feedback.
-
the question like erikbern/ann-benchmarks#47 |
Beta Was this translation helpful? Give feedback.
-
Normally one would parallelize the search using Faiss' internal threading. It is unavoidable that the python threading incurs an overhead. https://github.com/facebookresearch/faiss/blob/main/faiss/IndexHNSW.cpp#L266 should be parallelized only if the number of queries is > 1 (and presumbaly something larger than 1) |
Beta Was this translation helpful? Give feedback.
-
For IVF search, this check is performed here: |
Beta Was this translation helpful? Give feedback.
-
Thanks, I see https://github.com/facebookresearch/faiss/wiki/Indexing-1M-vectors. so I try use hnsw index instead of ivf index, but when I use hnsw index and jmeter Stress(Simulate users accessing simultaneously) Testing performance poor. I’m planning to use it in a production environment. each search the number of queries is 1, but there will be multiple users accessing simultaneously. Could you offer some advice? |
Beta Was this translation helpful? Give feedback.
-
I use IndexHNSWFlat make Index.
when I use jmeter Stress Testing performance poor , has many context switch and system call
system call statistics : strace -c -p pid
Summary
Platform
OS: Linux
Faiss version: faiss-cpu = 1.8.0
Installed from: anaconda
Faiss compilation options:
Running on:
Interface:
Reproduction instructions
Beta Was this translation helpful? Give feedback.
All reactions