[systemd-devel] systemd-coredump is extremely slow

Lennart Poettering lennart at poettering.net
Wed Apr 29 03:44:40 PDT 2015


On Wed, 29.04.15 12:14, Jan Včelák (jan.vcelak at nic.cz) wrote:

> Hello list,
> 
> I'm having a trouble with systemd-coredump on my development machine. When my 
> program crashes on an assert, the termination of the program takes a really 
> long time even if RLIMIT_CORE is zero. When the program is compiled with 
> address sanitizer, it usually takes minutes.
> 
> I traced down this problem to systemd-coredump. If kernel.core_pattern is set 
> to a file name, the crashing program terminates immediately. The same happens 
> if I set the option to "|/bin/true".
> 
> I don't know what is a proper fix for this problem. Could systemd-coredump 
> just terminate immediately if the core dumping is disabled?

Yes, systemd-coredump should take /proc/<pid>/limits into account and
read RLIMIT_CORE from there and honour it. This has been on the TODO
list for a while. Would be happy to take a patch for this...

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list