You are not logged in.

#1 2012-09-03 14:58:46

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

[SOLVED] Netcfg@.service very slow...

Hi!
I was wondering why is netcfg@.service taking so long to load:

systemd-analyze blame
  4206ms netcfg@mynetwork.service
  2220ms psd.service
   685ms systemd-tmpfiles-setup.service
   626ms systemd-vconsole-setup.service
   252ms systemd-udevd.service
   169ms systemd-remount-fs.service
    65ms systemd-logind.service
    35ms var-log.mount
    29ms systemd-sysctl.service
    22ms systemd-udev-trigger.service
    12ms tmp.mount
     5ms systemd-user-sessions.service
     1ms sys-fs-fuse-connections.mount

I managed to get rid of consolekit, and i use a psd.timer that makes psd start 20sec from startup. So netcfg is the only thing is slowing my boot process.
The strangest thing is that networkmanager.service takes only 0.7s to load, and it seems very weird to me that network manager is faster then netcfg.
Here it is my "mynetwork" setup:

CONNECTION='wireless'
DESCRIPTION='A simple WPA encrypted wireless connection'
INTERFACE='wlan0'
SECURITY='wpa'

ESSID='my ESSID'
## Uncomment if the supplied ESSID is hexadecimal
#ESSID_TYPE='hex'
KEY='********************'

IP='dhcp' 

# Uncomment this if your ssid is hidden
#HIDDEN=yes

I run

systemctl enable netcfg@mynetwork.service

Network is working, so it's not a bug somewhere in netcfg, it is only SLOW. Really slow.
Thanks for any help!

Last edited by nierro (2012-09-03 15:46:28)

Offline

#2 2012-09-03 15:03:39

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Netcfg@.service very slow...

I use net-auto-wireless.service and last boot it reports 550ms... still the slowest thing in the boot, but certainly nothing noticeable.  Is 4.2secs really slow?  I think it may just be kind of nitpicking since with systemd's parallelization it definitely would not boot four seconds faster if you did not enable it.

Offline

#3 2012-09-03 15:16:53

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: [SOLVED] Netcfg@.service very slow...

Is 4.2secs really slow?  I think it may just be kind of nitpicking since with systemd's parallelization it definitely would not boot four seconds faster if you did not enable it.

Oh i know...but networkmanager was really faster...is there a reason?
EDIT: with networkmanager, the overall

systemd-analyze

was 10s, while now is

systemd-analyze
Startup finished in 6769ms (kernel) + 7293ms (userspace) = 14063ms

Last edited by nierro (2012-09-03 15:19:40)

Offline

#4 2012-09-03 15:36:01

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: [SOLVED] Netcfg@.service very slow...

NetworkManager.service is faster because it doesn't actually wait for the network to be up (NetworkManager-wait-online.service does).

Offline

#5 2012-09-03 15:38:22

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: [SOLVED] Netcfg@.service very slow...

Uhm, well this is a big revelation, thank you!
Ok, solved then wink

Offline

Board footer

Powered by FluxBB