FS#35508 - [netctl] static ip setup takes too long
Attached to Project:
Arch Linux
Opened by Far Wayer (farwayer) - Monday, 27 May 2013, 19:21 GMT
Last edited by Jouke Witteveen (jouke) - Monday, 17 June 2013, 08:54 GMT
Opened by Far Wayer (farwayer) - Monday, 27 May 2013, 19:21 GMT
Last edited by Jouke Witteveen (jouke) - Monday, 17 June 2013, 08:54 GMT
|
Details
Description:
Setting static IP address with netctl is too slow. Setting IP with systemd netctl unit take about 4s. By simple systemd network unit (https://wiki.archlinux.org/index.php/Systemd/Services#Static_Ethernet_network) with several 'ip *' commands is ~150ms. Additional info: core/netctl 1.0-1 linux 3.9.3-1 RLT8111/8168 ethernet card |
This task depends upon
Closed by Jouke Witteveen (jouke)
Monday, 17 June 2013, 08:54 GMT
Reason for closing: Not a bug
Additional comments about closing: You have to wait for a carrier one way or another. If netctl waits for it, you'll see the extra time in your blame analysis. Otherwise, you just have to wait after setting an IP.
Monday, 17 June 2013, 08:54 GMT
Reason for closing: Not a bug
Additional comments about closing: You have to wait for a carrier one way or another. If netctl waits for it, you'll see the extra time in your blame analysis. Otherwise, you just have to wait after setting an IP.
If it is useful I am using only 'base' hook (not udev etc.) for generating initcpio.
Let me know if can help anything else (some logs etc.).
Without:
% systemd-analyze blame
3.488s netctl@static.service
With:
% systemd-analyze blame
3.318s netctl@static.service
Without:
% systemd-analyze blame
3.488s netctl@static.service
With:
% systemd-analyze blame
473 ms netctl@static.service
If you want to see fast times in your systemd blame, you can use the SkipNoCarrier option, but your network wont be available any sooner than without it.