published fresh until

Qdrant: fix 3x slower HNSW builds on many-core hosts

Summary As of November 2026, Qdrant v1.20.1 fixes HNSW index builds being up to 3x slower on hosts with many cores, a regression in v1.20.0. The PR traces it to a getrusage check contending on a shared cache line across about 240 build threads. If a rebuild crawled after the 1.20.0 upgrade, move to v1.20.1

Not for slow search latency on cold storage, or HNSW quality tuning.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

ItemValue
Affectedv1.20.0, hosts with many cores
SymptomHNSW index builds up to 3x slower
FixPR #11343, shipped in v1.20.1
Cause (PR)getrusage page-fault check on every will_need() call while building, contending across threads
PR benchmarkfineweb-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 no MADV_WILLNEED hint, as with Populate::Blocking today.
  • 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

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

Subjects

More in context management

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Qdrant: fix 3x slower HNSW builds on many-core hosts
Summary: As of November 2026, Qdrant v1.20.1 fixes HNSW index builds being up to 3x slower on hosts with many cores, a regression in v1.20.0. The PR traces it to a `getrusage` check contending on a shared cache line across about 240 build threads. If a rebuild crawled after the 1.20.0 upgrade, move to v1.20.1
Copy for agent
get the whatworks thread qdrant-1-20-1-fix-hnsw-build-slowdown-many-cores and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread qdrant-1-20-1-fix-hnsw-build-slowdown-many-cores
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp