From 89d0118da772b8bd891a1228fb6b5f099e87ac3b Mon Sep 17 00:00:00 2001 From: Joren Date: Wed, 25 Nov 2026 15:54:09 +0100 Subject: [PATCH] Correct large-library sizing with measured throughput A 17-track smoke test on a 32-core host scanned at 2.15 tracks/s with 2 workers (~1 CPU-second per track). The nice-19 reference run was throttled, so its wall time was not representative of dedicated hardware. 429k tracks are ~120 core-hours (~6 h at 20 workers); reading 18 TB dominates, for ~12-30 h end to end. --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 022d00f..73f3c61 100644 --- a/README.md +++ b/README.md @@ -587,11 +587,14 @@ only the index is rebuilt. A full rebuild from the stored 1,280-d embeddings ### Large libraries -The reference run costs roughly **4 CPU-seconds per track** (decode + 128-frame -log-mel + EfficientNet-B0 inference). A 429k-track library therefore scales to -about **500 core-hours**: roughly **1.5–2 days on 20 threads**, or **2.5–3 days -with `--jobs 8`**, before any storage bottleneck. Reading 18 TB from a single -HDD/NAS is itself 20–50 hours, so fast local storage matters as much as cores. +Per-track CPU cost measured on a 32-core host is roughly **1 CPU-second per +track** (decode + 128-frame log-mel + EfficientNet-B0 inference); the +`nice 19` reference run above is deliberately throttled, so its wall time is +not representative of dedicated hardware. A 429k-track library is therefore +about **120 core-hours**: ~6 hours at 20 workers, ~15 hours at 8 workers, +*before* any storage bottleneck. Reading 18 TB is usually the real limit — +roughly 10–25 hours at 200–500 MB/s — so expect **~12–30 hours** end to end on +a fast local share, longer on a single HDD or a busy network link. The implementation is sized for this: LMDB reserves 16 GiB of address space (the file grows on demand), scanning writes every 4,096 tracks so RAM stays