You are not logged in.

#1 2014-08-27 19:48:03

frumble
Member
From: Germany
Registered: 2012-05-20
Posts: 162
Website

Systemd 216 writes lots of GiB dump files to /var/lib/systemd/coredump

Systemd 216 writes lots of GiB dump files from Firefox to /var/lib/systemd/coredump/

See my video. (Ogg Theora)

This is really, really broken! I just start and quit Firefox and systemd writes several hundred MiB to my poor SSD. It just wasted all my space on my /-partition!
I have downgraded to systemd 215 on which this never happened before!

Last edited by frumble (2014-08-28 12:50:06)

Offline

#2 2014-08-27 21:21:10

okubax
Member
From: Kent, UK.
Registered: 2010-04-24
Posts: 210
Website

Re: Systemd 216 writes lots of GiB dump files to /var/lib/systemd/coredump

Think maybe your firefox installation has a problem. I have some of these coredumps also but all not greater than 50MB. You can change the journal dump behaviour by editing /etc/systemd/coredump.conf

Offline

#3 2014-08-28 00:29:47

stevenhoneyman
Member
From: England
Registered: 2014-05-25
Posts: 241

Re: Systemd 216 writes lots of GiB dump files to /var/lib/systemd/coredump

Nope, exactly the same problem here -- and my firefox is my own build. 6 in the few hours I've been using 216.

$ ls /var/lib/systemd/coredump/core.*
-rw-r-----+ 1 root root 402K 2014-08-27 21:36 /var/lib/systemd/coredump/core.camerabin.1000.9<SNIP>0.xz
-rw-r-----+ 1 root root  66M 2014-08-27 22:11 /var/lib/systemd/coredump/core.firefox.1000.9<SNIP>0.xz
-rw-r-----+ 1 root root 1.6M 2014-08-27 22:07 /var/lib/systemd/coredump/core.plugin-containe.1000.9<SNIP>0.xz
-rw-r-----+ 1 root root 1.6M 2014-08-27 22:08 /var/lib/systemd/coredump/core.plugin-containe.1000.9<SNIP>0.xz
-rw-r-----+ 1 root root 534K 2014-08-27 00:12 /var/lib/systemd/coredump/core.spacefm.1000.d<SNIP>0.xz
-rw-r-----+ 1 root root 545K 2014-08-27 00:03 /var/lib/systemd/coredump/core.spacefm.1000.d<SNIP>0.xz

(...I've cut those hash numbers or whatever they are out of the filenames - I don't know what's hidden in them and cba finding out.)

also I already have:

[Coredump]
Storage=none

It has also caused X to hang for a couple of mins each, after which somethign finally dies and I can kill systemd-coredump process thats eating half my CPU cores all at 100%

As soon as glibc2.20 and pacman 4.2 are released I'll be nuking systemd and going to nice clean initscripts of some variety.

Last edited by stevenhoneyman (2014-08-28 00:34:06)

Offline

#4 2014-08-28 00:43:27

Pse
Member
Registered: 2008-03-15
Posts: 413

Re: Systemd 216 writes lots of GiB dump files to /var/lib/systemd/coredump

Set kernel.core_pattern to core:

sudo systctl -w kernel.core_pattern=core

Please note that you should set this in /etc/sysctl.d for it to get set after a reboot.

Offline

#5 2014-08-28 00:43:56

stevenhoneyman
Member
From: England
Registered: 2014-05-25
Posts: 241

Re: Systemd 216 writes lots of GiB dump files to /var/lib/systemd/coredump

Offline

#6 2014-08-29 00:57:08

frumble
Member
From: Germany
Registered: 2012-05-20
Posts: 162
Website

Re: Systemd 216 writes lots of GiB dump files to /var/lib/systemd/coredump

[Coredump]
Storage=none

doesn't prevents the dumps from getting generated, it just deletes them immediately (I can see this in Dolphin). How can I turn this completely off?!

@Pse: I don't understand what "sudo systctl -w kernel.core_pattern=core" should help, this just specifies the name of the dump files, am I right?

EDIT: Removing /usr/lib/sysctl.d/50-coredump.conf should do it, right?
But before I would like to take a look into the mess. ...But how? I just know journalctl. Are these dumps just memory dumps or is there any more information for a layman in them?

Last edited by frumble (2014-08-29 01:27:36)

Offline

#7 2014-08-29 15:17:17

branch
Member
Registered: 2014-03-16
Posts: 209

Re: Systemd 216 writes lots of GiB dump files to /var/lib/systemd/coredump

Use this if you never want a core file to be writtern:

# /etc/sysctl.d/60-coredump.conf
kernel.core_pattern = /dev/null

*edit*
Note that cutting systemd-coredump out of the loop in this manner will prevent the core dump event from being logged.

Last edited by branch (2014-08-29 15:32:12)

Offline

#8 2014-08-29 15:45:03

qwerty12
Member
From: London
Registered: 2011-06-20
Posts: 34

Re: Systemd 216 writes lots of GiB dump files to /var/lib/systemd/coredump

frumble wrote:

EDIT: Removing /usr/lib/sysctl.d/50-coredump.conf should do it, right?

It's worth noting that generally for systemd stuff, you can disable a systemd-installed file by symlinking /dev/null to a file of the same name inside a folder of the same name inside /etc. This has the advantage of not having a systemd upgrade bringing back the files you removed. (Admittedly, pacman.conf's NoExtract option would also work but there's only so much you can easily maintain on one line. wink). In this case:

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

That said, I'll be doing what branch said (thanks!), as disabling the 50-coredump.conf rule leaves kernel.core_pattern set to core.

Last edited by qwerty12 (2014-08-29 15:45:44)

Offline

#9 2014-08-29 16:58:18

frumble
Member
From: Germany
Registered: 2012-05-20
Posts: 162
Website

Re: Systemd 216 writes lots of GiB dump files to /var/lib/systemd/coredump

OK, thank you! smile No dump files no more under /var/lib/systemd/coredump/.
But what about the warning in the wiki?

The factual accuracy of this article or section is disputed.
Reason: /etc/sysctl.d overwrite files of the same name, however 50-coredump.conf is no longer present in Arch; journal dump behaviour is regulated in /etc/systemd/coredump.conf [2]. Core dumps are by default not written to the journal, but to /var/lib/systemd/coredump.

50-coredump.conf is no longer present in Arch? It was present on my install. O.o

Offline

#10 2014-08-29 17:51:32

stevenhoneyman
Member
From: England
Registered: 2014-05-25
Posts: 241

Re: Systemd 216 writes lots of GiB dump files to /var/lib/systemd/coredump

Well, apparently freezing your system and filling your rootfs without warning is not a bug...

Great timing by the way Arch devs - I was literally minutes away from installing the lz4 enabled version (as requested for testing the effects on CPU usage)
"Shot yourselves in the foot" once again! tongue

Offline

#11 2014-08-30 01:15:37

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: Systemd 216 writes lots of GiB dump files to /var/lib/systemd/coredump

Shoot yourselves in the foot? A bug report was filed, it was determined to be expected behavior and the report was closed. How is that shooting yourself in the foot?

Offline

#12 2014-08-30 04:59:08

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Systemd 216 writes lots of GiB dump files to /var/lib/systemd/coredump

stevenhoneyman wrote:

Well, apparently freezing your system and filling your rootfs without warning is not a bug...

Great timing by the way Arch devs - I was literally minutes away from installing the lz4 enabled version (as requested for testing the effects on CPU usage)
"Shot yourselves in the foot" once again! tongue


This is either a spectacularly poorly executed attempt at humour or a troll. The bug report makes it pretty clear the issue isn't with the Arch developers or with systemd, but with (surprise) your browsers.

Reflect for a minute on the fact that however smart you think you are, you aren't the person giving up your spare time as an Arch developer, your name isn't in any of the upstream contributor lists and while posting snide comments here may inflate your own sense of superiority, it doesn't contribute anything to this community; ergo it isn't welcome.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#13 2014-08-30 06:54:39

metameta
Member
Registered: 2014-08-30
Posts: 4

Re: Systemd 216 writes lots of GiB dump files to /var/lib/systemd/coredump

Hi,

> The bug report makes it pretty clear the issue isn't with the Arch developers or with systemd, but with (surprise) your browsers.

No, the bug report makes it pretty clear that some softwares haves issue who created coredump, BUT ALSO, make it clear that something else has happened with a recent update of systemd, who make the log creation eating much more CPU (may be more evident on cheap computer)

If we look at the different bug report, we see that the solution given by Dev are "You could disable coredump creation", or "stopping to use software who create dump". 

Fact is, since recent update, this coredump creation seems to eat much more CPU, and hang the system for a while. Dev's could argue that the first thing to do is to fix software issue (and this is a good idea), we could presume that those software issue happened all the time, long before we facing this CPU issue.

Closing bug report without trying to exclude a recent systemd issue (OR a new feature/behaviour with some side effect) is not a good answer.

Regards,

Offline

#14 2014-08-30 10:22:22

stevenhoneyman
Member
From: England
Registered: 2014-05-25
Posts: 241

Re: Systemd 216 writes lots of GiB dump files to /var/lib/systemd/coredump

Irrespective of whether this is "intended to happen" or not - there is still a bug with cpu usage & also the fact the post-install warning is not shown due to a mistake in the install script.

How is that shooting yourself in the foot?

If it hadn't been closed, I'd have made every effort to help diagnose and/or fix it.

Offline

#15 2014-08-30 12:29:24

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Systemd 216 writes lots of GiB dump files to /var/lib/systemd/coredump

stevenhoneyman wrote:

Irrespective of whether this is "intended to happen" or not - there is still a bug with cpu usage & also the fact the post-install warning is not shown due to a mistake in the install script.

How is that shooting yourself in the foot?

If it hadn't been closed, I'd have made every effort to help diagnose and/or fix it.

You can still do that.

FWIW the post_upgrade message is in testing.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#16 2014-08-30 13:47:00

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: Systemd 216 writes lots of GiB dump files to /var/lib/systemd/coredump

stevenhoneyman wrote:

Irrespective of whether this is "intended to happen" or not - there is still a bug with cpu usage & also the fact the post-install warning is not shown due to a mistake in the install script.

How is that shooting yourself in the foot?

If it hadn't been closed, I'd have made every effort to help diagnose and/or fix it.

The warning is now fixed and the cpu usage is a duplicate of https://bugs.archlinux.org/task/41721, so neither are reasons to keep your report open.

Offline

#17 2014-09-01 17:33:54

stevenhoneyman
Member
From: England
Registered: 2014-05-25
Posts: 241

Re: Systemd 216 writes lots of GiB dump files to /var/lib/systemd/coredump

Scimmia wrote:

The warning is now fixed and the cpu usage is a duplicate of https://bugs.archlinux.org/task/41721, so neither are reasons to keep your report open.

I don't mind it's closed, it makes no difference to me.
That being said, FYI, or in case anyone else is reading this and has the same problem - LZ4 does not fix the Arch systemd (so it's not a dupe of that "feature request").

I just recompiled systemd and cut out most of the stuff I didn't need (including coredump). Result: problem gone.

Offline

#18 2014-09-01 18:53:12

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,390

Re: Systemd 216 writes lots of GiB dump files to /var/lib/systemd/coredump

Luckily i'm not getting core dumps, so i cannot test, but why you recompiled systemd to disable a feature instead of conguring it at runtime to do the same?

...what's wrong with this?

# cat /etc/sysctl.d/60-coredump.conf
kernel.core_pattern = core

Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#19 2014-09-01 19:42:12

stevenhoneyman
Member
From: England
Registered: 2014-05-25
Posts: 241

Re: Systemd 216 writes lots of GiB dump files to /var/lib/systemd/coredump

kokoko3k wrote:

Luckily i'm not getting core dumps, so i cannot test, but why you recompiled systemd to disable a feature instead of conguring it at runtime to do the same?

...what's wrong with this?

# cat /etc/sysctl.d/60-coredump.conf
kernel.core_pattern = core

I did it initially to test out lz4, and then I saw about 20 other things I could disable! It's only to keep me going until glibc2.20 is out then I'm starting again (getting rid of systemd in the process)

Offline

Board footer

Powered by FluxBB