[systemd-devel] Complex supervision structures/delegating watchdog?

2015-02-14 Thread Holger Freyther
Hi, for one application we will spawn one or more pppd daemons. Once a link is up I would like to monitor them. The closest thing that I can do right now is systemctl start mon@$PPP_IFACE from within a /etc/ppp/ip-up.d/mon file. In case I consider the link broken or I want to bring it down, I

[systemd-devel] [PATCH] RFC/fsck: Allow to specify the fsck repair option in the cmdline

2014-05-15 Thread Holger Freyther
From: Holger Hans Peter Freyther hol...@moiji-mobile.com Some unattended systems do not have a console attached and entering the default rescue mode will not be too helpful. Allow to specify the -y option to attempt to fix all filesystem errors. Manually verified by downloading an image.gz of

Re: [systemd-devel] [PATCH] RFC/fsck: Allow to specify the fsck repair option in the cmdline

2014-05-15 Thread Holger Freyther
Lennart Poettering lennart at poettering.net writes: the -y option to attempt to fix all filesystem errors. Hmm, we already unconditionally pass -a to fsck, which should have the desired effect of non-interactively fixing everything. What does your patch add on top of that? fsck.ext4(8)

[systemd-devel] Excessive (virtual) memory usage of journald

2013-06-20 Thread Holger Freyther
Good Morning, I had postponed the adoption of systemd due the excessive CPU usage of the journald. I am re-evaluating the situation with version 204 right now and I noticed that the (virtual) address space is getting unusual big. My journald config configuration is: [Journal]

Re: [systemd-devel] [PATCH 0/2] RFC for avoid dynamic allocation in journald

2013-04-08 Thread Holger Freyther
Holger Hans Peter Freyther holger at freyther.de writes: The following two patches are compile tested only. The first one is to avoid work when systemd is compiled without audit support. The second is starting to remove dynamic allocations from the dispatch_message_real method. I just

[systemd-devel] [PATCH] RFC: util: Avoid memory allocations for formatting paths

2013-04-03 Thread Holger Freyther
From: Holger Hans Peter Freyther hol...@moiji-mobile.com Avoid memory allocations to construct the path for files in the procfs. The procfs paths are way shorter than the PATH_MAX so we can use snprintf on a string located on the stack. This shows up as a win on x86 using the benchmark program

[systemd-devel] [PATCH 2/2] RFC: util: Avoid doing work on the string when it is not used

2013-04-02 Thread Holger Freyther
From: Holger Hans Peter Freyther hol...@moiji-mobile.com The routine is dominated by the fgets and not the code that is moved around. Doing the work only for the lines that will be used should be a small gain. Routines in the selinux-access.c should probably query the gid and uid at the same time

[systemd-devel] [PATCH 1/2] RFC: util: Avoid memory allocations for formatting paths

2013-04-02 Thread Holger Freyther
From: Holger Hans Peter Freyther hol...@moiji-mobile.com Avoid memory allocations to construct the path for files in the procfs. The procfs paths are way shorter than the PATH_MAX so we can use snprintf on a string located on the stack. This shows up as a win on x86 using the benchmark program

Re: [systemd-devel] [PATCH 1/2] RFC: util: Avoid memory allocations for formatting paths

2013-04-02 Thread Holger Freyther
Ian Pilcher arequipeno at gmail.com writes: http://gcc.gnu.org/onlinedocs/cpp/Swallowing-the-Semicolon.html thanks, good point. I will add a do {} while(0) around it. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

Re: [systemd-devel] High CPU usage of journald

2013-02-18 Thread Holger Freyther
Cristian Rodríguez crrodriguez at opensuse.org writes: Good Morning Cristian, Why should systemd stop using standard IO functions to please some obscure, out of the ordinary need? Could you please clarify obscure? So any embedded device that prints a couple of log messages on start of an

[systemd-devel] High CPU usage of journald

2013-02-17 Thread Holger Freyther
Dear maintainers, first of all the good news. The same setup used to exhibit high memory usage (and exploding virtual address space). In a relatively idle system I see a constant CPU usage of journald of around 20% ( using the busybox top). The main issue with that is that the system starts to

Re: [systemd-devel] High CPU usage of journald

2013-02-17 Thread Holger Freyther
Holger Freyther holger at freyther.de writes: I am currently re-compiling my rootfs to not omit the framepointers and then will hopefully be able to have useful output of perf. Is the current behavior expected/wanted? Somehow backtrace generation is still broken (perf should be able to walk

Re: [systemd-devel] What does it take to make test-engine working again?

2012-11-21 Thread Holger Freyther
Lennart Poettering lennart at poettering.net writes: That specific test is really old, and hasn't been used in a long time. I guess we should either remove it or make it work again. (Happy to take patches...) Okay, I will post a patch for the removal (it is broken beyond repair at this

Re: [systemd-devel] What does it take to make test-engine working again?

2012-11-01 Thread Holger Freyther
Holger Freyther holger at freyther.de writes: I made a small change and wanted to add test coverage for the bug I was fixing. The only test that is loading units appears to be test-engine. Sadly this test is not executed as part of make check and executing it by hand results in an assertion

[systemd-devel] What does it take to make test-engine working again?

2012-10-31 Thread Holger Freyther
Hi, I made a small change and wanted to add test coverage for the bug I was fixing. The only test that is loading units appears to be test-engine. Sadly this test is not executed as part of make check and executing it by hand results in an assertion when starting the first job. Is there a

[systemd-devel] Question regarding ConditionPathExists= and systemctl status

2012-08-06 Thread Holger Freyther
Hi, I have launched systemd --user, created a bts.service file, added 'ConditionPathExists=' in the Unit section of my service. Then I launched my service with 'systemctl --user start ...' and as the path does not exist, the condition_test fails and the service is not started. Next I tried to