~40 sec boot time on fast SSD
~40 sec boot time on fast SSD
It takes about 40 seconds to boot to the login, half of which comes before the CentOS loading bar, and includes things such as "Warning: AMD Processor - this hardware has not undergone upstream testing" (suggests to consult FAQ on wiki which doesn't say anything relevant I could find) and "fast TBC calibration failed", among other things. Not sure how to get the text it outputs here, it only appears on screen for a very short time, I had to take a picture. How can I troubleshoot?
CPU is Ryzen Threadripper 1900X.
EDIT: and the mobo is an ASRock Fatal1ty X399.
CPU is Ryzen Threadripper 1900X.
EDIT: and the mobo is an ASRock Fatal1ty X399.
Last edited by yaomtc on 2018/09/15 00:18:40, edited 1 time in total.
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: ~40 sec boot time on fast SSD
You can create a graphic whic you can analyze in a browser .
Just run
And then open the file with a browser.
Every row indicates a service and it's duration of startup.
Also you can run
Just run
Code: Select all
systemd-analyze plot > ~/Downloads/plot.svg
Every row indicates a service and it's duration of startup.
Also you can run
Code: Select all
systemd-analyze blame ; echo; systemd-analyze critical-chain
Re: ~40 sec boot time on fast SSD
Thanks hunter86_bg, that helps. Kernel takes less than a second, while initrd takes 3 seconds, doesn't seem that significant... oh, NetworkManager-wait-online.service takes 6.1s. That's a bit much. But even including EVERYTHING on that list, it's total less than 14 seconds... so while there's room for some improvement, there's definitely a different culprit here.
EDIT: Captured a video. The longest time is spent on a blank screen with a blinking cursor, but here it is anyway. https://www.youtube.com/watch?v=aa8VMu-dN2Q
EDIT: Captured a video. The longest time is spent on a blank screen with a blinking cursor, but here it is anyway. https://www.youtube.com/watch?v=aa8VMu-dN2Q
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: ~40 sec boot time on fast SSD
Have you tried the kernels (i think it was called kernel-ml) from elrepo?
Re: ~40 sec boot time on fast SSD
Did you remove rhgb quiet from the kernel command line so that you can actually see what's going on?The longest time is spent on a blank screen with a blinking cursor
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: ~40 sec boot time on fast SSD
Thanks, forgot about that. Now I have. Still a long period with a blinking cursor, though, and no warnings immediately after that as far as I can tell.
https://youtu.be/ZJwfkT7oYek
Re: ~40 sec boot time on fast SSD
Try appending edd=off to the kernel command line. If that works you could also try edd=skipmbr and see if that works too. If off does not work then I would not expect skipmbr to either.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: ~40 sec boot time on fast SSD
That didn't seem to work, had the black screen with the cursor for about 17 seconds after reboot. Oddly though I still saw the loading bar, shouldn't that not be showing up since I removed the "rhgb" option? I did run grub2-mkconfig...
EDIT: just now I hit E at the boot screen, and there they were again, rhgb and quiet. So I deleted them again, this time typing in "edd=off" in their place. While grub2-mkconfig might not what I need to be using (maybe it's EFI? I'll have to figure that out), it did give me about 17 seconds of blank-with-cursor again.
EDIT: just now I hit E at the boot screen, and there they were again, rhgb and quiet. So I deleted them again, this time typing in "edd=off" in their place. While grub2-mkconfig might not what I need to be using (maybe it's EFI? I'll have to figure that out), it did give me about 17 seconds of blank-with-cursor again.
Re: ~40 sec boot time on fast SSD
grub2-mkconfig is completely unnecessary on CentOS. It is worth updating both /etc/default/grub and /boot/grub2/grub.cfg (or its UEFI equivalent) just for completeness sake but nothing will ever run grub2-mkconfig except a human. New kernel installs update grub.cfg by calling /sbin/new-kernel-pkg which in turns calls grubby which copies the previous grub entry and amends it to become the new one. All automatic.
If edd=off did not work then I'm afraid I'm about out of ideas.
If edd=off did not work then I'm afraid I'm about out of ideas.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: ~40 sec boot time on fast SSD
By the way can you provide the .
I used to have a similar issue due to 'resume=' stanza.
Code: Select all
cat /proc/cmdline
I used to have a similar issue due to 'resume=' stanza.