From: | Alexander Korotkov <a(dot)korotkov(at)postgrespro(dot)ru> |
---|---|
To: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | POC: GUC option for skipping shared buffers in core dumps |
Date: | 2020-02-10 19:07:13 |
Message-ID: | CAPpHfdscDF3MofD6MgnnhZoJ-Jek+awxzKie4cS9LJftup746A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 | Content-Type | Size |
---|---|---|
0001-madvise_dontdump-v1.patch | application/octet-stream | 6.7 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Dmitry Dolgov | 2020-02-10 19:30:56 | Re: Index Skip Scan |
Previous Message | Pavel Stehule | 2020-02-10 18:47:35 | Re: proposal: schema variables |