Re: [systemd-devel] [PATCH] networkd: route - allow routes without a gateway

2014-11-27 Thread Tom Gundersen
Thanks to all (the initial patch had ended up in my spam, no idea why). Tom On 27 Nov 2014 06:33, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Mon, Nov 24, 2014 at 03:51:31PM -0800, Gavin Li wrote: From: Gavin Li g...@thegavinli.com For IPv6, the kernel returns EINVAL if a

Re: [systemd-devel] make systemd service takes cpu exclusively

2014-11-27 Thread Cao, XinX
Hi, Yes, you are right. My service is defined as simple. And I changed it to notify, seems that I can make the other services now successfully start after it finished startup. But I'm confused who will call sd_notify to send READY=1? I can't find the related code in system. Or the

Re: [systemd-devel] [PATCH] udevadm hwdb: discard extra leading whitespaces in hwdb

2014-11-27 Thread Lennart Poettering
On Thu, 27.11.14 15:19, Peter Hutterer (peter.hutte...@who-t.net) wrote: Currently a property in the form of FOO=bar is stored as FOO=bar, i.e. the property name contains a leading space. That's quite hard to spot. This patch discards all extra whitespaces but the first one which is

Re: [systemd-devel] [PATCH] hwdb: add a new db for the DPI/frequency settings of mice

2014-11-27 Thread David Herrmann
Hi On Thu, Nov 27, 2014 at 7:06 AM, Peter Hutterer peter.hutte...@who-t.net wrote: On Wed, Nov 26, 2014 at 01:10:10AM +0100, Zbigniew Jędrzejewski-Szmek wrote: On Wed, Nov 26, 2014 at 01:01:30AM +0100, Zbigniew Jędrzejewski-Szmek wrote: On Wed, Nov 26, 2014 at 07:30:51AM +1000, Peter Hutterer

Re: [systemd-devel] make systemd service takes cpu exclusively

2014-11-27 Thread Mantas Mikulėnas
On Thu, Nov 27, 2014 at 12:56 PM, Cao, XinX xinx@intel.com wrote: Hi, Yes, you are right. My service is defined as simple. And I changed it to notify, seems that I can make the other services now successfully start after it finished startup. But I'm confused who will call

Re: [systemd-devel] How to start unit before everything else on shutdown

2014-11-27 Thread Mantas Mikulėnas
On Wed, Nov 26, 2014 at 11:06 PM, Nikolaus Rath nikol...@rath.org wrote: Hello, I'd like to start a unit on system shutdown and reboot, but do so immediately after the systemctl reboot command is executed, before any other units are terminated. Out of curiosity, what does your unit do? Is

Re: [systemd-devel] systemd-cgroups-agent not working in containers

2014-11-27 Thread Richard Weinberger
Am 26.11.2014 um 22:29 schrieb Richard Weinberger: Hi! I run a Linux container setup with openSUSE 13.1/2 as guest distro. After some time containers slow down. An investigation showed that the containers slow down because a lot of stale user sessions slow down almost all systemd tools,

[systemd-devel] [PATCH] rtnl: kernel receive buffer overrun error

2014-11-27 Thread Rauta, Alin
Hi, We got the following error when running systemd on a device with many ports: rtnl: kernel receive buffer overrun Event source 'rtnl-receive-message' returned error, disabling: No buffer space available I think the kernel socket receive buffer queue should be increased. The default value

Re: [systemd-devel] [PATCH] build-sys: remove --gc-sections to fix debugging

2014-11-27 Thread David Herrmann
Hi On Wed, Nov 26, 2014 at 6:40 PM, Gustavo Sverzut Barbieri gustavo.barbi...@intel.com wrote: On Wed, Nov 26, 2014 at 06:33:31PM +0100, Lennart Poettering wrote: On Wed, 26.11.14 15:16, Gustavo Sverzut Barbieri (gustavo.barbi...@intel.com) wrote: I'm okay with the change to remove

Re: [systemd-devel] make systemd service takes cpu exclusively

2014-11-27 Thread Andrei Borzenkov
В Thu, 27 Nov 2014 12:44:50 + Cao, XinX xinx@intel.com пишет: But it’s very strange, for I can’t find “sd_notify” or “sd_notifyf” in my program, but seems that notify type can still work. So are there any other functions able to do this ? Sorry, I do not understand

Re: [systemd-devel] [PATCH] Stop crashing on empty TXT

2014-11-27 Thread David Herrmann
Hi On Tue, Nov 18, 2014 at 4:52 AM, Stanisław Pitucha virap...@gmail.com wrote: TXT records should have at least one character, so enforce this. Previously parser SIGSEGV'd on -txt.strings being NULL. Your patch fixes the issue, indeed. However, I didn't have the time to look this up in the

Re: [systemd-devel] [systemd-commits] 4 commits - src/core test/TEST-03-JOBS

2014-11-27 Thread Michal Schmidt
On 11/27/2014 03:42 AM, Zbigniew Jędrzejewski-Szmek wrote: On Wed, Nov 26, 2014 at 07:35:30AM -0800, Michal Schmidt wrote: src/core/job.c |7 +-- src/core/job.h | 14 ++ src/core/transaction.c |2 +-

Re: [systemd-devel] Unbounded journal~ file accumulation

2014-11-27 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Nov 26, 2014 at 09:59:12PM +, Moyer, Keith wrote: Running v215-6 via Debian jessie In my situation, it is common to have unclean reboots. On the subsequent boot, a system@journal~ file is created. The problem is that these journal~ files do not trigger any cleanup with

Re: [systemd-devel] [PATCH] build-sys: remove --gc-sections to fix debugging

2014-11-27 Thread Peter Wu
On Thursday 27 November 2014 15:42:37 David Herrmann wrote: We _really_ depend on --gc-sections. We link a lot of stuff from src/shared/ statically into all binaries and expect the linker to drop any unused symbols. Note that none of the symbols from src/shared/ are exported, so the linker can

Re: [systemd-devel] make systemd service takes cpu exclusively

2014-11-27 Thread Tomasz Torcz
On Thu, Nov 27, 2014 at 12:44:50PM +, Cao, XinX wrote: But it’s very strange, for I can’t find “sd_notify” or “sd_notifyf” in my program, but seems that notify type can still work. So are there any other functions able to do this ? Thanks~~ Are you sure

Re: [systemd-devel] [PATCH 1/2] Fix redirection loops in compressed RR

2014-11-27 Thread David Herrmann
Hi On Tue, Nov 18, 2014 at 6:25 AM, Stanisław Pitucha virap...@gmail.com wrote: Loops in RR compression were only detected for the first entry. Multiple redirections should be allowed, each one checking for an infinite loop on its own starting point. Also update the pointer on each

Re: [systemd-devel] [PATCH] Set error code on failure

2014-11-27 Thread David Herrmann
Hi On Tue, Nov 18, 2014 at 6:40 AM, Stanisław Pitucha virap...@gmail.com wrote: Set the error code in case of incorrect name. This prevents continuing and failing an assert(name) later on. --- src/resolve/resolved-dns-packet.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Looks

Re: [systemd-devel] How to start unit before everything else on shutdown

2014-11-27 Thread Andrei Borzenkov
В Thu, 27 Nov 2014 14:17:49 +0200 Mantas Mikulėnas graw...@gmail.com пишет: On Wed, Nov 26, 2014 at 11:06 PM, Nikolaus Rath nikol...@rath.org wrote: Hello, I'd like to start a unit on system shutdown and reboot, but do so immediately after the systemctl reboot command is executed,

Re: [systemd-devel] [PATCH] build-sys: remove --gc-sections to fix debugging

2014-11-27 Thread Gustavo Sverzut Barbieri
On Thu, Nov 27, 2014 at 03:42:37PM +0100, David Herrmann wrote: Hi On Wed, Nov 26, 2014 at 6:40 PM, Gustavo Sverzut Barbieri gustavo.barbi...@intel.com wrote: On Wed, Nov 26, 2014 at 06:33:31PM +0100, Lennart Poettering wrote: On Wed, 26.11.14 15:16, Gustavo Sverzut Barbieri

Re: [systemd-devel] systemd-cgroups-agent not working in containers

2014-11-27 Thread Umut Tezduyar Lindskog
Hi, On Wed, Nov 26, 2014 at 10:29 PM, Richard Weinberger rich...@nod.at wrote: Hi! I run a Linux container setup with openSUSE 13.1/2 as guest distro. After some time containers slow down. An investigation showed that the containers slow down because a lot of stale user sessions slow down

Re: [systemd-devel] [PATCH] build-sys: remove --gc-sections to fix debugging

2014-11-27 Thread David Herrmann
Hi On Thu, Nov 27, 2014 at 4:42 PM, Gustavo Sverzut Barbieri gustavo.barbi...@intel.com wrote: On Thu, Nov 27, 2014 at 03:42:37PM +0100, David Herrmann wrote: Hi On Wed, Nov 26, 2014 at 6:40 PM, Gustavo Sverzut Barbieri gustavo.barbi...@intel.com wrote: On Wed, Nov 26, 2014 at 06:33:31PM

Re: [systemd-devel] [PATCH] Stop crashing on empty TXT

2014-11-27 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Nov 27, 2014 at 04:12:20PM +0100, David Herrmann wrote: Hi On Tue, Nov 18, 2014 at 4:52 AM, Stanisław Pitucha virap...@gmail.com wrote: TXT records should have at least one character, so enforce this. Previously parser SIGSEGV'd on -txt.strings being NULL. Your patch fixes the

Re: [systemd-devel] [PATCH] Stop crashing on empty TXT

2014-11-27 Thread David Herrmann
Hi On Thu, Nov 27, 2014 at 5:09 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Thu, Nov 27, 2014 at 04:12:20PM +0100, David Herrmann wrote: Hi On Tue, Nov 18, 2014 at 4:52 AM, Stanisław Pitucha virap...@gmail.com wrote: TXT records should have at least one character, so

Re: [systemd-devel] [PATCH] build-sys: remove --gc-sections to fix debugging

2014-11-27 Thread Peter Wu
On Thursday 27 November 2014 13:42:27 Gustavo Sverzut Barbieri wrote: I'm asking because from Peter Wu's email we're 26384 - 26380 = 4Kb heavier in the whole installed set of binaries. If this is correct I doubt the gc-sections is making any difference in the linkage of static libraries

Re: [systemd-devel] [PATCH] build-sys: remove --gc-sections to fix debugging

2014-11-27 Thread David Herrmann
Hi On Thu, Nov 27, 2014 at 6:35 PM, Peter Wu pe...@lekensteyn.nl wrote: On Thursday 27 November 2014 13:42:27 Gustavo Sverzut Barbieri wrote: I'm asking because from Peter Wu's email we're 26384 - 26380 = 4Kb heavier in the whole installed set of binaries. If this is correct I doubt the

Re: [systemd-devel] [PATCH] rtnl: kernel receive buffer overrun error

2014-11-27 Thread Tom Gundersen
Hi Alin, On Thu, Nov 27, 2014 at 3:22 PM, Rauta, Alin alin.ra...@intel.com wrote: We got the following error when running systemd on a device with many ports: rtnl: kernel receive buffer overrun Event source 'rtnl-receive-message' returned error, disabling: No buffer space available

Re: [systemd-devel] [PATCH] build-sys: remove --gc-sections to fix debugging

2014-11-27 Thread Gustavo Sverzut Barbieri
On Thu, Nov 27, 2014 at 06:50:19PM +0100, David Herrmann wrote: Hi On Thu, Nov 27, 2014 at 6:35 PM, Peter Wu pe...@lekensteyn.nl wrote: On Thursday 27 November 2014 13:42:27 Gustavo Sverzut Barbieri wrote: I'm asking because from Peter Wu's email we're 26384 - 26380 = 4Kb heavier in the

Re: [systemd-devel] [PATCH] build-sys: remove --gc-sections to fix debugging

2014-11-27 Thread David Herrmann
Hi On Thu, Nov 27, 2014 at 7:31 PM, Gustavo Sverzut Barbieri gustavo.barbi...@intel.com wrote: Currently configure.ac has the LTO logic inside an: AS_CASE([$CFLAGS], [*-O[[12345\ ]]*], We can make the else block check/enable for gc-sections alongside printing the result. See

Re: [systemd-devel] [PATCH] build-sys: remove --gc-sections to fix debugging

2014-11-27 Thread Gustavo Sverzut Barbieri
On Thu, Nov 27, 2014 at 07:36:12PM +0100, David Herrmann wrote: Hi On Thu, Nov 27, 2014 at 7:31 PM, Gustavo Sverzut Barbieri gustavo.barbi...@intel.com wrote: Currently configure.ac has the LTO logic inside an: AS_CASE([$CFLAGS], [*-O[[12345\ ]]*], We can make the else

Re: [systemd-devel] How to start unit before everything else on shutdown

2014-11-27 Thread Nikolaus Rath
Mantas Mikulėnas graw...@gmail.com writes: On Wed, Nov 26, 2014 at 11:06 PM, Nikolaus Rath nikol...@rath.org wrote: Hello, I'd like to start a unit on system shutdown and reboot, but do so immediately after the systemctl reboot command is executed, before any other units are terminated.

Re: [systemd-devel] systemd-cgroups-agent not working in containers

2014-11-27 Thread Cameron Norman
On Wed, Nov 26, 2014 at 1:29 PM, Richard Weinberger rich...@nod.at wrote: Hi! I run a Linux container setup with openSUSE 13.1/2 as guest distro. After some time containers slow down. An investigation showed that the containers slow down because a lot of stale user sessions slow down almost

Re: [systemd-devel] How to start unit before everything else on shutdown

2014-11-27 Thread Nikolaus Rath
Mantas Mikulėnas graw...@gmail.com writes: On Wed, Nov 26, 2014 at 11:06 PM, Nikolaus Rath nikol...@rath.org wrote: Hello, I'd like to start a unit on system shutdown and reboot, but do so immediately after the systemctl reboot command is executed, before any other units are terminated.

Re: [systemd-devel] systemd-networkd: reload network unit from a non-root partition using a mount unit

2014-11-27 Thread Matthias Klein
Am 26.11.2014 um 21:52 schrieb Tom Gundersen: This sort of scheme (mounting partitions with extra config files after the daemons have started) is not really something we support. We would rather recommend you mount everything you need for your base system (i.e., all of /etc and /usr, but not

Re: [systemd-devel] [PATCH] hwdb: add a new db for the DPI/frequency settings of mice

2014-11-27 Thread Peter Hutterer
On Thu, Nov 27, 2014 at 12:39:08PM +0100, David Herrmann wrote: Hi On Thu, Nov 27, 2014 at 7:06 AM, Peter Hutterer peter.hutte...@who-t.net wrote: On Wed, Nov 26, 2014 at 01:10:10AM +0100, Zbigniew Jędrzejewski-Szmek wrote: On Wed, Nov 26, 2014 at 01:01:30AM +0100, Zbigniew

Re: [systemd-devel] systemd-cgroups-agent not working in containers

2014-11-27 Thread Martin Pitt
Hello all, Cameron Norman [2014-11-27 12:26 -0800]: On Wed, Nov 26, 2014 at 1:29 PM, Richard Weinberger rich...@nod.at wrote: Hi! I run a Linux container setup with openSUSE 13.1/2 as guest distro. After some time containers slow down. An investigation showed that the containers slow

Re: [systemd-devel] [PATCH] Stop crashing on empty TXT

2014-11-27 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Nov 27, 2014 at 05:13:00PM +0100, David Herrmann wrote: Hi On Thu, Nov 27, 2014 at 5:09 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Thu, Nov 27, 2014 at 04:12:20PM +0100, David Herrmann wrote: Hi On Tue, Nov 18, 2014 at 4:52 AM, Stanisław Pitucha

[systemd-devel] systemctl isolate foo.service expands to foo.service.target

2014-11-27 Thread WANG Chao
Hi, All I happen to notice systemctl isolate will expands foo.service to foo.service.target, which unfortunately breaks my boot in some way. I find the following commit: commit 0807312 Author: Lennart Poettering lenn...@poettering.net Date: Mon Oct 13 15:43:09 2014 +0200 systemctl: when

Re: [systemd-devel] systemctl isolate foo.service expands to foo.service.target

2014-11-27 Thread Andrei Borzenkov
В Fri, 28 Nov 2014 15:11:29 +0800 WANG Chao chaow...@redhat.com пишет: Hi, All I happen to notice systemctl isolate will expands foo.service to foo.service.target, which unfortunately breaks my boot in some way. I find the following commit: commit 0807312 Author: Lennart Poettering

Re: [systemd-devel] systemctl isolate foo.service expands to foo.service.target

2014-11-27 Thread WANG Chao
On 11/28/14 at 10:13am, Andrei Borzenkov wrote: В Fri, 28 Nov 2014 15:11:29 +0800 WANG Chao chaow...@redhat.com пишет: Hi, All I happen to notice systemctl isolate will expands foo.service to foo.service.target, which unfortunately breaks my boot in some way. I find the following

[systemd-devel] udevd: increase maximum number of children

2014-11-27 Thread Robert Milasan
Hello, since a while back, there was a commit (haven't found it) which limits the number of children/workers to 8 + num_cpu * 2, which in a normal case like a 4 core/cpu machine is 16 children/workers. This limit is way too low even for a single core VM, that actually means 10 children/workers.