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:
1 file changed
+8
-5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user