shared_buffers: Why 25% of RAM Is Only Half the Story

Set shared_buffers to 25% of RAM — you've heard it a thousand times. But why not 50%? Why not more? The answer lies in something most people miss: Postgres isn't the only thing caching your data. The OS page cache sits underneath, holding its own copy of every block Postgres reads. You end up with double-buffering, and understanding that changes how you think about memory tuning. This video walks through how Postgres and the operating system split caching work, when the 25% rule makes sense and when it doesn't, and how different workloads (OLTP vs analytics, on-premise vs RDS) need different splits. You'll also learn how to use pg_buffercache to see exactly what's resident in shared_buffers right now — which tables, which indexes, and whether you're thrashing or sitting on headroom. For database engineers tuning Postgres in production, SREs trying to understand memory pressure, and anyone who wants to stop cargo-culting the 25% rule and actually understand what's happening under the hood. Chapters: 0:00 Intro 0:40 The Double-Buffering Architecture 3:32 When Bigger Helps, When It Hurts 5:50 Reading pg_buffercache 9:17 Practical Tuning Strategy 11:30 Get a free health report Free weekly PostgreSQL health report → https://mydba.dev?utm_source=youtube&utm_m... #postgresql #database #performance #tuning

Jon Stewart on Trump's "Meritocracy" & Desi Lydic on MAGA Moving Iran Goalposts | The Daily Show
▶︎

Jon Stewart on Trump's "Meritocracy" & Desi Lydic on MAGA Moving Iran Goalposts | The Daily Show

TypeScript in Express – TypeScript Tutorial
▶︎

TypeScript in Express – TypeScript Tutorial

Reading EXPLAIN Like a Query Planner: Bitmap Heap Scans Demystified
▶︎

Reading EXPLAIN Like a Query Planner: Bitmap Heap Scans Demystified

Someone can’t get you off their mind… let’s find out why 🔮 timeless pick a card tarot reading
▶︎

Someone can’t get you off their mind… let’s find out why 🔮 timeless pick a card tarot reading

No Boss, No Money: The Raw Reality of China’s Gen-Z Freelancers
▶︎

No Boss, No Money: The Raw Reality of China’s Gen-Z Freelancers

Fall asleep while I build a town (from nothing) - "Town To City" ASMR for sleep
▶︎

Fall asleep while I build a town (from nothing) - "Town To City" ASMR for sleep

How pg_upgrade actually works (and when it bites)
▶︎

How pg_upgrade actually works (and when it bites)

🔴Jesus Says: I Have a Special Surprise for You Today—Open Your Heart Now | God's Message | God Says
▶︎

🔴Jesus Says: I Have a Special Surprise for You Today—Open Your Heart Now | God's Message | God Says

The PROBLEM with Capitalism - Smarter Every Day 316
▶︎

The PROBLEM with Capitalism - Smarter Every Day 316

Tibetan Healing Sounds  for Mind, Body & Soul | Relaxation, Sleep & Inner Peace
▶︎

Tibetan Healing Sounds for Mind, Body & Soul | Relaxation, Sleep & Inner Peace

Android 17 sucks. So I put Linux on a phone.
▶︎

Android 17 sucks. So I put Linux on a phone.

Germany is now a surveillance state
▶︎

Germany is now a surveillance state

Postgres vs Redis, Mongo, and RabbitMQ: When to Actually Consolidate
▶︎

Postgres vs Redis, Mongo, and RabbitMQ: When to Actually Consolidate

Is This Wish Meant to Be Fulfilled? 🧚🤲 Detailed Pick a Card Tarot Reading ✫・
▶︎

Is This Wish Meant to Be Fulfilled? 🧚🤲 Detailed Pick a Card Tarot Reading ✫・

The Most Powerful Manifestation Technique ... It Works So Fast It's Scary.
▶︎

The Most Powerful Manifestation Technique ... It Works So Fast It's Scary.

OpenAI: A Bubble Bigger Than Dotcom
▶︎

OpenAI: A Bubble Bigger Than Dotcom

Waldorf Astoria Maldives | Ultra-luxury Private Island Resort (Full Tour in 4K)
▶︎

Waldorf Astoria Maldives | Ultra-luxury Private Island Resort (Full Tour in 4K)

BYD: The Biggest Fraud in the Auto Industry
▶︎

BYD: The Biggest Fraud in the Auto Industry

Lawrence Wilkerson: Iran-Krieg spitzt sich zur globalen Krise zu
▶︎

Lawrence Wilkerson: Iran-Krieg spitzt sich zur globalen Krise zu

Was Ihr über Sonnencreme wisst, ist falsch (und ich bin mit schuld)
▶︎

Was Ihr über Sonnencreme wisst, ist falsch (und ich bin mit schuld)