LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-18-2016, 09:13 AM   #1
crxssi
Member
 
Registered: Apr 2005
Location: USA
Distribution: Mageia,Fedora,RHEL,CentOS
Posts: 95

Rep: Reputation: 16
Unhappy Mysterious 8 second delay in boot after grub


I have installed Fedora 23 (KDE spin) on an HP Prodesk mini 600 G2. There is one problem I can't quite figure out, though.... after grub comes up, I press <enter> on any kernel to boot, the screen goes black with a blinking underscore cursor and then there is a mysterious 8 second delay. There is no hard drive/SSD activity during that period. Then after, BAM, there is a flurry of activity over the next 4 seconds and it is finished booting. Try as I may, I can't figure out what that delay is. But I know it shouldn't be there. Even if it were just waiting on something, if I had SOME message telling me what it is doing, that would be helpful. I am doing nothing special. No RAID, no encryption, just two partitions (root and swap).

Things that made no difference: I uninstalled Plymouth.I tried UEFI vs. Legacy. I tried a Fedora live boot DVD instead of booting from the SDD install. I tried same thing with USB key boot. Disabled a bunch of stuff like abrtd and ModemManager. Removed the "quiet" flag in the kernel invocation. Rebuilt with dracut. I even tried booting 23 on our Lenovo laptops (a totally different machine with different chipset and other hardware) and on some Intel NUC's and had the same delay. On our Intel NUC, using Fedora 21, there is the same delay but only 4 seconds (???!!!) But if I try a different distro, like Archbang, there is no such delay at all.

I thought maybe "systemd-analyze" would help, but it doesn't show that delay... it says "4.3 seconds" which is the time AFTER the 8 second delay.... further indicating the delay is after/during grub but before loading the kernel. My Internet searching has produced nothing. Even if I can't get rid of the delay, having some message on the screen would be useful because it looks like the machine is dead during that period. Any help or ideas appreciated. Thanks
 
Old 02-18-2016, 12:59 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,160

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
When you hit <enter> in grub it loads the selected kernel and initrd and jumps to the kernel. The kernel initializes some stuff, unpacks the initrd and starts the init that it finds there. Init in the initrd loads any driver modules that need to be running but aren't built in, mounts the root filesystem, and starts the init system (sysvinit, upstart or systemd). Then your system is running.

I suspect the delay is the init in your initrd doing something. Since its generic, it is likely probing for hardware that you don't have. You can find info on the web for how to decompress it (it should be in gzip format), mount it and take look at what it does. I haven't done that lately with a Fedora build.

Here's some old info. Not sure how applicable to recent Fedora:
https://www.ibm.com/developerworks/library/l-initrd/
 
1 members found this post helpful.
Old 02-18-2016, 05:03 PM   #3
crxssi
Member
 
Registered: Apr 2005
Location: USA
Distribution: Mageia,Fedora,RHEL,CentOS
Posts: 95

Original Poster
Rep: Reputation: 16
Thanks for the info. But if it has actually loaded the kernel, and the delay were in the kernel probing for something, wouldn't that have shown in the "systemd-analyze"? This is what I read:

"systemd-analyze time prints the time spent in the kernel before userspace has been reached, the time spent in the initial RAM disk (initrd) before normal system userspace has been reached, and the time normal system userspace took to initialize." (see also https://en.wikipedia.org/wiki/Linux_startup_process which is interesting)

So that is why I suspect it is either in grub, or really, really early in the kernel load that can somehow hide from systemd-analyze (is that possible?) And if it is pre-kernel load, initrd won't be a factor.

Hmm... I just found something that might be useful here: https://wiki.archlinux.org/index.php...ot_performance

"Bootchart: Add this to your kernel line: initcall_debug printk.time=y init=/usr/lib/systemd/systemd-bootchart After collecting a certain amount of data (configurable) the logging stops and a graph is generated from the logged information. This graph contains vital clues as to which resources are being used (by default I/O, CPU utilization and kernel init threads), in which order, and where possible problems exist in the startup sequence of the system. It is essentially a more detailed version of the systemd-analyze plot function."

Perhaps that starts sooner (or perhaps not)... but might be worth a try.
 
Old 02-18-2016, 08:59 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
I'd also look at the associated grub line that exists with this kernel choice.

I guess it could be that some part of the line has an issue.
 
Old 02-19-2016, 03:44 PM   #5
crxssi
Member
 
Registered: Apr 2005
Location: USA
Distribution: Mageia,Fedora,RHEL,CentOS
Posts: 95

Original Poster
Rep: Reputation: 16
Yep, tried a slew of different things in grub- no change. Even replaced grub with isolinux- no change. Meanwhile, I tried Fedora 21 and it does the same thing! Tried bootchart with "initcall_debug printk.time=y init=/usr/lib/systemd/systemd-bootchart" no additional help. Fedora 21 and 23 exhibit the same delay now on 3 different kinds of machines. Acts the same if booted live on USB, or live off a DVD, on installed on a SATA SDD or M.2 PCI card. This is really annoying! I know I should give up, but it really irks me.
 
Old 02-19-2016, 06:22 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
fedora should have the same standard 3 or 4 sec countdown for the current kernel
-- this is normal , and it is set in the "grub.conf.d "

as for things taking extra time

a 30 to 45 second boot time is average

systemd-analyze will show that

i like using the SVG image output to "look" at it and see what is bogging it down

the Arch linux wiki is a GREAT TOOL , even for other distros
https://wiki.archlinux.org/index.php...ot_performance

Code:
su -

systemd-analyze plot > plot.svg
the above REPLACED the old "bootchart"

Last edited by John VV; 02-19-2016 at 06:25 PM.
 
Old 02-19-2016, 08:54 PM   #7
crxssi
Member
 
Registered: Apr 2005
Location: USA
Distribution: Mageia,Fedora,RHEL,CentOS
Posts: 95

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by John VV View Post
fedora should have the same standard 3 or 4 sec countdown for the current kernel
-- this is normal , and it is set in the "grub.conf.d "
Correct, but that is not the time I am talking about. I am talking about after grub. There is an 8 second delay where the computer does absolutely nothing.

Quote:
as for things taking extra time a 30 to 45 second boot time is average
This system takes 4 seconds to boot in any other distro I tried except Fedora. In Fedora, there is an 8 second delay and after that it takes 4 seconds.

Quote:
systemd-analyze will show that
Yes. On this system, systemd-analyze will show 4 seconds, with no trace of the 8 seconds of "hang" after grub.

Quote:
the Arch linux wiki is a GREAT TOOL , even for other distros
Their documentation is fantastic, I use it all the time.

Yep, that is the link I posted in my #3 post on the thread...
 
Old 02-19-2016, 10:36 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
so you are not power off / on booting
But using hibernate

what graphics driver is used for the 3d card ( if one)
 
Old 02-19-2016, 11:19 PM   #9
crxssi
Member
 
Registered: Apr 2005
Location: USA
Distribution: Mageia,Fedora,RHEL,CentOS
Posts: 95

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by John VV View Post
so you are not power off / on booting
But using hibernate
?

No, this is from power off/on. It is not hibernate.

Quote:
what graphics driver is used for the 3d card ( if one)
Integrated Intel (915)
 
Old 02-21-2016, 10:02 AM   #10
crxssi
Member
 
Registered: Apr 2005
Location: USA
Distribution: Mageia,Fedora,RHEL,CentOS
Posts: 95

Original Poster
Rep: Reputation: 16
Not that it really matters, but attached are the systemd-analyze bootcharts
Attached Thumbnails
Click image for larger version

Name:	bootchart-20160219-1057.png
Views:	135
Size:	127.5 KB
ID:	20915   Click image for larger version

Name:	plot.jpg
Views:	38
Size:	250.9 KB
ID:	20916  
 
Old 02-27-2016, 11:41 AM   #11
toolpost
LQ Newbie
 
Registered: Feb 2016
Location: Kerala, India
Distribution: Fedora
Posts: 7

Rep: Reputation: Disabled
Hi!

I am facing the same issue with Fadoa 23 on my Dell 14R 5420. I was running fedora 18 for a long time and there was no such problems. Last week I upgraded my laptop with a new SSD. Also, the DVD drive was replaced by a hard drive caddy, which now contains my old hard drive. I installed Fedora 23 on the SSD and grub automatically managed to find windows7 on the old hard drive. Everything was fine, until yesterday. I don't exactly remember when it get changed.

Now there is a time delay of 12 seconds from grub to boot. There is no information from systemd-analyse time. I am afraid that systemd-analyse doesn't even know anything about this 12 seconds. I have checked bootlog from journalctl, but no joy. Using the stop watch on the mobile phone I did some experiments and found that, boot logs starts after this 12 seconds.

Also, in my case this delay is absent when rebooting.

Thanks for your time.
 
Old 02-29-2016, 10:34 AM   #12
crxssi
Member
 
Registered: Apr 2005
Location: USA
Distribution: Mageia,Fedora,RHEL,CentOS
Posts: 95

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by toolpost View Post
Now there is a time delay of 12 seconds from grub to boot. [...]Also, in my case this delay is absent when rebooting.
That is interesting feedback, but when I reboot this machine (alt-control-del or "reboot") the 8 second delay is still there. So it might be yet another problem.
 
Old 07-20-2016, 10:24 PM   #13
crxssi
Member
 
Registered: Apr 2005
Location: USA
Distribution: Mageia,Fedora,RHEL,CentOS
Posts: 95

Original Poster
Rep: Reputation: 16
Many months and many hundreds of Fedora updates with no change. Fedora 24 comes out and the delay doesn't occur in 24.

Turns out there were additional BIOS updates for the HP mini's which I missed. Installed them and, to my surprise, the 8 second delay is now completely gone in Fedora 23! I tried several tests to make sure it wasn't any Fedora 23 updates, and it wasn't. No idea why it helped, but at least the problem is finally solved on this platform. I think it must be a combination kernel/hardware-BIOS issue.
 
1 members found this post helpful.
Old 08-01-2016, 01:12 AM   #14
toolpost
LQ Newbie
 
Registered: Feb 2016
Location: Kerala, India
Distribution: Fedora
Posts: 7

Rep: Reputation: Disabled
Hi!

Thanks for the information. I installed Fedora 24 and the issue seems to be gone. Now my laptop boots in less than 15 seconds..

Have a nice day!
 
Old 08-02-2016, 01:13 AM   #15
toolpost
LQ Newbie
 
Registered: Feb 2016
Location: Kerala, India
Distribution: Fedora
Posts: 7

Rep: Reputation: Disabled
The delay reappeared!

Update!

The same problem reappeared today. Yesterday I did the installation of F24 and everything was fine. I installed all updates and rebooted several times. There was no issues at all. But, when I switched on the laptop today morning, the delay reappeared again.

So In my case even the Fedora upgrade could not solve this issue. Then, I suspect problem is with the bios.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How come I can't edit /boot/grub/grub.conf or /boot/grub/menu.lst in Fedora 14? trien27 Fedora 4 01-22-2011 04:02 PM
grub ide=nodma not working with CF card - boot delay srfeo Linux - Hardware 1 03-28-2007 08:42 AM
Grub - Delay before showing boot menu IK81 Linux - General 3 10-02-2006 11:02 AM
Mysterious F: partition on dual boot system bigoli Linux - Software 2 01-21-2005 12:15 PM
timeout (delay) in [RedHat] Grub southsibling Linux - Software 4 12-28-2003 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 09:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration