walsender RAM increases by 500 MB while data is 80 MB

Поиск
Список
Период
Сортировка
От Avi Weinberg
Тема walsender RAM increases by 500 MB while data is 80 MB
Дата
Msg-id DB9PR07MB71808AC6C7770AF2FB36B95BCB252@DB9PR07MB7180.eurprd07.prod.outlook.com
обсуждение исходный текст
Ответы Re: walsender RAM increases by 500 MB while data is 80 MB
Список pgsql-general

Hi Experts,

 

Your input is most welcome!

 

We are using Postgres 13 (and plan to upgrade to 15 soon).  We have logical replication with about 40 servers subscribing to one publisher.  40 Walsender processes are running on the publisher server.  When we insert a row into a table holding binary data the walsender RAM usage increases by 500MB although the row binary data is only 80MB.  We see this increase in all walsender processes.  At some point we got OOM and the process was killed.

 

  1. Why does the walsender increases by 500MB when the data change was only 80MB
  2. Is some of the 500MB increase due to shared memory or each walsender has its own 500MB increase.  I assume that if it was only in shared memory we would not have gotten OOM…
  3. Why when logical_decoding_work_mem = 64MB the RAM is 15 times that size?  Shouldn't any additional space be used from disk and not RAM?
  4. Will adding streaming = on to publication "PUBLICATION pub WITH (streaming = on)" can alleviate the issue?
  5. Are there configuration options that can resolve the RAM issue.  It can be also in version 15 since we plan to upgrade soon.

 

Thanks!

 

IMPORTANT - This email and any attachments is intended for the above named addressee(s), and may contain information which is confidential or privileged. If you are not the intended recipient, please inform the sender immediately and delete this email: you should not copy or use this e-mail for any purpose nor disclose its contents to any person.

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

Предыдущее
От: sud
Дата:
Сообщение: Re: Question related to partitioning with pg_partman
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Question related to partitioning with pg_partman