You are not logged in.

#1 2013-05-21 14:43:56

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 858
Website

[SOLVED] How do I get systemd to stop handling core dumps itself?

Based on advice in other threads, I did this:

# ln -s /dev/null /etc/sysctl.d/coredump.conf
# /lib/systemd/systemd-sysctl

but it didn't work; /proc/sys/kernel/core_pattern still contains "systemd-coredump ...".  Furthermore, the processes that I have dumping core do so when using a lot (many GB) of memory, so the core dumps are huge.  This causes systemd-journald to eat up 100% CPU for a long time after core dumps.

Also, how do I delete the ones that are already saved (that show up in systemd-coredumpctl)?

Last edited by tavianator (2013-05-22 21:54:15)

Offline

#2 2013-05-21 19:12:02

steinchen
Member
Registered: 2013-05-21
Posts: 4

Re: [SOLVED] How do I get systemd to stop handling core dumps itself?

Hello tavianator.

This didn't work for me either, so i changed the link to:

# ln -s /dev/null /etc/sysctl.d/50-coredump.conf

After that /proc/sys/kernel/core_pattern shows "core" only.

Hope that helps.

Edit: I used the naming convention from /lib/sysctl.d/ which is also "50-coredump.conf".

Last edited by steinchen (2013-05-21 19:44:03)

Offline

#3 2013-05-22 10:33:20

ball
Member
From: Germany
Registered: 2011-12-23
Posts: 164

Re: [SOLVED] How do I get systemd to stop handling core dumps itself?

@steinchen: I can confirm that this works for me, too. What a relief, thanks!

Offline

#4 2013-05-22 21:54:06

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 858
Website

Re: [SOLVED] How do I get systemd to stop handling core dumps itself?

Thanks!  Marking as SOLVED.

Offline

#5 2013-07-16 16:40:42

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: [SOLVED] How do I get systemd to stop handling core dumps itself?

Hi, in case this isn’t working anymore (as some people say), you may refer to the updated instructions on the wiki to restore normal core dump files that work for me!

Offline

Board footer

Powered by FluxBB