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

2014-06-15 Thread Colin Walters
On Sun, Jun 15, 2014, at 02:56 PM, Lennart Poettering wrote: > > BTW: given that there's now at least Colin, Kay, me, and CoreOS working > on getting empty /etc working, can we at least try to agree where the > vendor versions of the files should be? I am kinda voting for > /usr/share/etc, and thi

Re: [systemd-devel] systemd not initializing

2014-06-15 Thread Jay D Bhatt
Hi, I have CONFIG_TMPFS=y set in kernel, but still it hangs at [ OK ] Started D-Bus System Message Bus. Starting Authorization Manager... Almost all kernel config parameters are set as mentioned in README file of systemd. I tried enable debug-shell.service , it executed perfectly..n

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

2014-06-15 Thread Chris Murphy
On Jun 15, 2014, at 4:34 PM, Lennart Poettering wrote: > On Wed, 11.06.14 20:32, Chris Murphy (li...@colorremedies.com) wrote: > >>> systemd has a very stupid journal write pattern. It checks if there >>> is space in the file for the write, and if not it fallocates the >>> small amount of space

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

2014-06-15 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Jun 15, 2014 at 11:40:42AM +0200, Goffredo Baroncelli wrote: > Unfortunately bootchart doesn't work on fedora, because > CONFIG_SCHEDSTATS is not enabled in the kernel. It's being investigated, unfortunatly with no progress since April: https://bugzilla.redhat.com/show_bug.cgi?id=1013225

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

2014-06-15 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Jun 14, 2014 at 02:35:31PM +0200, Tom Sherpen wrote: > 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 cer

Re: [systemd-devel] systemd not initializing

2014-06-15 Thread Lennart Poettering
On Fri, 13.06.14 09:18, Jay D Bhatt (jay.bh...@igate.com) wrote: > systemd-readahead[1485]: Failed to create fanotify object: Function not > implemented > Dec 31 18:43:12 192.168.149.68 mount[1616]: mount: wrong fs type, bad option, > ba Please enable all kernel options mentioned in systemd's

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

2014-06-15 Thread Lennart Poettering
On Sat, 14.06.14 12:59, Kai Krakow (hurikha...@gmail.com) wrote: > > 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 > > (controversial

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

2014-06-15 Thread Lennart Poettering
On Sun, 15.06.14 05:43, Duncan (1i5t5.dun...@cox.net) wrote: > The base problem isn't fallocate per se, rather, tho it's the trigger in > this case. The base problem is that for COW-based filesystems, *ANY* > rewriting of existing file content results in fragmentation. > > It just so happens t

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

2014-06-15 Thread Lennart Poettering
On Wed, 11.06.14 20:32, Chris Murphy (li...@colorremedies.com) wrote: > > systemd has a very stupid journal write pattern. It checks if there > > is space in the file for the write, and if not it fallocates the > > small amount of space it needs (it does *4 byte* fallocate calls!) Not really the

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

2014-06-15 Thread Michael Marineau
On Sun, Jun 15, 2014 at 2:56 PM, Lennart Poettering wrote: > On Fri, 13.06.14 12:35, Michael Marineau (michael.marin...@coreos.com) wrote: > >> As a side note, regardless of whether an empty /etc is actually viable >> or not the more packages that support gracefully dealing with >> configuration i

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

2014-06-15 Thread Lennart Poettering
On Sat, 14.06.14 09:52, Goffredo Baroncelli (kreij...@libero.it) wrote: > > Which effectively means that by the time the 8 MiB is filled, each 4 KiB > > block has been rewritten to a new location and is now an extent unto > > itself. So now that 8 MiB is composed of 2048 new extents, each one a

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

2014-06-15 Thread Lennart Poettering
On Sat, 14.06.14 11:55, Colin Walters (walt...@verbum.org) 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 dra

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

2014-06-15 Thread Lennart Poettering
On Sun, 15.06.14 07:51, Andrey Borzenkov (arvidj...@gmail.com) wrote: > В 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(...) w

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

2014-06-15 Thread Lennart Poettering
On Sat, 14.06.14 18:34, luigi (luig...@yandex.com) wrote: > > hi. > > i think it will be better that system users with fixed uid/guid shoud be > imposed by upstream. > > Do not allow for flexibility for distros in order to make them stable and > standardized. THis can never work, as the UID/

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

2014-06-15 Thread Lennart Poettering
On Fri, 13.06.14 12:35, Michael Marineau (michael.marin...@coreos.com) wrote: > As a side note, regardless of whether an empty /etc is actually viable > or not the more packages that support gracefully dealing with > configuration in both /etc and /usr the fewer files there will be in > /etc that

[systemd-devel] [PATCH] tests: unlink temp file used in test

2014-06-15 Thread Ronny Chevalier
--- src/test/test-util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/test-util.c b/src/test/test-util.c index 2b46699..35dd63f 100644 --- a/src/test/test-util.c +++ b/src/test/test-util.c @@ -654,6 +654,8 @@ static void test_writing_tmpfile(void) { assert(r == 0);

[systemd-devel] [PATCH] tests: add tests to test-hashmap

2014-06-15 Thread Ronny Chevalier
add tests for: - hashmap_remove_and_put - hashmap_first_key - hashmap_last - hashmap_steal_first_key - hashmap_clear_free_free --- src/test/test-hashmap.c | 88 + 1 file changed, 88 insertions(+) diff --git a/src/test/test-hashmap.c b/src/

[systemd-devel] libsystemd-network: UDP checksum on BE machines

2014-06-15 Thread Thomas Ritter
Dear systemd-networkd developers, I think there is an issue with the generation of the UDP checksums on big-endian systems, which I already posted as an issue to the bugtracker (https://bugs.freedesktop.org/show_bug.cgi?id=78082) but since there was not reaction I'll give it a try in this List

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

2014-06-15 Thread Jan Janssen
I had a couple of boots with this patch applied and it seems to fix the issue, thanks. Jan On 2014-06-14 19:13, Tom Gundersen wrote: 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,

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

2014-06-15 Thread Kai Krakow
Goffredo Baroncelli schrieb: To get back to your performance problem: Did you try "systemctl enable bootchart" and then (after a reboot) look at the png generated in /run/log (at least in my system it is placed there, look at the configs if in doubt). It can give some interest

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

2014-06-15 Thread Goffredo Baroncelli
On 06/15/2014 12:50 PM, Kai Krakow wrote: > Goffredo Baroncelli schrieb: > I have enabled all the services (collect, replay, done), but I was unable to see any gain. >>> >>> I don't think you can actually enable the "done" service because it is >>> static... But if it placed a symlink i

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

2014-06-15 Thread Kai Krakow
Goffredo Baroncelli schrieb: >>> I have enabled all the services (collect, replay, done), but I was >>> unable to see any gain. >> >> I don't think you can actually enable the "done" service because it is >> static... But if it placed a symlink in /etc/systemd that is probably >> wrong and you s

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

2014-06-15 Thread Goffredo Baroncelli
On 06/14/2014 11:37 PM, Kai Krakow wrote: > 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

[systemd-devel] Behavior regarding ReadWriteDirectories= and otheres

2014-06-15 Thread Jan Janssen
Hi, while booting this morning I noticed that a service I wrote which had a very paranoid PrivateTmp=yes ReadOnlyDirectories=/ ReadWriteDirectories=/var/cache/something which used to work quite nicely was failing to start. It seems that ever since the recent changes wit

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

2014-06-15 Thread Andreas Henriksson
On Sun, Jun 15, 2014 at 07:51:10AM +0400, Andrey Borzenkov wrote: > В Fri, 13 Jun 2014 18:48:19 +0200 > Andreas Henriksson пишет: > [...] > > +_cleanup_free_ char *s = NULL; > > > > get_process_comm(pid, &s); > > Do you mean this may fail to ass