Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Dec 2015 17:52:15 +1100 (EST)
From:      Ian Smith <smithi@nimnet.asn.au>
To:        Vijay Rjah <me@rvijay.me>
Cc:        freebsd-questions@freebsd.org, Ed Maste <emaste@freebsd.org>
Subject:   Re: Need help with New Build -- Skylake
Message-ID:  <20151224173146.H8562@sola.nimnet.asn.au>
In-Reply-To: <mailman.2556.1450906440.19558.freebsd-questions@freebsd.org>
References:  <mailman.2556.1450906440.19558.freebsd-questions@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In freebsd-questions Digest, Vol 603, Issue 5, Message: 5
On Wed, 23 Dec 2015 23:20:54 +0530 Vijay Rjah <me@rvijay.me> wrote:
 > On 12/23/15 2:29 AM, Ed Maste wrote:
 > > On 22 December 2015 at 12:39, Vijay Rjah <me@rvijay.me> wrote:
 > >> The only issue i have is that the boot process takes a lot of time..
 > >> (similar to
 > >> https://forums.freebsd.org/threads/new-motherboard-and-processor-kernel-load-very-slow.53511/
 > >> ). the system ultimately boots, but boot times are around 4 - 5 Mins..
 > >>
 > >> How do I debug it? any suggestions?

 > > A useful first step is to get a verbose boot ("boot -v" from the
 > > loader prompt) and note where there are any large or unexpected
 > > delays. The "memory test" that was responsible for many reports of
 > > slow FreeBSD boots has been disabled in 11.x for quite some time, so
 > > it won't be that.

 > Thanks for your reply..
 > 
 > It takes about 3-4 Mins just to get to the boot option screen.. ( I mean 
 > the menu where it lets you select multi/single user mode etc...)
 > 
 > I have attached the output of "boot -v"..
 > 
 > -Thanks
 > Vijay
 > -------------- next part --------------
 > Dec 23 23:03:13 vrajah-bsd syslogd: kernel boot file is /boot/kernel/kernel

Note the timestamp.  You often can't rely on bootup timestamps as most 
of it has to be buffered until being reported somewhat later, as there's 
nowhere for syslog to write to, but in any case, everything else is 
logged at the same second until:

 > Dec 23 23:03:13 vrajah-bsd kernel: re0: link state changed to UP
 > Dec 23 23:03:13 vrajah-bsd ntpd[605]: ntpd 4.2.8p4-a (1): Starting
 > Dec 23 23:03:14 vrajah-bsd ntpd[606]: leapsecond file ('/etc/ntp/leap-seconds'): good hash signature
 > Dec 23 23:03:14 vrajah-bsd ntpd[606]: leapsecond file ('/etc/ntp/leap-seconds'): loaded, expire=2015-12-28T00:00:00Z last=2015-07-01T00:00:00Z ofs=36
 > Dec 23 23:03:14 vrajah-bsd ntpd[606]: leapsecond file ('/etc/ntp/leap-seconds'): will expire in less than 5 days

 > Dec 23 23:03:14 vrajah-bsd sm-mta[643]: My unqualified host name (vrajah-bsd) unknown; sleeping for retry
 > Dec 23 23:04:12 vrajah-bsd sm-mta[643]: unable to qualify my own domain name (vrajah-bsd) -- using short name

Where it waited for all but a minute ..

 > Dec 23 23:04:12 vrajah-bsd sm-msp-queue[646]: My unqualified host name (vrajah-bsd) unknown; sleeping for retry

Then almost another minute, util you logged in and su'd ..

 > Dec 23 23:05:10 vrajah-bsd su: vrajah to root on /dev/pts/0
 > Dec 23 23:05:12 vrajah-bsd sm-msp-queue[646]: unable to qualify my own domain name (vrajah-bsd) -- using short name

So there's ~2 minutes delay there.  sendmail (mta and msp both) at least 
are unhappy about your hostname, and sleep on it.  I don't know whether
that's significant or related to the longer delay you report.  I just
skimmed through your dmesg, but didn't spot anything glaringly obvious.

FWIW, cheers, Ian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151224173146.H8562>