Presented by:

31ce87594d7d3811a587c62a0a2e4061

Nikhil Chawla

from Microsoft

Nikhil Chawla is a performance-focused software engineer specializing in building, optimizing, and scaling distributed systems, databases, and storage platforms.

At Microsoft, he leads performance R&D efforts for PostgreSQL on Azure, driving innovations in Postgres internals, telemetry, and stress-testing frameworks. His work delivers end-to-end solutions that strengthen scalability, operational resilience, and customer experience including proactive mechanisms to mitigate replication lag and system stalls.

No video of the event yet, sorry!

This talk demonstrates how running Postgres on log-structured (LSM) file systems, for example F2FS, can significantly improve throughput in write-heavy workloads.

I'll show how I identified surprising bottlenecks in high throughput Postgres systems, where the main issue turned out to be the number of IOPS, due to small random writes. The system could not utilize the full storage bandwidth, due to overwhelming it with too many requests.

I experimented with various strategies to improve this by merging small I/O requests, to reduce pressure on the I/O queues, and better utilize the I/O bandwidth. One of those experiments was using log-structured file systems (LSM), particularly F2FS, which naturally coalesce small writes - this turned out to align well with how Postgres writes data.

This resulted in a substantial increase in write TPS, without any measurable (negative) impact on read performance.

In this talk, I’ll discuss:

  • how to spot and diagnose IOPS bottlenecks in PostgreSQL
  • the performance impact of small write patterns
  • benefits of using LSM-style file systems for write throughput
  • benchmark results and lessons learned from real-world testing
  • pros/cons of using this in production systems

Date:
Duration:
45 min
Room:
Conference:
PGConf India, 2026
Language:
Track:
Application Developer
Difficulty:
Medium