Database write amplification
Database byte write amplification is storage-engine output bytes written divided by logical input bytes over a stated interval and accounting boundary.
Specify whether input counts keys, values or both, and whether output includes WAL, compaction and value-store cleaning. This ratio is distinct from host-to-NAND write amplification. [1]
Aggregate compatible measurements by adding their output and input byte counters, then dividing the totals. An arithmetic mean of per-batch ratios generally gives a different answer; weighting those ratios by their input bytes recovers the aggregate. Keep log-only cleaning ratios separate from whole-engine amplification. [2]
TRIAD's paper reports (flushed bytes + compacted bytes) / flushed bytes. That denominator is not logical application input. Reducing both counted byte totals proportionally leaves this ratio unchanged; retain the original counters when comparing work. [3]
Relations
- related
- Write amplification, Log-structured merge-tree, Key-value separation, LSM compaction, Read amplification, Space amplification, Value log, TRIAD, RUM conjecture