Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-14 Thread Duncan
Goffredo Baroncelli posted on Sat, 14 Jun 2014 09:52:39 +0200 as excerpted: > On 06/14/2014 04:53 AM, Duncan wrote: >> Goffredo Baroncelli posted on Sat, 14 Jun 2014 00:19:31 +0200 as >> excerpted: >> >>> thanks for pointing that. However I am performing my tests on a fedora >>> 20 with systemd-2

Re: [systemd-devel] [PATCH 2/4] core: fix invalid free() in killall()

2014-06-14 Thread Andrey Borzenkov
В Fri, 13 Jun 2014 18:48:19 +0200 Andreas Henriksson пишет: > static int killall() in ./src/core/killall.c tries to get "s" > initialized by calling get_process_comm(...) which calls > read_one_line_file(...) which if it fails will mean it is left > uninitialized. > It is then used in argumen

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-14 Thread Kai Krakow
Goffredo Baroncelli schrieb: > On 06/14/2014 10:13 PM, Kai Krakow wrote: >> Take care to enable all needed services to enable defrag... If your >> services make use of journal file loading these files should also become >> part of the process. You can check with >> "/usr/lib/systemd/systemd-reada

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-14 Thread Goffredo Baroncelli
On 06/14/2014 10:13 PM, Kai Krakow wrote: > Goffredo Baroncelli schrieb: > >> I am looking at the source, and yes, it does. To be honest it seems to >> defragment only on btrfs. > > Oh that seems true... Then defragmenting and relocating is probably a todo > item. I'm sure I've read about it so

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-14 Thread Kai Krakow
Goffredo Baroncelli schrieb: > I am looking at the source, and yes, it does. To be honest it seems to > defragment only on btrfs. Oh that seems true... Then defragmenting and relocating is probably a todo item. I'm sure I've read about it somewhere. >> If it >> does, the question is: where to

[systemd-devel] [PATCH 1/2] tests: add test-socket-util

2014-06-14 Thread Ronny Chevalier
--- .gitignore | 1 + Makefile.am | 9 ++- src/test/test-socket-util.c | 145 3 files changed, 154 insertions(+), 1 deletion(-) create mode 100644 src/test/test-socket-util.c diff --git a/.gitignore b/.gitignore in

[systemd-devel] [PATCH 2/2] tests: add test-fdset

2014-06-14 Thread Ronny Chevalier
--- .gitignore| 1 + Makefile.am | 9 +++- src/test/test-fdset.c | 114 ++ 3 files changed, 123 insertions(+), 1 deletion(-) create mode 100644 src/test/test-fdset.c diff --git a/.gitignore b/.gitignore index f7127bd..97ce

Re: [systemd-devel] new user/group population on bootup

2014-06-14 Thread Michael Marineau
On Jun 14, 2014 11:55 AM, "Colin Walters" wrote: > > On Fri, Jun 13, 2014, at 12:35 PM, Michael Marineau wrote: > > > > For what its worth, in my efforts to make CoreOS boot with a > > completely empty root filesystem I found that the changes required > > were usually not too dramatic. Fixing many

Re: [systemd-devel] new user/group population on bootup

2014-06-14 Thread Colin Walters
On Fri, Jun 13, 2014, at 12:35 PM, Michael Marineau wrote: > > For what its worth, in my efforts to make CoreOS boot with a > completely empty root filesystem I found that the changes required > were usually not too dramatic. Fixing many packages, like sudo, just > amounted to shipping different co

Re: [systemd-devel] Networkd randomly doesn't configure network

2014-06-14 Thread Tom Gundersen
On Sat, Jun 14, 2014 at 3:36 PM, Jan Janssen wrote: > systemd-networkd randomly refuses to set up my network card at boot. Thanks for the report and the logs, that was very helpful. I think I have solved the problem with

Re: [systemd-devel] systemd not initializing

2014-06-14 Thread Andrey Borzenkov
В Fri, 13 Jun 2014 09:18:57 + Jay D Bhatt пишет: > Sorry, Forgot to send log. > > I got the previous log by command use `journalctl --boot -1` > > Please find the log attached. This time the system stopped prior to previous > run. > > This time it stopped at : > > [ OK ] Started D-Bu

Re: [systemd-devel] Soliciting feedback for golang bindings to the systemd journal C API

2014-06-14 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Jun 09, 2014 at 02:56:24PM -0400, Dan Mace wrote: > Hello! > > We've been working on golang bindings to the systemd journal interface > (sd-journal.h), as well as a higher level go API which builds on the > bindings. The immediate goal is to replace the use of forked calls to > journa

Re: [systemd-devel] Networkd randomly doesn't configure network

2014-06-14 Thread Tom Gundersen
On Sat, Jun 14, 2014 at 4:30 PM, Jan Janssen wrote: > It's in the original mail. But I'll attach it anyway. Indeed, I cannot read :) Thanks. > On 2014-06-14 15:52, Tom Gundersen wrote: >> >> Hi Jan, >> >> Could you attach your home.network file (in particular the [Match] >> section)? >> >> Cheer

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-14 Thread Goffredo Baroncelli
On 06/14/2014 04:03 PM, Kai Krakow wrote: > Goffredo Baroncelli schrieb: > >> On 06/14/2014 12:59 PM, Kai Krakow wrote: >> [...] >>> >>> I think that systemd is even one of the early supporters of btrfs because >>> it will defragment readahead files on boot from btrfs. >> >> In know that systemd

Re: [systemd-devel] Networkd randomly doesn't configure network

2014-06-14 Thread Jan Janssen
It's in the original mail. But I'll attach it anyway. On 2014-06-14 15:52, Tom Gundersen wrote: Hi Jan, Could you attach your home.network file (in particular the [Match] section)? Cheers, Tom On Sat, Jun 14, 2014 at 3:36 PM, Jan Janssen wrote: Hi, systemd-networkd randomly refuses to set

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-14 Thread Kai Krakow
Goffredo Baroncelli schrieb: >> First, I've set the journal directories nocow. > > If you use nocow, you lost the btrfs ability to rebuild a RAID array > discarding the wrong sector. With the systemd journal checksum, you can > say that a data is wrong, but BTRFS with its checksum (when used in

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-14 Thread Kai Krakow
Goffredo Baroncelli schrieb: > On 06/14/2014 12:59 PM, Kai Krakow wrote: > [...] >> >> I think that systemd is even one of the early supporters of btrfs because >> it will defragment readahead files on boot from btrfs. > > In know that systemd does readahead, but it is the first time that I hea

Re: [systemd-devel] Networkd randomly doesn't configure network

2014-06-14 Thread Tom Gundersen
Hi Jan, Could you attach your home.network file (in particular the [Match] section)? Cheers, Tom On Sat, Jun 14, 2014 at 3:36 PM, Jan Janssen wrote: > Hi, > > systemd-networkd randomly refuses to set up my network card at boot. > It gets its proper persistent name but no IP address is assigned

[systemd-devel] Networkd randomly doesn't configure network

2014-06-14 Thread Jan Janssen
Hi, systemd-networkd randomly refuses to set up my network card at boot. It gets its proper persistent name but no IP address is assigned, regardless of whether I use a static configuration or DCHP. A simple "systemctl restart systemd-networkd.service" fixes it. I'm using a up to date Arch Linux a

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-14 Thread Goffredo Baroncelli
On 06/14/2014 12:59 PM, Kai Krakow wrote: [...] > > I think that systemd is even one of the early supporters of btrfs because it > will defragment readahead files on boot from btrfs. In know that systemd does readahead, but it is the first time that I heard that it does defrag too. Could you e

Re: [systemd-devel] [PATCH] networkd: link - avoid null pointer deref

2014-06-14 Thread Tom Gundersen
On Fri, Jun 13, 2014 at 11:52 PM, Thomas H.P. Andersen wrote: > From: Thomas Hindoe Paaboel Andersen > > --- > src/network/networkd-link.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c > index baa0756..39c83

[systemd-devel] [hybrid-sleep] hibernation delay

2014-06-14 Thread Tom Sherpen
Hi,   I am wondering if hybrid-sleep could support a hibernation delay, similar to what is found in pm-utils [1]   Thus, you would be able to first suspend, with the machine going automatically into hibernation after a certain amount of time.   Is support for such a hibernation delay planned for

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-14 Thread Kai Krakow
Duncan <1i5t5.dun...@cox.net> schrieb: > As they say, "Whoosh!" > > At least here, I interpreted that remark as primarily sarcastic > commentary on the systemd devs' apparent attitude, which can be > (controversially) summarized as: "Systemd doesn't have problems because > it's perfect. Therefor

Re: [systemd-devel] Slow startup of systemd-journal on BTRFS

2014-06-14 Thread Goffredo Baroncelli
On 06/14/2014 04:53 AM, Duncan wrote: > Goffredo Baroncelli posted on Sat, 14 Jun 2014 00:19:31 +0200 as > excerpted: > >> On 06/13/2014 01:24 AM, Dave Chinner wrote: >>> On Thu, Jun 12, 2014 at 12:37:13PM +, Duncan wrote: FWIW, either 4 byte or 8 MiB fallocate calls would be bad, I