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.
This commit is contained in:
Joren committed 2026-11-25 15:54:09 +01:00
1 parent f506a7f70d
commit 89d0118da7
1 file changed
+8 -5
+8 -5
View File
@@ -587,11 +587,14 @@ only the index is rebuilt. A full rebuild from the stored 1,280-d embeddings
### Large libraries ### Large libraries
The reference run costs roughly **4 CPU-seconds per track** (decode + 128-frame Per-track CPU cost measured on a 32-core host is roughly **1 CPU-second per
log-mel + EfficientNet-B0 inference). A 429k-track library therefore scales to track** (decode + 128-frame log-mel + EfficientNet-B0 inference); the
about **500 core-hours**: roughly **1.5–2 days on 20 threads**, or **2.5–3 days `nice 19` reference run above is deliberately throttled, so its wall time is
with `--jobs 8`**, before any storage bottleneck. Reading 18 TB from a single not representative of dedicated hardware. A 429k-track library is therefore
HDD/NAS is itself 20–50 hours, so fast local storage matters as much as cores. 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 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 (the file grows on demand), scanning writes every 4,096 tracks so RAM stays