Rethinking the Monolith: Evolving Postgres for Hundreds of Cores and Far Memory
summary
Argues Postgres needs concrete changes to scale on 128+ core, multi‑NUMA servers: introduces morsel scheduling and batch scans to keep hundreds of cores busy, NUMA‑aware local queues with work‑stealing, and pointer‑swizzling/direct references to avoid buffer_map lookups. Experiments on 128‑core hardware show separation of usage counters cuts contention by about 30% lower contention. Proposes CXL far‑memory tiering and a partitioned WAL pipeline (CXL far memory tier), with prototypes and benchmarks underway.
AI-written summary · about
chapters (13)
- 0:00Introduction and motivation
- 1:08Hardware evolution and Postgres assumptions
- 6:14Execution redesign for many cores
- 9:30Shared state contention challenges
- 14:54Buffer manager and lock manager improvements
- 18:01Storage and transaction ID evolution
- 20:31NUMA-aware scheduling and architecture
- 25:13Topology-aware I/O and buffer management
- 27:19CXL and far memory integration
- 31:17Tiered storage and I/O pipeline
- 32:24WAL durability and multi-tier architecture
- 36:25Open questions and future directions
- 37:32Q&A and community discussion
