5min chapter

Postgres FM cover image

Memory

Postgres FM

CHAPTER

How to Optimize Memory Consumption in Postgres 14

It's hard to understand in Linux how much memory is really consumed by each process but also we cannot limit it reliably. If we say workman 100 megabytes steel backend is allowed to use multiple times because of this behavior workman defines the limit for each operation not for backend and also we have parallel workers so together this becomes quite tricky topic. We first start from some safe workman setting safe approach is like okay we have max connections say 300 or 500 for our 96 or 244 core server big big one. Then we say okay we can give up to one gigabyte to a old backend right okay that's good so let's have some multiplier two or three because we know some queries can have

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode