Database Topic Archive

CPU, Memory, and I/O Articles

CPU, memory, disk, temp files, checkpoints, buffers, and workload pressure.

Checkpoint Tuning: InnoDB Redo Capacity vs PostgreSQL max_wal_size
8 min read

p99 latency spiked every five minutes like clockwork on PostgreSQL, and MySQL stalled hard once a night during batch. Same disease on both: dirty-page flushing falling behind dirty-page creation. Here is how each engine's write-ahead log forces checkpoints, and how…

PostgreSQL bgwriter Tuning: Stop Letting Backends Write Buffers
9 min read

During our hourly import burst, backends spent a third of their time in buffer write waits while the checkpointer dumped 25 GB in 90-second spikes. Smoothing the bgwriter flattened checkpoint IO and cut burst p99 from 400 ms to under…

pg_stat_io: The First Honest I/O Picture PostgreSQL Has Had
7 min read

Hit-ratio dashboards kept telling me the buffer cache was fine while storage latency tripled. pg_stat_io finally shows who is reading, writing, extending, and fsyncing — split by backend type and I/O context.