You are not logged in.

#1 2014-04-03 05:45:31

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Improve boot times

Am looking at getting my laptop booting a little quicker

[mrgreen@arch ~]$ systemd-analyze blame
         20.508s netctl@wlp2s0\x2dTALKTALK\x2d543120.service
           916ms systemd-fsck@dev-sda6.service
           857ms systemd-vconsole-setup.service
           732ms systemd-backlight@backlight:acpi_video0.service
           719ms systemd-rfkill@rfkill1.service
           642ms systemd-modules-load.service
           613ms alsa-restore.service
           600ms systemd-tmpfiles-setup-dev.service
           598ms systemd-rfkill@rfkill0.service
           576ms systemd-logind.service
           574ms systemd-remount-fs.service
           525ms tmp.mount
           481ms dev-hugepages.mount
           479ms sys-kernel-debug.mount
           477ms dev-mqueue.mount
           457ms home.mount
           382ms systemd-rfkill@rfkill2.service
           322ms systemd-sysctl.service
           298ms systemd-udev-trigger.service
           196ms systemd-update-utmp.service
           160ms systemd-user-sessions.service
           153ms systemd-udevd.service
            83ms systemd-journal-flush.service
            65ms systemd-random-seed.service
            59ms user@1000.service
            48ms systemd-tmpfiles-setup.service
            44ms kmod-static-nodes.service
            21ms systemd-tmpfiles-clean.service
            13ms sys-kernel-config.mount

rfkill is really annoying, and need to sort netctl. Did try connman but could not get wifi to connect (user error more likely)

[mrgreen@arch ~]$ systemctl --type=service --all
  UNIT                                            LOAD      ACTIVE   SUB     DESCRIPTION
  alsa-restore.service                            loaded    inactive dead    Restore Sound Card State
  alsa-state.service                              loaded    inactive dead    Manage Sound Card State (restore and store)
  alsa-store.service                              loaded    inactive dead    Store Sound Card State
● auditd.service                                  not-found inactive dead    auditd.service
  dbus.service                                    loaded    active   running D-Bus System Message Bus
● display-manager.service                         not-found inactive dead    display-manager.service
  dmeventd.service                                loaded    inactive dead    Device-mapper event daemon
  emergency.service                               loaded    inactive dead    Emergency Shell
  getty@tty1.service                              loaded    active   running Getty on tty1
  kmod-static-nodes.service                       loaded    active   exited  Create list of required static device nodes for the current kernel
  lvmetad.service                                 loaded    inactive dead    LVM2 metadata daemon
  mkinitcpio-generate-shutdown-ramfs.service      loaded    inactive dead    Generate shutdown-ramfs
  mpd.service                                     loaded    active   running Music Player Daemon
  netctl.service                                  loaded    inactive dead    (Re)store the netctl profile state
  netctl@wlp2s0\x2dTALKTALK\x2d543120.service     loaded    active   exited  Automatically generated profile by wifi-menu
● plymouth-quit-wait.service                      not-found inactive dead    plymouth-quit-wait.service
● plymouth-start.service                          not-found inactive dead    plymouth-start.service
  rescue.service                                  loaded    inactive dead    Rescue Shell
● syslog.service                                  not-found inactive dead    syslog.service
  systemd-ask-password-console.service            loaded    inactive dead    Dispatch Password Requests to Console
  systemd-ask-password-wall.service               loaded    inactive dead    Forward Password Requests to Wall
  systemd-backlight@backlight:acpi_video0.service loaded    active   exited  Load/Save Screen Backlight Brightness of backlight:acpi_video0
  systemd-binfmt.service                          loaded    inactive dead    Set Up Additional Binary Formats
  systemd-fsck-root.service                       loaded    inactive dead    File System Check on Root Device
  systemd-fsck@dev-sda6.service                   loaded    active   exited  File System Check on /dev/sda6
  systemd-initctl.service                         loaded    inactive dead    /dev/initctl Compatibility Daemon
  systemd-journal-flush.service                   loaded    inactive dead    Trigger Flushing of Journal to Persistent Storage
  systemd-journald.service                        loaded    active   running Journal Service
  systemd-logind.service                          loaded    active   running Login Service
  systemd-modules-load.service                    loaded    active   exited  Load Kernel Modules
  systemd-random-seed.service                     loaded    active   exited  Load/Save Random Seed
  systemd-readahead-collect.service               loaded    inactive dead    Collect Read-Ahead Data
  systemd-readahead-done.service                  loaded    inactive dead    Stop Read-Ahead Data Collection
  systemd-readahead-replay.service                loaded    inactive dead    Replay Read-Ahead Data
  systemd-remount-fs.service                      loaded    active   exited  Remount Root and Kernel File Systems
  systemd-rfkill@rfkill0.service                  loaded    active   exited  Load/Save RF Kill Switch Status of rfkill0
  systemd-rfkill@rfkill1.service                  loaded    active   exited  Load/Save RF Kill Switch Status of rfkill1
  systemd-rfkill@rfkill2.service                  loaded    active   exited  Load/Save RF Kill Switch Status of rfkill2
  systemd-shutdownd.service                       loaded    inactive dead    Delayed Shutdown Service
  systemd-sysctl.service                          loaded    active   exited  Apply Kernel Variables
  systemd-tmpfiles-clean.service                  loaded    inactive dead    Cleanup of Temporary Directories
  systemd-tmpfiles-setup-dev.service              loaded    active   exited  Create Static Device Nodes in /dev
  systemd-tmpfiles-setup.service                  loaded    active   exited  Create Volatile Files and Directories
  systemd-udev-trigger.service                    loaded    active   exited  udev Coldplug all Devices
  systemd-udevd.service                           loaded    active   running udev Kernel Device Manager
  systemd-update-utmp.service                     loaded    active   exited  Update UTMP about System Boot/Shutdown
  systemd-user-sessions.service                   loaded    active   exited  Permit User Sessions
  systemd-vconsole-setup.service                  loaded    active   exited  Setup Virtual Console
  user@1000.service                               loaded    active   running User Manager for UID 1000

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

49 loaded units listed.
To show all installed unit files use 'systemctl list-unit-files'.

Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#2 2014-04-03 11:12:26

pablokal
Administrator
From: Nijmegen, Holland
Registered: 2010-10-12
Posts: 3,634
Website

Re: Improve boot times

can't you try
5.501s NetworkManager.service ?


Getting your questions answered here at ArchBang Forums
Please! Always give hardware info, if there is a chance that 's relevant: #lspci -vnn
On Arch(bang) and Openbox: http://stillstup.blogspot.com/

Offline

#3 2014-04-03 11:12:43

scjet
Member
From: Canada
Registered: 2010-12-01
Posts: 1,468

Re: Improve boot times

systemd-analyze blame 
          2.341s NetworkManager.service
          1.361s systemd-vconsole-setup.service
          1.330s systemd-modules-load.service
           580ms systemd-tmpfiles-setup-dev.service
           542ms systemd-remount-fs.service
           420ms alsa-restore.service
           415ms catalyst-hook.service
           367ms systemd-tmpfiles-setup.service
           326ms dev-hugepages.mount
           325ms dev-mqueue.mount
           315ms systemd-sysctl.service
           300ms kmod-static-nodes.service
           299ms systemd-udev-trigger.service
           299ms systemd-backlight@backlight:acpi_video0.service
           298ms systemd-backlight@backlight:acpi_video1.service
           272ms polkit.service
           259ms sys-kernel-debug.mount
           211ms systemd-logind.service
           167ms systemd-user-sessions.service
           155ms dev-disk-by\x2duuid-4eb6ecd5\x2d97e0\x2d4116\x2dbb99\x2daa905061300a.swap
           125ms wpa_supplicant.service
           122ms systemd-random-seed.service
           114ms systemd-update-utmp.service
            96ms systemd-udevd.service
            84ms user@1000.service
            68ms systemd-journal-flush.service
            58ms systemd-hostnamed.service
            51ms tmp.mount
            42ms systemd-tmpfiles-clean.service
            34ms systemd-rfkill@rfkill0.service
             3ms sys-kernel-config.mount

running latest default archbang-x64 installation...
but note, the above is not "Live" boot, its just a post-installation reboot on my Laptop, so jus ignore it.

I noticed lxdm seems a tad bit sluggish compared to SliM, but it's fine, and everything else is ok.
your netctl seems rather long. and rfkill, -do we really need it ?

Last edited by scjet (2014-04-03 11:17:36)

Offline

#4 2014-04-03 11:25:28

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Improve boot times

Switched too netctl as I did not need network manager or applet since gone over too connman. Much faster.

Not sure yet what all the rfkill stuff is... Still trying to rid systemctl of unwanted services ... Plymouth for one.

Ldxm is supposed to be more systemd and arch friendly we shall see. If you do not use it or want it remove as you see fit.


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#5 2014-04-03 15:02:08

scjet
Member
From: Canada
Registered: 2010-12-01
Posts: 1,468

Re: Improve boot times

I thought "Plymouth" was gone dodo.
Even Chrysler, in the US, has stopped making "Plymouth's". since 2002.
wink

Last edited by scjet (2014-04-03 15:03:06)

Offline

#6 2014-04-04 02:06:55

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Improve boot times

Got no idea why it is there, pacman -Qo does not shed any light on it. All I have found (or told) was to mask it.

systemctl mask <foo>.service

it will still show up but I guess will not load.


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#7 2014-04-04 04:23:58

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Improve boot times

Bug closed in 2012

https://bugs.archlinux.org/task/31031

Hoping oliver can tell me where I can find plymouth so I can delete it!


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#8 2014-04-04 06:56:04

oliver
Administrator
Registered: 2010-11-04
Posts: 2,209

Re: Improve boot times

it's in a few places... such as getty@tty1.service

getty@tty1.service                              loaded    active   running Getty on tty1

For example,

# cat getty@.service 
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

[Unit]
Description=Getty on %I
Documentation=man:agetty(8) man:systemd-getty-generator(8)
Documentation=http://0pointer.de/blog/projects/serial-console.html
After=systemd-user-sessions.service plymouth-quit-wait.service

Why is another story.

I guess you could edit the service file but any updates will bring it back.  IMO, fight your real battles :-)

Offline

#9 2014-04-04 08:31:04

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Improve boot times

When I am not saving the planet, like to look for issues in systemd.

Now will grep the whole system :-)... Wonder if I can filter out non text files with find?


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#10 2014-04-05 06:54:13

oliver
Administrator
Registered: 2010-11-04
Posts: 2,209

Re: Improve boot times

This will just find ASCII files

find . -type f -exec file {} + | grep ASCII | awk -F':' '{print $1}'

It *will* bork on any files with a : in the name but you can get around that by removing the awk part.  You'll just see ASCII after each file instead

If you want to search the whole file-system for files with plymouth, I think your best bet is something like this:

find . -type f -exec grep -li plymouth {} +

You can put multiple execs into find but it's a logical OR, not AND

You might be able to get funky with exec'ing something like $(multiple commands #1; multiple command #2; etc) but I can't say I've tried it

Offline

#11 2014-04-05 10:50:58

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Improve boot times

Am going to try to remove Plymouth from files... But to be safe I will use a virtual machine to test.

I was piping find into grep but that looks better, multiple commands I would try and run a function. Although was thinking of sed to delete them....


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#12 2014-04-07 04:10:57

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Improve boot times

Have finally managed to remove plymouth. Here is a list of suspect files

/lib/systemd/system/rescue.service
/lib/systemd/system/container-getty@.service
/lib/systemd/system/systemd-ask-password-console.path # changed plymouth-start
/lib/systemd/system/getty@.service
/lib/systemd/system/systemd-ask-password-wall.service # ? remove rogue calls
/lib/systemd/system/systemd-ask-password-console.service # ignore
/lib/systemd/system/serial-getty@.service
/lib/systemd/system/console-getty.service
/lib/systemd/system/emergency.service # calls /bin/plymouth quit
/lib/systemd/system/console-shell.service

Cannot find anything that relates too syslog at all, might look at jounrnalctl see if its running (correctly)


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

Board footer

Powered by FluxBB