Beyond Fork(): Memory-Efficient Snapshots & Full Sync for Valkey
summary
Why should a 50GB dataset need ~100GB RAM to snapshot? Valkey replaces fork-based snapshots that copy-on-write and can double memory with Forkless Save/Sync, eliminating the startup freeze (100 ms–seconds) and huge memory spikes. Benchmark shows forkless keeps memory flat, P99 latencies mostly unchanged, saves ~13% slower (worst ~20%), and serializes at 2–5 GB/min, so a 10GB value can block ~2+ minutes. Forkless save is available in 9.2 RC1 and full-sync is in PR review.
AI-written summary · about
