POC: GUC option for skipping shared buffers in core dumps

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема POC: GUC option for skipping shared buffers in core dumps
Дата
Msg-id CAPpHfdscDF3MofD6MgnnhZoJ-Jek+awxzKie4cS9LJftup746A@mail.gmail.com
обсуждение исходный текст
Ответы Re: POC: GUC option for skipping shared buffers in core dumps  (Andres Freund <andres@anarazel.de>)
Re: POC: GUC option for skipping shared buffers in core dumps  (Craig Ringer <craig@2ndquadrant.com>)
Список pgsql-hackers
Hi!

In Postgres Pro we have complaints about too large core dumps.  The
possible way to reduce code dump size is to skip some information.
Frequently shared buffers is most long memory segment in core dump.
For sure, contents of shared buffers is required for discovering many
of bugs.  But short core dump without shared buffers might be still
useful.  If system appears to be not capable to capture full core
dump, short core dump appears to be valuable option.

Attached POC patch implements core_dump_no_shared_buffers GUC, which
does madvise(MADV_DONTDUMP) for shared buffers.  Any thoughts?

------
Alexander Korotkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company

Вложения

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: proposal: schema variables
Следующее
От: Dmitry Dolgov
Дата:
Сообщение: Re: Index Skip Scan