You are not logged in.

#1 2013-04-27 01:37:44

KingofKIngs
Member
Registered: 2013-04-03
Posts: 20

slow bootup

When booting both my laptop and desktop, it begins normally, then just before the login prompt appears for tty1, netcfg starts on my desktop and another manager starts on my laptop. I then get a message "a start job is running for [networkdevice]" which lasts for a full minute. On my desktop it starts both my connection (enp5s0) and the non existent (eth0). It doesn't call a secondary (enp6s0) which isn't used. I have no issue with that but it seems strange. On my laptop it calls both eth0 and enp5s0 as well, but neither are used, only a wireless connection. Any tips to fix this would be great and any more info needed to be provided will be.



Seconday issue with laptop (this may warrant a second thread). When using startx to start openbox, the autostart things in ~/.config/openbox/autostart fail to start. They start fine on the desktop. They used to work fine on the laptop, I am unsure of what changed. Both systems start openbox-session.

Offline

#2 2013-04-27 02:13:38

HungGarTiger
Member
From: nz/auckland/
Registered: 2012-06-27
Posts: 187

Re: slow bootup

Sounds like there are some conflicting profiles and/or services, which can you show us what you are loading and which services are enabled?


"No sympathy for the devil. If you buy the ticket, take the ride."
- Hunter S. Thompson

Offline

#3 2013-04-27 10:03:35

KingofKIngs
Member
Registered: 2013-04-03
Posts: 20

Re: slow bootup

What command do I need to run to do that?

Offline

#4 2013-04-27 10:06:56

mynis01
Member
Registered: 2011-04-29
Posts: 72

Re: slow bootup

Give us the output of

systemctl-analyze blame

if you could please.

Offline

#5 2013-04-28 14:39:53

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: slow bootup

(To avoid confusion, that should be systemd-analyze blame.)


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#6 2013-04-28 16:13:24

KingofKIngs
Member
Registered: 2013-04-03
Posts: 20

Re: slow bootup

Desktop:
The fsck  at the top is for a thumb drive.
7.072s systemd-fsck@dev-disk-by\x2duuid-d0bc0c19\x2d1e4f\x2d4e2c\x2d8ad6\x2d5b8838e6fedb.service
          3.803s netcfg@mynetwork.service
          1.331s polkit.service
           756ms teamviewerd.service
           609ms systemd-binfmt.service
           543ms udisks2.service
           505ms systemd-udev-trigger.service
           490ms sys-kernel-config.mount
           489ms sys-kernel-debug.mount
           482ms dev-hugepages.mount
           481ms dev-mqueue.mount
           478ms mnt-backup.mount
           456ms systemd-remount-fs.service
           452ms proc-sys-fs-binfmt_misc.mount
           450ms tmp.mount
           416ms systemd-logind.service
           366ms ntpd.service
           310ms systemd-udevd.service
           230ms systemd-sysctl.service
           229ms systemd-static-nodes.service
           211ms colord.service
           210ms systemd-tmpfiles-clean.service
           193ms systemd-vconsole-setup.service
           179ms systemd-journal-flush.service
           167ms dev-disk-by\x2duuid-6279985c\x2d10f9\x2d49be\x2d930e\x2da25885c0463e.swap
           103ms gpm.service
            99ms systemd-user-sessions.service
            89ms alsa-restore.service
            65ms home.mount
            43ms systemd-random-seed-load.service
            30ms systemd-tmpfiles-setup.service
           860us sys-fs-fuse-connections.mount


Laptop:

14.363s dhcpcd@wlp3s0.service
          7.953s systemd-suspend.service
          2.850s wicd.service
          2.575s nmbd.service
          2.156s dkms.service
          1.173s upower.service
          1.169s systemd-logind.service
           969ms teamviewerd.service
           566ms systemd-binfmt.service
           561ms polkit.service
           530ms smbd.service
           333ms dev-hugepages.mount
           329ms systemd-vconsole-setup.service
           316ms dev-mqueue.mount
           306ms mnt-backup.mount
           286ms systemd-sysctl.service
           263ms systemd-tmpfiles-setup.service
           223ms sys-kernel-debug.mount
           220ms alsa-restore.service
           196ms systemd-udev-trigger.service
           176ms sys-kernel-config.mount
           153ms tlp.service
           149ms systemd-remount-fs.service
           130ms gpm.service
           126ms systemd-random-seed-load.service
           120ms tmp.mount
           111ms udisks2.service
            80ms systemd-udevd.service
            79ms ntpd.service
            69ms systemd-tmpfiles-clean.service
            55ms systemd-journal-flush.service
            43ms systemd-user-sessions.service
            38ms rtkit-daemon.service
            19ms proc-sys-fs-binfmt_misc.mount
             2ms sys-fs-fuse-connections.mount

Offline

#7 2013-04-30 21:26:53

KingofKIngs
Member
Registered: 2013-04-03
Posts: 20

Re: slow bootup

Not sure if I should edit for this or what, but installing netctl on my desktop and disabling dhcpcd and netcfg have lowered my boot time to 18 seconds. We shall see if I can lower this back down to the 7 seconds I can get off a fresh install (or less). Thanks for the help. I'll update if the same fix fixes the laptop.

Offline

#8 2013-04-30 22:15:10

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

Re: slow bootup

Your laptop is running both dhcpcd@.service and wicd.  That couldn't be very good...

Offline

#9 2013-05-01 01:15:54

KingofKIngs
Member
Registered: 2013-04-03
Posts: 20

Re: slow bootup

WonderWoofy wrote:

Your laptop is running both dhcpcd@.service and wicd.  That couldn't be very good...

disabling dhcpcd doesn't seem to help on the laptop. My desktop now boots in 11 seconds.

[edit]
After disabling other services, boot up time seems lower, but that is only because the login prompt starts before all the userspace stuff finishes booting. According to systemd-analyze: Startup finished in 4.257s (kernel) + 1min 32.615s (userspace) = 1min 36.872s. According to it with blame,

6.336s wicd.service
          4.316s dkms.service
          3.214s upower.service
          3.207s systemd-logind.service
          2.243s smbd.service
          1.335s polkit.service
           891ms teamviewerd.service
           633ms systemd-binfmt.service
           460ms alsa-restore.service
           456ms tlp.service
           383ms dev-hugepages.mount
           368ms systemd-vconsole-setup.service
           361ms dev-mqueue.mount
           329ms systemd-sysctl.service
           313ms systemd-tmpfiles-setup.service
           246ms sys-kernel-debug.mount
           205ms sys-kernel-config.mount
           196ms systemd-udev-trigger.service
           150ms systemd-remount-fs.service
           150ms systemd-random-seed-load.service
           137ms gpm.service
           119ms systemd-journal-flush.service
           107ms systemd-udevd.service
           106ms tmp.mount
           100ms ntpd.service
            50ms systemd-user-sessions.service
            39ms rtkit-daemon.service
            19ms proc-sys-fs-binfmt_misc.mount

Also, openbox autostart now behaves properly. (Gnome 3 still doesn't start, but I decided that warrants it's own thread: https://bbs.archlinux.org/viewtopic.php?id=162445)

I'll try to disable wicd later and have it start with my window manager.



Here are the stats for the desktop for anyone curious:

Startup finished in 2.755s (kernel) + 8.868s (userspace) = 11.624s

 2.667s netctl@ethernet\x2dstatic.service
          2.027s home.mount
          1.210s systemd-readahead-done.service
          1.135s colord.service
           897ms systemd-static-nodes.service
           880ms systemd-fsck@dev-disk-by\x2duuid-d0bc0c19\x2d1e4f\x2d4e2c\x2d8ad6\x2d5b8838e6fedb.service
           857ms sys-kernel-debug.mount
           856ms dev-hugepages.mount
           856ms dev-mqueue.mount
           699ms systemd-udev-trigger.service
           682ms udisks2.service
           675ms tmp.mount
           665ms systemd-remount-fs.service
           500ms systemd-vconsole-setup.service
           484ms sys-kernel-config.mount
           471ms systemd-binfmt.service
           391ms polkit.service
           239ms systemd-sysctl.service
           209ms systemd-readahead-collect.service
           209ms systemd-readahead-replay.service
           180ms ntpd.service
           135ms proc-sys-fs-binfmt_misc.mount
            76ms alsa-restore.service
            76ms systemd-tmpfiles-setup.service
            62ms systemd-tmpfiles-clean.service
            40ms systemd-udevd.service
            36ms systemd-logind.service
            30ms systemd-journal-flush.service
            27ms gpm.service
            19ms systemd-random-seed-load.service
            17ms dev-disk-by\x2duuid-6279985c\x2d10f9\x2d49be\x2d930e\x2da25885c0463e.swap
             9ms systemd-user-sessions.service
             8ms teamviewerd.service
           936us sys-fs-fuse-connections.mount

Thanks for all the help

Last edited by KingofKIngs (2013-05-01 01:35:24)

Offline

Board footer

Powered by FluxBB