Slow boot

Kernels & Hardware, configuring network, installing services

Slow boot

Postby dragonball » 2019-07-27 07:04

Hi. I installed Debian Buster (testing) on my desktop. I have a few things here and there and I need some help to fix them. The biggest is my boot process. Is too slow. Takes too long until login screen (gdm3). Any help would be appreciated

Code: Select all
george@Debian:~$ uname -r

Code: Select all
george@Debian:~$ systemd-analyze
Startup finished in 15.736s (firmware) + 3.573s (loader) + 1min 32.412s (kernel) + 6.114s (userspace) = 1min 57.836s reached after 6.108s in userspace

Code: Select all
george@Debian:~$ systemd-analyze blame
          5.115s plymouth-quit-wait.service
           885ms nvidia-persistenced.service
           354ms fwupd.service
           351ms systemd-journald.service
           342ms systemd-timesyncd.service
           282ms systemd-modules-load.service
           268ms dev-nvme0n1p2.device
           184ms systemd-logind.service
           175ms upower.service
           145ms bolt.service
           131ms geoclue.service
           102ms udisks2.service
            91ms ModemManager.service
            73ms cpufreqd.service
            67ms user@117.service
            64ms accounts-daemon.service
            62ms keyboard-setup.service
            60ms systemd-udevd.service
            54ms systemd-udev-trigger.service
            49ms lm-sensors.service
            49ms systemd-fsck@dev-disk-by\x2duuid-730e2cef\x2dd37c\x2d4b1d\x2db8
            48ms NetworkManager.service
            41ms wpa_supplicant.service
            40ms systemd-fsck@dev-disk-by\x2duuid-ED9D\x2d765B.service
            38ms user@1000.service
            37ms ssh.service
            35ms rsyslog.service
            28ms apparmor.service
            25ms gdm.service
            20ms plymouth-start.service
            20ms colord.service
            19ms systemd-tmpfiles-clean.service
            18ms polkit.service
            18ms systemd-sysctl.service
            17ms networking.service
            17ms alsa-restore.service
            16ms systemd-tmpfiles-setup.service
            14ms switcheroo-control.service
            13ms boot-efi.mount
            13ms hddtemp.service
            12ms systemd-journal-flush.service
            11ms plymouth-read-write.service
            10ms systemd-sysusers.service
            10ms dev-disk-by\x2duuid-232ad5c1\x2da2f4\x2d4193\x2d9a3f\x2dec9b59d
             8ms home.mount
             8ms pppd-dns.service
             8ms systemd-user-sessions.service
             7ms systemd-tmpfiles-setup-dev.service
             7ms user-runtime-dir@1000.service
             6ms systemd-remount-fs.service
             6ms dev-mqueue.mount
             6ms user-runtime-dir@117.service
             5ms systemd-update-utmp.service
             4ms systemd-random-seed.service
             4ms systemd-update-utmp-runlevel.service
             4ms kmod-static-nodes.service
             3ms avahi-daemon.service
             3ms dev-hugepages.mount
             3ms ifupdown-pre.service
             3ms rtkit-daemon.service
             2ms console-setup.service
             2ms sys-fs-fuse-connections.mount
             1ms sys-kernel-debug.mount

Code: Select all
george@Debian:~$ inxi -F
  Host: Debian Kernel: 4.19.0-5-amd64 x86_64 bits: 64 Desktop: Gnome 3.30.2
  Distro: Debian GNU/Linux bullseye/sid
  Type: Desktop Mobo: ASUSTeK model: P10S-I Series v: Rev 1.xx
  serial: 180527654500220 UEFI: American Megatrends v: 4401 date: 03/05/2018
  Topology: Quad Core model: Intel Xeon E3-1270 v6 bits: 64 type: MT MCP
  L2 cache: 8192 KiB
  Speed: 4100 MHz max: 4200 MHz Core speeds (MHz): 1: 4177 2: 4091 3: 4064
  4: 4148 5: 4102 6: 4100 7: 4125 8: 4155
  Device-1: NVIDIA GP107 [GeForce GTX 1050 Ti] driver: nvidia v: 418.74
  Display: server: X.Org 1.20.4 driver: nvidia
  unloaded: fbdev,modesetting,nouveau,vesa resolution: 1920x1200~60Hz
  OpenGL: renderer: GeForce GTX 1050 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 418.74
  Device-1: NVIDIA GP107GL High Definition Audio driver: snd_hda_intel
  Sound Server: ALSA v: k4.19.0-5-amd64
  Device-1: Intel I210 Gigabit Network driver: igb
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: 4c:ed:fb:91:92:79
  Device-2: Intel I210 Gigabit Network driver: igb
  IF: rename3 state: up speed: 1000 Mbps duplex: full mac: 4c:ed:fb:91:92:7a
  Local Storage: total: 223.57 GiB used: 23.05 GiB (10.3%)
  ID-1: /dev/nvme0n1 vendor: Toshiba model: RC100 size: 223.57 GiB
  ID-1: / size: 27.38 GiB used: 9.35 GiB (34.1%) fs: ext4
  dev: /dev/nvme0n1p2
  ID-2: /home size: 175.38 GiB used: 13.70 GiB (7.8%) fs: ext4
  dev: /dev/nvme0n1p4
  ID-3: swap-1 size: 15.93 GiB used: 0 KiB (0.0%) fs: swap
  dev: /dev/nvme0n1p3
  System Temperatures: cpu: 50.0 C mobo: 29.8 C gpu: nvidia temp: 43 C
  Fan Speeds (RPM): cpu: 0 fan-2: 928 fan-3: 0 fan-4: 1421 fan-5: 1433
  fan-6: 0 gpu: nvidia fan: 42%
  Processes: 231 Uptime: 1h 20m Memory: 15.60 GiB used: 2.89 GiB (18.6%)
  Shell: bash inxi: 3.0.35
Posts: 33
Joined: 2014-03-27 12:37

Re: Slow boot

Postby L_V » 2019-07-27 09:05

dragonball wrote:Hi. I installed Debian Buster (testing)

Buster is STABLE now ! Testing name is Bullseye.
If you are looking for a fast boot, plymouth is probably not necessary.

systemd-analyze : 5s on SSD / with kde desktop manager / light install
Code: Select all
Startup finished in 3.454s (kernel) + 2.100s (userspace) = 5.555s reached after 2.024s in userspace

systemd-analyze blame
Code: Select all
           901ms dev-sda3.device
           314ms NetworkManager.service
           248ms user@1000.service
           241ms udisks2.service
           196ms systemd-logind.service
           150ms lm-sensors.service
           146ms systemd-fsck@dev-disk-by\x2duuid-423fd594\x2d9412\x2d4a40\x2da9c8\x2d37f40665498c.service
           137ms systemd-udev-trigger.service
           135ms systemd-fsck@dev-disk-by\x2duuid-70539b5f\x2d7144\x2d4935\x2d8ed5\x2d33e0499828eb.service
           131ms systemd-timesyncd.service
           131ms networking.service
           126ms systemd-journald.service
Posts: 1035
Joined: 2007-03-19 09:04

Re: Slow boot

Postby dragonball » 2019-07-27 10:06

I disable plymouth using this command

Code: Select all
 sudo systemctl disable plymouth-start

I also removed from grub.cfg quiet parameter and updated grub using

Code: Select all
sudo update-grub

Rebooting still have the problem. My Boot process waits over 15 sec on this point before go further

Posts: 33
Joined: 2014-03-27 12:37

Re: Slow boot

Postby L_V » 2019-07-27 10:25

" Startup finished in 15.736s (firmware) "

You need to investigate with journalctl or dmesg what happen with your firmware (one probably missing, or wrong one ?)
Posts: 1035
Joined: 2007-03-19 09:04

Re: Slow boot

Postby dragonball » 2019-07-27 10:59

This is my dmesg: but I think, I don't see something suspicious.
Also this is my journalctl: which is chaos! :P
Posts: 33
Joined: 2014-03-27 12:37

Re: Slow boot

Postby sunrat » 2019-07-27 11:20

Nobody is going to read your whole journal. Filter it to just show errors:
Code: Select all
journalctl -b -p3
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
Posts: 2751
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: Slow boot

Postby dragonball » 2019-07-27 11:26

I guess you have right. Even me, i felt tired just look at it!

Code: Select all
journalctl -b -p3
returns no error?

Code: Select all
george@Debian:~$ sudo  journalctl -b -p3
[sudo] password for george:
-- Logs begin at Sat 2019-07-27 13:50:36 EEST, end at Sat 2019-07-27 15:12:52 EEST. --
-- No entries --
Posts: 33
Joined: 2014-03-27 12:37

Re: Slow boot

Postby L_V » 2019-07-27 11:45

Concerning plymouth, a bit surprised how it seems now so easy to "disable" plymouth.
Is is really "disabled" ? Or not visible at boot...
If not "removed", Plymouth is still part of initrd.

Can you install initramfs-tools-core , and check this:
Code: Select all
lsinitramfs /initrd.img | grep -i plymouth
dpkg -l | grep plymouth

For info, I don't have any plymouth in my system, never install it.
Last edited by L_V on 2019-07-27 11:51, edited 3 times in total.
Posts: 1035
Joined: 2007-03-19 09:04

Re: Slow boot

Postby Head_on_a_Stick » 2019-07-27 11:47

dragonball wrote:My Boot process waits over 15 sec on this point before go further

Does it go any faster if you wiggle the mouse or press random keys? Could be an entropy issue. And please replace your oversized image with a link, we have forum users with limited bandwidth.

Perhaps a graphical view will give you some clues:
Code: Select all
systemd-analyze plot > boot.svg

Also your kernel seems to take far too long, are you applying any unusual kernel parameters?
Code: Select all
cat /proc/cmdline

And yes, just disabling Plymouth would cause errors from the initramfs. Removing the package is probably better (if you don't want it).
User avatar
Posts: 10321
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Slow boot

Postby dragonball » 2019-07-27 12:10

Code: Select all
george@Debian:~$ lsinitramfs /initrd.img | grep -i plymouth

Code: Select all
george@Debian:~$ dpkg -l | grep plymouth
ii  libplymouth4:amd64                    0.9.4-1.1                       amd64        graphical boot animation and logger - shared libraries
ii  plymouth                              0.9.4-1.1                       amd64        boot animation, logger and I/O multiplexer
ii  plymouth-label                        0.9.4-1.1                       amd64        boot animation, logger and I/O multiplexer - label control

Code: Select all
george@Debian:~$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.19.0-5-amd64 root=UUID=7fa1da99-1e20-40f2-a5fb-de12ceb5ede5 ro

Just remove plymouth packages?
Posts: 33
Joined: 2014-03-27 12:37

Re: Slow boot

Postby L_V » 2019-07-27 12:18

dragonball wrote:[Just remove plymouth packages?
I did not play at plymouth for years
Why do you need a splash screen for a 5s boot....
Removing plymouth is not enough... It has also to be removed from initrd
Code: Select all
update-initramfs -u

It is easier to not install plymouth than to remove it (I remember some crazy dependency problem on some distributions....).
You can try. If you cannot, just reinstall it.
Posts: 1035
Joined: 2007-03-19 09:04

Re: Slow boot

Postby dragonball » 2019-07-27 12:27

I completely removed plymouth packages and updated initramfs buts problems is still there

Code: Select all
lsinitramfs /initrd.img | grep -i plymouth
Code: Select all
dpkg -l | grep plymouth
now returns nothing
Posts: 33
Joined: 2014-03-27 12:37

Re: Slow boot

Postby L_V » 2019-07-27 12:33

Do you still have this ?
Code: Select all
$ systemd-analyze blame
          5.115s plymouth-quit-wait.service
Posts: 1035
Joined: 2007-03-19 09:04

Re: Slow boot

Postby dragonball » 2019-07-27 12:48

Not anymore. So I guess is not plymouth the problem?

Code: Select all
george@Debian:~$ systemd-analyze blame
           878ms nvidia-persistenced.service
           395ms systemd-timesyncd.service
           326ms systemd-modules-load.service
           322ms systemd-journald.service
           283ms fwupd.service
           248ms dev-nvme0n1p2.device
           198ms ModemManager.service
           187ms upower.service
           166ms systemd-logind.service
           109ms bolt.service
           108ms geoclue.service
            87ms udisks2.service
            72ms user@117.service
            62ms accounts-daemon.service
            58ms systemd-udevd.service
            56ms systemd-fsck@dev-disk-by\x2duuid-730e2cef\x2dd37c\x2d4b1d\x2db8
            56ms boot-efi.mount
            52ms keyboard-setup.service
            52ms cpufreqd.service
            48ms NetworkManager.service
            47ms systemd-udev-trigger.service
            40ms user@1000.service
            37ms wpa_supplicant.service
            37ms apparmor.service
            31ms systemd-journal-flush.service
            28ms ssh.service
            26ms lm-sensors.service
            24ms systemd-fsck@dev-disk-by\x2duuid-ED9D\x2d765B.service
            23ms rsyslog.service
            22ms dev-disk-by\x2duuid-232ad5c1\x2da2f4\x2d4193\x2d9a3f\x2dec9b59d
            22ms pppd-dns.service
            22ms gdm.service
            21ms home.mount
            19ms systemd-tmpfiles-setup.service
            19ms colord.service
            18ms systemd-tmpfiles-clean.service
            14ms polkit.service
            14ms dev-hugepages.mount
            14ms networking.service
            14ms switcheroo-control.service
            13ms dev-mqueue.mount
            11ms hddtemp.service
            11ms systemd-remount-fs.service
             9ms systemd-user-sessions.service
             9ms systemd-sysctl.service
             8ms ifupdown-pre.service
             8ms sys-kernel-debug.mount
             8ms user-runtime-dir@1000.service
             8ms systemd-sysusers.service
             7ms systemd-tmpfiles-setup-dev.service
             7ms user-runtime-dir@117.service
             6ms kmod-static-nodes.service
             6ms systemd-update-utmp.service
             5ms systemd-random-seed.service
             4ms systemd-update-utmp-runlevel.service
             4ms alsa-restore.service
             3ms console-setup.service
             3ms avahi-daemon.service
             2ms rtkit-daemon.service
             2ms sys-fs-fuse-connections.mount
Posts: 33
Joined: 2014-03-27 12:37

Re: Slow boot

Postby L_V » 2019-07-27 12:52

Then some progress no ? Be positive !
Now... Nvidia. I'm not familiar with, but hope you install the right driver.
Issues with Debian Buster and nVidia drivers

+ look at your systemd-service, and compare with mine (see above).
Posts: 1035
Joined: 2007-03-19 09:04


Return to System configuration

Who is online

Users browsing this forum: No registered users and 15 guests