Understanding Why OS RAM and Postgres Buffer Cache Compete episode artwork

EPISODE · May 27, 2026 · 8 MIN

Understanding Why OS RAM and Postgres Buffer Cache Compete

from The Good Tech Companies · host HackerNoon

This story was originally published on HackerNoon at: https://hackernoon.com/understanding-why-os-ram-and-postgres-buffer-cache-compete. Learn how PostgreSQL double buffering wastes RAM, increases latency, and hurts query performance — plus the 25% shared_buffers rule to fix it. Check more stories related to programming at: https://hackernoon.com/c/programming. You can also check exclusive content about #postgresql-double-buffering, #postgresql-shared_buffers, #pg_buffercache-analysis, #postgres-p95-latency, #postgresql-os-page-cache, #postgresql-memory-tuning, #effective_cache_size-tuning, #good-company, and more. This story was written by: @tigerdata. Learn more about this writer by checking @tigerdata's about page, and for more stories, please visit hackernoon.com. Many PostgreSQL performance issues aren’t caused by too little RAM, but by allocating memory to the wrong layer. Postgres and the OS both cache the same data independently, creating a “double buffering” problem that wastes memory and increases latency. This guide explains how shared_buffers and the OS page cache interact, why the 25% shared_buffers rule matters, how to diagnose cache pressure with pg_buffercache, and when tuning stops helping because the dataset itself has outgrown memory.

Episode metadata supplied by the publisher feed · Published May 27, 2026

Embed this episode

NOW PLAYING

Understanding Why OS RAM and Postgres Buffer Cache Compete

0:00 8:15

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of The Good Tech Companies?

This episode is 8 minutes long.

When was this The Good Tech Companies episode published?

This episode was published on May 27, 2026.

Can I download this The Good Tech Companies episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!