How Postgres can leverage disk bandwidth for better TPS.
summary
Benchmarks replace XFS with F2FS on a dedicated tablespace and run pgbench; write TPS rises about 63% higher write TPS while disk throughput climbs from ~20–25 MB/s to 50–75 MB/s on a 200 MB/s device. Small random 8 KB writes coalesce into ~80 KB sequential writes, lowering IOPS but raising bandwidth. Trade-offs: CPU jumps (idle drops from ~40% to ~20%), aggressive GC and metadata write amplification, and higher risk of lost in‑memory appends without tuned checkpoints or battery‑backed DRAM.
AI-written summary · about
chapters (12)
- 0:00Introduction and speaker background
- 1:30Problem with random writes in Postgres
- 5:23Log structured file systems explained
- 8:55Why F2FS for this research
- 9:56Integrating F2FS with Postgres
- 12:22Benchmarking setup and results
- 13:24Disk bandwidth usage comparison
- 14:28Memory and IOPS patterns
- 17:39CPU usage trade-offs
- 18:44Summary of findings and trade-offs
- 21:37Mitigating data loss risks
- 23:04Conclusion and event announcement
related talks
50mPostgres vs. Linux filesystems
53mVisualizing Postgres I O Performance for Development
25mVindicating ZFS with PostgreSQL: Unleashing the Power of Scalability
36mBest Practices in PostgreSQL Tuning: Navigating Key Performance Bottlenecks in the Cloud
35mVindicating ZFS with PostgreSQL: Unleashing the Power of Scalability
43mTuning PostgreSQL for High Write Workloads
50mPerformance Archaeology
53mDatabase Hardware Selection Guidelines
