Re: ERROR: too many dynamic shared memory segments

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Re: ERROR: too many dynamic shared memory segments
Дата
Msg-id CA+hUKGL3TFpQDotNvuX-6PwJWaYXBqnkccR73-xAF_uaSTSt5w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: ERROR: too many dynamic shared memory segments  (Nicola Contu <nicola.contu@gmail.com>)
Ответы Re: ERROR: too many dynamic shared memory segments
Список pgsql-general
On Wed, Jan 22, 2020 at 4:06 AM Nicola Contu <nicola.contu@gmail.com> wrote:
> after a few months, we started having this issue again.
> So we revert the work_mem parameter to 600MB instead of 2GB.
> But the issue is still there. A query went to segmentation fault, the DB went to recovery mode and our app went to
readonly for a few minutes.
 

Hi Nicola,
Hmm, a segmentation fault sounds like a different problem.  Can you
please share the exact error messages from PostgreSQL and OS logs?

> I understand we can increase max_connections so we can have many more segments.
>
> My question is : is there a way to understand the number of segments we reached?

If you're on Linux, you can probably see them with "ls /dev/shm".

> Currently we have 220 max_conn so as your formula is 64 + 2* 220 we have about 500 shared segments.
> We would like to increase that number to 300 or 400 but would be great to understand if there is a way to make sure
wewill solve the issue as it requires a restart of the service.
 
>
> I know you were also talking about a redesign this part in PostgreSQL. Do you know if anything has changed in any of
thenewer versions after 11.5?
 

It's possible that we should increase a couple of constants used the
formula -- I'll look into that again.  But first I'd like to see if
we're even investigating the right problem here.



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

Предыдущее
От: Nicola Contu
Дата:
Сообщение: Re: ERROR: too many dynamic shared memory segments
Следующее
От: Nicola Contu
Дата:
Сообщение: Re: ERROR: too many dynamic shared memory segments