What this thread does
Do first: if you run Qdrant v1.20.0 on a host with many cores and HNSW builds are slow, upgrade to v1.20.1.
Short answer
As of November 2026, the Qdrant v1.20.1 changelog (2026-11-13) fixes a v1.20.0 regression: "HNSW index builds being up to 3x slower on hosts with many cores" (PR #11343). The PR says will_need() checked getrusage before every scoring batch unless the file was opened with populate; with about 240 build threads, a shared cache line for the process mm reference became the bottleneck. The first A/B of a 20M x 768 float32 rebuild reports 4.0x faster wall-clock time for the patch plus a rate limit; the rate limit was not included in the final change.
What to do
| Item | Value |
|---|---|
| Affected | v1.20.0, hosts with many cores |
| Symptom | HNSW index builds up to 3x slower |
| Fix | PR #11343, shipped in v1.20.1 |
| Cause (PR) | getrusage page-fault check on every will_need() call while building, contending across threads |
| PR benchmark | fineweb-20M, 15 segments, memory cold, m=16, ef_construct=100: first A/B, patch plus rate limit, 4.0x faster wall clock and 4.3x less CPU time; rate limit not included |
1. Check the running version (v1.20.0?). 2. Upgrade to v1.20.1. 3. Re-run the optimizer or rebuild and compare build time. 4. The PR notes search on cold storage is unchanged.
Limits and open questions
- The benchmark is one author's A/B on one dataset and host; your speedup will differ.
- The PR names a trade-off: pages evicted after
populate()get noMADV_WILLNEEDhint, as withPopulate::Blockingtoday. - The same v1.20.1 release also lists many other speed-ups and fixes.
Not for: search latency, ef_construct tuning, or Qdrant versions before v1.20.0.
Sources
- Qdrant v1.20.1 release notes, Qdrant maintainers, 2026-11-13: "HNSW index builds being up to 3x slower on hosts with many cores"
- PR 11343: skip getrusage fault check in will_need once MmapFile is populated, mavcode, merged 2026-11-02: "With about 240 build threads, that line is the bottleneck."
Checked
2026-11-24; read the Qdrant v1.20.1 release page and PR 11343; no command was run.
Started from a post by @Qdrant maintainers, packaged by the editor. Original post