Re: [systemd-devel] slow systemd-networkd DHCP client on wlan0 with systemd v217

2015-02-04 Thread Tom Gundersen
On Wed, Feb 4, 2015 at 2:41 PM, Patrik Flykt wrote: > > Hi, > > On Tue, 2015-02-03 at 17:27 +0100, Lennart Poettering wrote: >> > Is the resume event detected somehow in systemd? >> >> The kernel unfortunately provides no API for this right now. However, >> if logind is the one suspending

Re: [systemd-devel] slow systemd-networkd DHCP client on wlan0 with systemd v217

2015-02-04 Thread Patrik Flykt
Hi, On Tue, 2015-02-03 at 17:27 +0100, Lennart Poettering wrote: > > Is the resume event detected somehow in systemd? > > The kernel unfortunately provides no API for this right now. However, > if logind is the one suspending the machine, then it sends out a > PrepareForSleep() signal b

Re: [systemd-devel] slow systemd-networkd DHCP client on wlan0 with systemd v217

2015-02-03 Thread Charles Devereaux
True, but it's better than nothing. Well, I guess systemd-networkd doing basic things will have to wait on kdbus :-) On Tue, Feb 3, 2015 at 3:32 PM, Lennart Poettering wrote: > 1;3802;0cOn Tue, 03.02.15 14:38, Charles Devereaux (syst...@guylhem.net) > wrote: > > > On Tue, Feb 3, 2015 at 2:29

Re: [systemd-devel] slow systemd-networkd DHCP client on wlan0 with systemd v217

2015-02-03 Thread Lennart Poettering
1;3802;0cOn Tue, 03.02.15 14:38, Charles Devereaux (syst...@guylhem.net) wrote: > On Tue, Feb 3, 2015 at 2:29 PM, Lennart Poettering > wrote: > > > I am pretty sure signals are not a particularly good interface for > > this. We should add a proper bus API for this one day, but this kinda > > has

Re: [systemd-devel] slow systemd-networkd DHCP client on wlan0 with systemd v217

2015-02-03 Thread Charles Devereaux
On Tue, Feb 3, 2015 at 2:29 PM, Lennart Poettering wrote: > I am pretty sure signals are not a particularly good interface for > this. We should add a proper bus API for this one day, but this kinda > has to wait until kdbus is a done deal, since networkd runs in early > boot, and dbus-daemon is

Re: [systemd-devel] slow systemd-networkd DHCP client on wlan0 with systemd v217

2015-02-03 Thread Lennart Poettering
On Tue, 03.02.15 14:15, Charles Devereaux (syst...@guylhem.net) wrote: > My current solution with dhcpcd is a sleep service sending signals to > dhcpcd (give back the lease/reclaim it), something which could be extended > to systemd-networkd, with other signals for other meanings that you may not

Re: [systemd-devel] slow systemd-networkd DHCP client on wlan0 with systemd v217

2015-02-03 Thread Charles Devereaux
My current solution with dhcpcd is a sleep service sending signals to dhcpcd (give back the lease/reclaim it), something which could be extended to systemd-networkd, with other signals for other meanings that you may not want by default, like: - removing the configuration it did (which is currentl

Re: [systemd-devel] slow systemd-networkd DHCP client on wlan0 with systemd v217

2015-02-03 Thread Lennart Poettering
On Tue, 03.02.15 18:20, Patrik Flykt (patrik.fl...@linux.intel.com) wrote: > On Tue, 2015-02-03 at 11:46 +0100, Lennart Poettering wrote: > > On Mon, 02.02.15 23:12, Charles Devereaux (syst...@guylhem.net) wrote: > > > > > Another problem with systemd-networkd is that the lease is not renewed > >

Re: [systemd-devel] slow systemd-networkd DHCP client on wlan0 with systemd v217

2015-02-03 Thread Patrik Flykt
On Tue, 2015-02-03 at 11:46 +0100, Lennart Poettering wrote: > On Mon, 02.02.15 23:12, Charles Devereaux (syst...@guylhem.net) wrote: > > > Another problem with systemd-networkd is that the lease is not renewed > > after sleep. > > > > This is a basic feature, a laptop is frequently physicially m

Re: [systemd-devel] slow systemd-networkd DHCP client on wlan0 with systemd v217

2015-02-03 Thread Lennart Poettering
On Mon, 02.02.15 23:12, Charles Devereaux (syst...@guylhem.net) wrote: > Another problem with systemd-networkd is that the lease is not renewed > after sleep. > > This is a basic feature, a laptop is frequently physicially moved, which > means another DHCP lease should be acquired, but I don't se

Re: [systemd-devel] slow systemd-networkd DHCP client on wlan0 with systemd v217

2015-02-02 Thread Charles Devereaux
Another problem with systemd-networkd is that the lease is not renewed after sleep. This is a basic feature, a laptop is frequently physicially moved, which means another DHCP lease should be acquired, but I don't see how to do that. How can I make that happen? It's not clear to me, since systemd

Re: [systemd-devel] slow systemd-networkd DHCP client on wlan0 with systemd v217

2015-02-02 Thread Lennart Poettering
On Sun, 11.01.15 18:45, Charles Devereaux (syst...@guylhem.net) wrote: > What's not is the time it takes to systemd-networkd : 1 second for IPv6 is > acceptable (I'm using SLAAC with radvd on the other end), but for ipv4 it's > more like 3 seconds, plus another 3 to use the proper DNS server (!!)

[systemd-devel] slow systemd-networkd DHCP client on wlan0 with systemd v217

2015-01-11 Thread Charles Devereaux
Hello With dhcpcd5 and the following options, once wpa_supplicant is done, I have a connection within the same second if I ignore ARP. With systemd-network, it's much much slower. $ systemd-analyze blame 3.923s systemd-networkd-wait-online.service (...) I tried to measure the time ta