TECHNOLOGY

The DiskANN–HNSW case study: different memory counters and query protocols

In this article
THE QUICK TAKE

The retained deployment numbers are system observations; the corrected small harness uses IVF, and does not independently validate the historical DiskANN comparison.

The report preserves a historical deployment

The original DiskANN–HNSW repository describes a case study using approximately 3.38 million academic-record embeddings. Its production runbook dates the original run to May 14–15, 2026, on Windows with an i7-13700F, 32 GB of RAM and NVMe storage. The vectors have 1024 dimensions and use BGE-large-zh-v1.5.

The author now explicitly labels the retained summary a historical case, not a controlled independently reproducible benchmark. The corpus is not redistributed, original engine output is absent, and the exact DiskANN revision and resolved product-quantization configuration were not preserved. Those are limits on what the public evidence can establish, rather than reasons to silently discard the observations.

The reported operating points have real tradeoffs

At the highlighted HNSW operating point served by Milvus, the report lists Recall@10 of 0.927, 52.4 QPS and average latency of 19.0 milliseconds. DiskANN’s R=32, L=64 point is listed at 0.933 recall, 173.0 QPS and 5.7 milliseconds. These are the author’s historical system-level numbers, not measurements performed for this article.

The table also records costs that a speed-only retelling would omit. HNSW’s index occupies 7.9 GB on disk and takes 22.3 minutes to build; DiskANN’s corresponding entries are 31.3 GB and 49.0 minutes. The repository notes that identical disk sizes recorded for separate DiskANN configurations need verification. Its public summary cannot establish a fully audited storage comparison across every operating point.

The memory and query denominators do not match

HNSW’s 11.7 GB search-memory figure is Milvus container resident memory. DiskANN’s less-than-1-GB figure represents runner-reported resident quantization codes and node cache while other structures are read from SSD. These are different accounting boundaries. They do not directly demonstrate a process-to-process resident-memory ratio under one common measurement method.

The historical Milvus client submitted all queries in a batch, while DiskANN recorded a single search thread. Queries were sampled from the indexed corpus, including self-matches. These conditions limit causal claims about algorithm superiority and generalization to held-out retrieval. The memory placement guide explains the broader distinction between resident structures and data available through storage or operating-system caches.

A corrected harness is a different experiment

The repository also contains a laptop-scale harness with disjoint synthetic queries and shared measurement code. That harness compares hnswlib with Faiss IVF. The IVF index can be serialized, then reloaded into RAM; it is not DiskANN and does not become an SSD-resident search algorithm merely because a file exists on disk.

The author describes this smaller synthetic run as a smoke test for the measurement pipeline. It does not replace a controlled rerun of the historical corpus. The benchmark methodology guide explains why identical query contracts, concurrency, cache state and memory counters matter. The case offers concrete historical observations and unusually explicit provenance gaps. It does not prove a universal speed multiplier, a superior algorithmic frontier or independently reproduced historical results from the presence of a newer working harness.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles