You are not logged in.

#1 2015-01-21 20:06:56

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

[SOLVED] /etc/systemd/system.conf: DumpCore

What's that option for?
I cannot find it by myself, sorry...

Last edited by kokoko3k (2015-01-22 15:27:50)


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

Offline

#2 2015-01-21 20:15:42

Spider.007
Member
Registered: 2004-06-20
Posts: 1,176

Re: [SOLVED] /etc/systemd/system.conf: DumpCore

Offline

#3 2015-01-21 21:12:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] /etc/systemd/system.conf: DumpCore

/etc/systemd/system.conf has a man page:

man systemd-system.conf wrote:

       LogLevel=, LogTarget=, LogColor=, LogLocation=, DumpCore=yes, CrashShell=no, ShowStatus=yes,
       CrashChVT=1, DefaultStandardOutput=journal, DefaultStandardError=inherit
           Configures various parameters of basic manager operation. These options may be overridden by
           the respective command line arguments. See systemd(1) for details about these command line
           arguments.

but it doesn't say what does this option do.

Offline

#4 2015-01-21 21:18:30

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: [SOLVED] /etc/systemd/system.conf: DumpCore

karol wrote:

/etc/systemd/system.conf has a man page:

man systemd-system.conf wrote:

       LogLevel=, LogTarget=, LogColor=, LogLocation=, DumpCore=yes, CrashShell=no, ShowStatus=yes,
       CrashChVT=1, DefaultStandardOutput=journal, DefaultStandardError=inherit
           Configures various parameters of basic manager operation. These options may be overridden by
           the respective command line arguments. See systemd(1) for details about these command line
           arguments.

but it doesn't say what does this option do.

man systemd wrote:

       --dump-core
           Dump core on crash. This switch has no effect when run as user instance.

wink


Jin, Jîyan, Azadî

Offline

#5 2015-01-22 15:27:38

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

Re: [SOLVED] /etc/systemd/system.conf: DumpCore

thanks


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

Offline

#6 2015-01-23 17:28:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] /etc/systemd/system.conf: DumpCore

@Head_on_a_Stick
What does

#DumpCore=yes

mean? Dump on crash or not? What's the default?

I guess 'yes' is the default, but I'd rather have explicit info about it. Easy to find complete info would be a plus :-)

Offline

#7 2015-01-23 18:24:54

cargoan
Member
Registered: 2013-07-13
Posts: 20

Re: [SOLVED] /etc/systemd/system.conf: DumpCore

https://wiki.archlinux.org/index.php/Core_dump

Last edited by cargoan (2015-01-23 18:28:34)

Offline

#8 2015-01-23 18:45:16

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: [SOLVED] /etc/systemd/system.conf: DumpCore

karol wrote:

@Head_on_a_Stick
What does

#DumpCore=yes

mean? Dump on crash or not? What's the default?

I guess 'yes' is the default, but I'd rather have explicit info about it. Easy to find complete info would be a plus :-)

From @carogan's link:

systemd's default behavior is to generate core dumps for all processes in /var/lib/systemd/coredump.

However, that directory is empty on my system so it will not generate any core dumps.


Jin, Jîyan, Azadî

Offline

#9 2015-01-23 20:22:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] /etc/systemd/system.conf: DumpCore

Head_on_a_Stick wrote:

that directory is empty on my system so it will not generate any core dumps.

It's currently empty on my system, but the dumps are generated - I've just removed one.


@cargoan
I still think systemd needs either less options or better documentation ;P I'll clone myself and start writing some good man pages, BRB.

Offline

#10 2015-01-24 08:16:04

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

Re: [SOLVED] /etc/systemd/system.conf: DumpCore

Maybe it means: dump systemd own core on systemd crash (?)
I'm not sure this thread has to be marked as solved...


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

Offline

#11 2015-01-24 08:57:47

cargoan
Member
Registered: 2013-07-13
Posts: 20

Re: [SOLVED] /etc/systemd/system.conf: DumpCore

Possibly disabled in limits.
If core file size (-c) is zero, dumps generation is disabled.

$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 30
file size               (blocks, -f) unlimited
pending signals                 (-i) 10961
max locked memory       (kbytes, -l) 40000
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 65
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 10961
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

It can be activated by assigning a size with ulimit -c  coresize

(Sorry, translator used)

Offline

#12 2015-01-24 14:32:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] /etc/systemd/system.conf: DumpCore

There are other settings that can affect it

$ grep Storage /etc/systemd/coredump.conf
Storage=none

Offline

#13 2015-01-25 22:16:54

EscapedNull
Member
Registered: 2013-12-04
Posts: 129

Re: [SOLVED] /etc/systemd/system.conf: DumpCore

Head_on_a_Stick wrote:

From @carogan's link:

systemd's default behavior is to generate core dumps for all processes in /var/lib/systemd/coredump.

However, that directory is empty on my system so it will not generate any core dumps.

What I meant when I wrote that was, "...generate core dumps for all processes, and store them in /var/lib/systemd/coredump". If that directory is empty, it just means that no processes have crashed and generated a core dump yet. The files in that directory don't control the behavior of systemd-coredump in any way (although the absence of the directory itself might disable them, not sure). Sorry for the confusion.

See also: systemd-coredump(8), coredumpctl(1)

Offline

Board footer

Powered by FluxBB