[systemd-devel] Skipping temporary coredump file during coredump generation

P.R.Dinesh pr.dinesh at gmail.com
Fri Dec 2 17:53:59 UTC 2016


During coredump generation I could find a temporary uncompressed file
getting generated from the corefile and written to the harddisk, later this
file is getting compressed (if compression was enabled) and then the file
coredump file is stored and this temporary file is removed.

I have a process whose memory consumption is typically around 5GB, it
generates around 13GB of uncompressed coredump ( coredump_filter = 0x33).
Later this file is compressed to 20MB and the uncompressed file is removed.
I have set the
ProcessSizeMax=16GB
ExternalSizeMax= 16GB
But sometimes my disk doesn't have sufficient space to store this temporary
file, hence systemd-coredump aborts the coredump processing.

Is it possible to skip this temporary file generation and generate the
compressed file directly from the Corefile passed through STDIN?

Is there any impact on doing so?
I tried modifying the coredump.c and was able to get this compressed file
directly from the core file.  But I am not sure on whether it will fail on
some scenarios or I am missing some important data.

Also please let me know if my understanding of systemd coredump behaviour
is wrong.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20161202/245ec02f/attachment.html>


More information about the systemd-devel mailing list