You are not logged in.

#1 2016-12-22 14:31:07

ficabj5
Member
Registered: 2016-04-17
Posts: 6

loading initial ramdisk is very slow

Hi all,
As the title says, my computer takes long time to boot. Everything is fairly quick, but when it gets to loading initial ramdisk, the time varies from 10 seconds to a couple of minutes.
Don't get me wrong, these times are objectively okay, but my system is running on an SSD.
I have recently installed arch linux on this machine and since the start I've had this problem.
Here is the output of bootinfoscript:

                  Boot Info Script 0.61      [1 April 2012]


============================= Boot Info Summary: ===============================

 => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 
    92276736 of the same hard drive for core.img, but core.img can not be 
    found at this location.

sda1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Arch Linux ()
    Boot files:        /etc/fstab

sda2: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /grub/grub.cfg /efi/grub/grubx64.efi

sda3: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sda4: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________
Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1                   1   500,118,191   500,118,191  ee GPT


GUID Partition Table detected.

Partition    Start Sector    End Sector  # of Sectors System
/dev/sda1           2,048   209,717,247   209,715,200 Data partition (Linux)
/dev/sda2     209,717,248   210,765,823     1,048,576 EFI System partition
/dev/sda3     210,765,824   219,154,431     8,388,608 Data partition (Linux)
/dev/sda4     219,154,432   500,118,158   280,963,727 Data partition (Linux)

"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        fe5360a6-6e1b-41d5-822c-9f68fa6b2093   ext4       
/dev/sda2        2EAA-8147                              vfat       
/dev/sda3        73cbd4ce-a72a-4db5-a08e-7d3307ec6509   swap       
/dev/sda4        e1ea9263-fb80-4808-821f-1080a77b49eb   ext4       

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/sda1        /                        ext4       (rw,relatime,data=ordered)
/dev/sda2        /boot                    vfat       (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sda4        /home                    ext4       (rw,relatime,data=ordered)


=============================== sda1/etc/fstab: ================================

--------------------------------------------------------------------------------
# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
# UUID=fe5360a6-6e1b-41d5-822c-9f68fa6b2093
/dev/sda1           	/         	ext4      	rw,relatime,data=ordered	0 1

# UUID=2EAA-8147
/dev/sda2           	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro	0 2

# UUID=e1ea9263-fb80-4808-821f-1080a77b49eb
/dev/sda4           	/home     	ext4      	rw,relatime,data=ordered	0 2

--------------------------------------------------------------------------------

============================= sda2/grub/grub.cfg: ==============================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  fe5360a6-6e1b-41d5-822c-9f68fa6b2093
else
  search --no-floppy --fs-uuid --set=root fe5360a6-6e1b-41d5-822c-9f68fa6b2093
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-fe5360a6-6e1b-41d5-822c-9f68fa6b2093' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod fat
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  2EAA-8147
	else
	  search --no-floppy --fs-uuid --set=root 2EAA-8147
	fi
	echo	'Loading Linux linux ...'
	linux	/vmlinuz-linux root=UUID=fe5360a6-6e1b-41d5-822c-9f68fa6b2093 rw  quiet
	echo	'Loading initial ramdisk ...'
	initrd  /intel-ucode.img /initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-fe5360a6-6e1b-41d5-822c-9f68fa6b2093' {
	menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-fe5360a6-6e1b-41d5-822c-9f68fa6b2093' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		set root='hd0,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  2EAA-8147
		else
		  search --no-floppy --fs-uuid --set=root 2EAA-8147
		fi
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=UUID=fe5360a6-6e1b-41d5-822c-9f68fa6b2093 rw  quiet
		echo	'Loading initial ramdisk ...'
		initrd  /intel-ucode.img /initramfs-linux.img
	}
	menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-fe5360a6-6e1b-41d5-822c-9f68fa6b2093' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		set root='hd0,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  2EAA-8147
		else
		  search --no-floppy --fs-uuid --set=root 2EAA-8147
		fi
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=UUID=fe5360a6-6e1b-41d5-822c-9f68fa6b2093 rw  quiet
		echo	'Loading initial ramdisk ...'
		initrd  /intel-ucode.img /initramfs-linux-fallback.img
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=================== sda2: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)


=============================== StdErr Messages: ===============================

cat: /tmp/BootInfo-wBb0dKtc/Tmp_Log: No such file or directory
mdadm: No arrays found in config file or automatically

Does anyone have an idea on what could be wrong?
Thank you in advance!

Offline

#2 2016-12-22 15:25:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: loading initial ramdisk is very slow

µcode loading related?

Offline

#3 2016-12-22 21:10:58

ficabj5
Member
Registered: 2016-04-17
Posts: 6

Re: loading initial ramdisk is very slow

seth wrote:

µcode loading related?

What exactly is that? I couldn't find any documentation online. \
I'm not saying that is not it, I'm just not sure what to look for and where.

Thank you!

Offline

#4 2016-12-22 21:21:47

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: loading initial ramdisk is very slow

Microcode, also abbreviated ucode. Only applicable to intel AFAIK.

'µ' is greek character 'mu'. Usage presumably borrowed from SI where it's used as a prefix to indicate micro.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#5 2016-12-22 21:22:10

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: loading initial ramdisk is very slow

Look in what you've posted above:

initrd  /intel-ucode.img /initramfs-linux.img

All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

Board footer

Powered by FluxBB