ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

PostgreSQL Connections Memory Usage: How Much, Why, and When? On Debian/Ubuntu - x86-64 architecture

PostgreSQL

Linux

Memory usage

shared_buffers

work_mem

Автор: Josef Machytka

Загружено: 2025-11-26

Просмотров: 9

Описание: This talk explores the memory usage of PostgreSQL connections on Debian/Ubuntu running on x86–64 architecture. It gives an overview of memory management concepts, explaining key metrics like virtual, resident, and proportional memory sizes. It also covers various Linux tools for displaying memory usage.
The second part presents practical measurements of PostgreSQL memory usage, based on data from /proc/PID/smaps and /proc/PID/pagemap. It explains why RSS numbers for PostgreSQL connections in top command appear so large after query execution and demonstrates that the actual unique memory usage is only a few dozen megabytes.
Finally, the talk also reveals where work_mem is “hidden” in these statistics, visualizes memory usage during query processing with multiple plots, and discusses queries that exceed the work_mem setting multiple times. It also demonstrates the total memory usage when a query utilizes parallel workers.

Key Takeaways:
The large RSS values in long-running sessions mostly come from linked shared_buffers
A newly created connection consumes only up to 10 MB of physical memory, independent of the work_mem setting
Additional memory is allocated and later released as queries execute
Work_mem is a “soft maximum limit” — it may not be fully used, but it can also be exceeded

Slides available on GitHub: https://github.com/josmac69/conferenc...

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
PostgreSQL Connections Memory Usage: How Much, Why, and When? On Debian/Ubuntu - x86-64 architecture

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]