POC: GUC option for skipping shared buffers in core dumps - Mailing list pgsql-hackers

From Alexander Korotkov
Subject POC: GUC option for skipping shared buffers in core dumps
Date
Msg-id CAPpHfdscDF3MofD6MgnnhZoJ-Jek+awxzKie4cS9LJftup746A@mail.gmail.com
Whole thread Raw
Responses Re: POC: GUC option for skipping shared buffers in core dumps
Re: POC: GUC option for skipping shared buffers in core dumps
List 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

Attachment

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: proposal: schema variables
Next
From: Dmitry Dolgov
Date:
Subject: Re: Index Skip Scan