Re: How to calculate shared memory size

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to calculate shared memory size
Дата
Msg-id 1293241.1600181355@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to calculate shared memory size  (Rébeli-Szabó Tamás <t@rblst.info>)
Список pgsql-general
=?UTF-8?Q?R=C3=A9beli-Szab=C3=B3_Tam=C3=A1s?= <t@rblst.info> writes:
> I want to do a proper calculation of the number of huge pages needed for 
> PostgreSQL to start.
> For that I need to know how much shared memory will be allocated at 
> startup.

TBH, the only method that's not going to break over time is
"start the server with the parameters you want, and look to
see how big the shmem segment is".

We used to have an approximate formula in the documentation,
but we took it out years ago because it was constantly out of date.

            regards, tom lane



В списке pgsql-general по дате отправления:

Предыдущее
От: Rébeli-Szabó Tamás
Дата:
Сообщение: How to calculate shared memory size
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: multiple tables got corrupted