Slow boot

Kernels & Hardware, configuring network, installing services

Re: Slow boot

Postby dragonball » 2019-07-27 16:13

Seems to work right on me

Code: Select all
george@Debian:~$  glxinfo | grep renderer
OpenGL renderer string: GeForce GTX 1050 Ti/PCIe/SSE2


Code: Select all
george@Debian:~$ inxi -G
Graphics:
  Device-1: NVIDIA GP107 [GeForce GTX 1050 Ti] driver: nvidia v: 418.74
  Display: x11 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
dragonball
 
Posts: 33
Joined: 2014-03-27 12:37

Re: Slow boot

Postby L_V » 2019-07-27 17:58

And now, what says systemd-analyze ?
L_V
 
Posts: 1171
Joined: 2007-03-19 09:04

Re: Slow boot

Postby dragonball » 2019-07-27 18:21

Code: Select all
Startup finished in 15.737s (firmware) + 3.225s (loader) + 1min 32.044s (kernel) + 5.365s (userspace) = 1min 56.373s
graphical.target reached after 1.818s in userspace
dragonball
 
Posts: 33
Joined: 2014-03-27 12:37

Re: Slow boot

Postby L_V » 2019-07-27 21:21

And this:
Code: Select all
systemd-analyze critical-chain

graphical.target @2.007s
└─multi-user.target @2.006s
  └─ssh.service @1.903s +102ms
    └─network.target @1.897s
      └─NetworkManager.service @1.582s +314ms
        └─dbus.service @1.576s
          └─basic.target @1.563s
            └─sockets.target @1.563s
              └─dbus.socket @1.563s
                └─sysinit.target @1.563s
                  └─systemd-timesyncd.service @1.405s +157ms
                    └─systemd-tmpfiles-setup.service @1.350s +43ms
                      └─local-fs.target @1.346s
                        └─home.mount @1.312s +33ms

+ is this returning something
Code: Select all
dmesg | grep SSS
(as root)
+ may be systemd-bootchart can add value to the analysis
http://www.bootchart.org/images/bootchart.png

or this
Code: Select all
systemd-analyze plot > plot.svg
L_V
 
Posts: 1171
Joined: 2007-03-19 09:04

Re: Slow boot

Postby dragonball » 2019-07-28 07:24

Good Morning. Today I made a clean install. I kept Debian stable this time. I removed plymouth and I checked that is really removed. I also noticed that the same behavior exist with nouveau driver, before even install nvidia drivers.

My systemd-analyze doesn't change a lot :P

Code: Select all
Startup finished in 15.747s (firmware) + 5.497s (loader) + 1min 32.002s (kernel) + 4.961s (userspace) = 1min 58.208s
graphical.target reached after 4.806s in userspace


Code: Select all
george@Debian:~$ systemd-analyze critical-chain
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.

graphical.target @4.806s
└─multi-user.target @4.806s
  └─hddtemp.service @4.800s +6ms
    └─network-online.target @4.799s
      └─NetworkManager-wait-online.service @815ms +3.983s
        └─NetworkManager.service @778ms +36ms
          └─dbus.service @776ms
            └─basic.target @766ms
              └─sockets.target @766ms
                └─dbus.socket @765ms
                  └─sysinit.target @764ms
                    └─systemd-timesyncd.service @494ms +269ms
                      └─systemd-tmpfiles-setup.service @477ms +15ms
                        └─local-fs.target @476ms
                          └─run-user-117.mount @917ms
                            └─swap.target @429ms
                              └─dev-disk-by\x2duuid-b7a13c9a\x2d25f6\x2d4dc7\x2d900e\x2d8ac89e98578a.swap @410ms +18ms
                                └─dev-disk-by\x2duuid-b7a13c9a\x2d25f6\x2d4dc7\x2d900e\x2d8ac89e98578a.device @369ms


And
Code: Select all
sudo dmesg | grep SSS
returns nothing

Also do I really need hddtemp.service on nvme ssd disk?
dragonball
 
Posts: 33
Joined: 2014-03-27 12:37

Re: Slow boot

Postby sunrat » 2019-07-28 12:27

If it's still taking over 1.5 minutes to boot, I reckon something is weird with your hardware. Your dmesg shows it stalling for a minute while loading USB devices. Remove them or swap them for different ones.
“ 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
sunrat
 
Posts: 2920
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: Slow boot

Postby dragonball » 2019-07-28 12:56

I came from Void Linux. I didn't ever had any problem with boot. Actually was very fast. And I didn't touch anything on my hardware or my uefi settings. Strange because all my usb devices are my mouse, my keyboard and an internal usb hub which connects my cases usb ports. (This is a patent because i use mini itx with small case and mobo doesn't have pins for cases usb ports but has internal usb!)
dragonball
 
Posts: 33
Joined: 2014-03-27 12:37

Re: Slow boot

Postby L_V » 2019-07-28 12:59

1 - Did you analyze with systemd-bootchart ? (Debian package)

2 - plot.svg ? (see my previous message)
L_V
 
Posts: 1171
Joined: 2007-03-19 09:04

Re: Slow boot

Postby dragonball » 2019-07-28 13:20

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

Re: Slow boot

Postby L_V » 2019-07-28 13:38

.... firmware ... : to be clarified.
Bootloader ? Which one ? Did you add any boot options ?
+
Code: Select all
lscpu | grep name
uname -a
+ for test, can you try to add single as kernel option in loader to see what happen ?
L_V
 
Posts: 1171
Joined: 2007-03-19 09:04

Re: Slow boot

Postby dragonball » 2019-07-28 14:21

Code: Select all
george@Debian:~$ lscpu | grep name
Model name:          Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz
george@Debian:~$ uname -a
Linux Debian 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5+deb10u1 (2019-07-19) x86_64 GNU/Linux


The default from the install. I didn't change anything. All my settings on my motherboard are in UEFI mode.

Also I add single parameter after quiet and I booted. Took the same time but dropped me in rescue mode.
dragonball
 
Posts: 33
Joined: 2014-03-27 12:37

Re: Slow boot

Postby L_V » 2019-07-28 14:28

dragonball wrote:Also I add single parameter after quiet and I booted..

Without quiet !! (forgot to tell) : you will see what really happen. (may be this is the "rescue mode" / I don't use default loader to confirm)
Is intel-microcode installed ?
L_V
 
Posts: 1171
Joined: 2007-03-19 09:04

Re: Slow boot

Postby dragonball » 2019-07-28 14:36

Exactly the same as the photo in the first page. Waiting on 4 ports detected. Also intel-microcode is installed

Code: Select all
george@Debian:~$ dpkg -l | grep intel-microcode
ii  intel-microcode                       3.20190618.1                    amd64        Processor microcode firmware for Intel CPUs
dragonball
 
Posts: 33
Joined: 2014-03-27 12:37

Re: Slow boot

Postby L_V » 2019-07-28 14:37

dragonball wrote:Waiting on 4 ports detected.
What are these ports ?
Code: Select all
lsusb
L_V
 
Posts: 1171
Joined: 2007-03-19 09:04

Re: Slow boot

Postby dragonball » 2019-07-28 14:41

Code: Select all
george@Debian:~$ lsusb
Bus 002 Device 002: ID 2109:0812 VIA Labs, Inc. VL812 Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 2109:2812 VIA Labs, Inc. VL812 Hub
Bus 001 Device 003: ID 258a:001f 
Bus 001 Device 005: ID 045e:0084 Microsoft Corp. Basic Optical Mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Bus 001 Device 003: ID 258a:001f ? Seems strange. Here I don't see my keyboard listed. Kernel identifies it as SINO

Code: Select all
george@Debian:~$ sudo dmesg | grep SINO
[sudo] password for george:
[    2.143151] usb 1-4: Manufacturer: SINO WEALTH
[    2.146906] input: SINO WEALTH Mechanical Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/0003:258A:001F.0002/input/input1
[    2.205471] hid-generic 0003:258A:001F.0002: input,hidraw1: USB HID v1.10 Keyboard [SINO WEALTH Mechanical Keyboard] on usb-0000:00:14.0-4/input0
[    2.209304] input: SINO WEALTH Mechanical Keyboard Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.1/0003:258A:001F.0003/input/input2
[    2.269332] input: SINO WEALTH Mechanical Keyboard Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.1/0003:258A:001F.0003/input/input3
[    2.271376] hid-generic 0003:258A:001F.0003: input,hiddev0,hidraw2: USB HID v1.10 Keyboard [SINO WEALTH Mechanical Keyboard] on usb-0000:00:14.0-4/input1


Also I rebooted without mouse and keyboard with the same result
Last edited by dragonball on 2019-07-28 14:54, edited 1 time in total.
dragonball
 
Posts: 33
Joined: 2014-03-27 12:37

PreviousNext

Return to System configuration

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable