Very long time boot

Discussion in general that pertains to Sabayon Linux - Must Pertain to Sabayon Linux

Moderator: Moderators

Very long time boot

Postby rev » Thu May 29, 2014 20:47

Hi guys,

i've noticed that my sab take very long time to boot.
This is my grub.conf:

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

### BEGIN /etc/grub.d/00_fonts ###
### END /etc/grub.d/00_fonts ###

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"

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_msdos
insmod ext2
set root='hd0,msdos7'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  bf5e22e2-1263-489a-95bc-769306e89e44
else
  search --no-floppy --fs-uuid --set=root bf5e22e2-1263-489a-95bc-769306e89e44
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=1024x768
  load_video
  # vga= is deprecated, grub2 handles this just fine
  # making grub2 res == linux fb res
  set gfxpayload=keep
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=it_IT
  insmod gettext
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  52c95074-8b4e-4f14-9c9c-9956fc14e483
else
  search --no-floppy --fs-uuid --set=root 52c95074-8b4e-4f14-9c9c-9956fc14e483
fi
insmod png
background_image -m stretch /grub/default-splash.png
if sleep --interruptible 0 ; then
  set timeout=3
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Sabayon GNU/Linux' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-bf5e22e2-1263-489a-95bc-769306e89e44' {
   load_video
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos5'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  52c95074-8b4e-4f14-9c9c-9956fc14e483
   else
     search --no-floppy --fs-uuid --set=root 52c95074-8b4e-4f14-9c9c-9956fc14e483
   fi
   echo   'Loading Linux x86_64-3.13.0-sabayon ...'
   linux   /kernel-genkernel-x86_64-3.13.0-sabayon root=UUID=bf5e22e2-1263-489a-95bc-769306e89e44 ro pci=routeirq irqpoll init=/linuxrc splash=silent,theme:sabayon video=vesafb:ywrap,mtrr:3 vga=791 gfxpayload=1024x768x16 console=tty1 quiet dokeymap keymap=it domdadm resume=swap:UUID=5d1fdbda-ea31-429a-b9dd-9580fd262315 real_resume=UUID=5d1fdbda-ea31-429a-b9dd-9580fd262315 root=UUID=bf5e22e2-1263-489a-95bc-769306e89e44 docrypt
   echo   'Loading initial ramdisk ...'
   initrd   /initramfs-genkernel-x86_64-3.13.0-sabayon
}
submenu 'Advanced options for Sabayon GNU/Linux' $menuentry_id_option 'gnulinux-advanced-bf5e22e2-1263-489a-95bc-769306e89e44' {
   menuentry 'Sabayon GNU/Linux, with Linux x86_64-3.13.0-sabayon' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.13.0-sabayon-advanced-bf5e22e2-1263-489a-95bc-769306e89e44' {
      load_video
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  52c95074-8b4e-4f14-9c9c-9956fc14e483
      else
        search --no-floppy --fs-uuid --set=root 52c95074-8b4e-4f14-9c9c-9956fc14e483
      fi
      echo   'Loading Linux x86_64-3.13.0-sabayon ...'
      linux   /kernel-genkernel-x86_64-3.13.0-sabayon root=UUID=bf5e22e2-1263-489a-95bc-769306e89e44 ro pci=noacpi init=/linuxrc splash=silent,theme:sabayon video=vesafb:ywrap,mtrr:3 vga=791 gfxpayload=1024x768x16 console=tty1 quiet acpi=off dokeymap keymap=it domdadm resume=swap:UUID=5d1fdbda-ea31-429a-b9dd-9580fd262315 real_resume=UUID=5d1fdbda-ea31-429a-b9dd-9580fd262315 root=UUID=bf5e22e2-1263-489a-95bc-769306e89e44 docrypt
      echo   'Loading initial ramdisk ...'
      initrd   /initramfs-genkernel-x86_64-3.13.0-sabayon
   }
   menuentry 'Sabayon GNU/Linux, with Linux x86_64-3.13.0-sabayon (recovery mode)' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.13.0-sabayon-recovery-bf5e22e2-1263-489a-95bc-769306e89e44' {
      load_video
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  52c95074-8b4e-4f14-9c9c-9956fc14e483
      else
        search --no-floppy --fs-uuid --set=root 52c95074-8b4e-4f14-9c9c-9956fc14e483
      fi
      echo   'Loading Linux x86_64-3.13.0-sabayon ...'
      linux   /kernel-genkernel-x86_64-3.13.0-sabayon root=UUID=bf5e22e2-1263-489a-95bc-769306e89e44 ro single init_opts=single pci=noacpi init=/linuxrc splash=verbose,theme:sabayon video=vesafb:ywrap,mtrr:3 vga=791 gfxpayload=1024x768x16 console=tty1 quiet acpi=off dokeymap keymap=it domdadm resume=swap:UUID=5d1fdbda-ea31-429a-b9dd-9580fd262315 real_resume=UUID=5d1fdbda-ea31-429a-b9dd-9580fd262315 root=UUID=bf5e22e2-1263-489a-95bc-769306e89e44 docrypt
      echo   'Loading initial ramdisk ...'
      initrd   /initramfs-genkernel-x86_64-3.13.0-sabayon
   }
}

### 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 ###
menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-707A5D3C7A5D0070' {
   insmod part_msdos
   insmod ntfs
   set root='hd0,msdos1'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  707A5D3C7A5D0070
   else
     search --no-floppy --fs-uuid --set=root 707A5D3C7A5D0070
   fi
   chainloader +1
}
menuentry 'Windows Recovery Environment (loader) (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-505CE4BF5CE4A0C8' {
   insmod part_msdos
   insmod ntfs
   set root='hd0,msdos2'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  505CE4BF5CE4A0C8
   else
     search --no-floppy --fs-uuid --set=root 505CE4BF5CE4A0C8
   fi
   drivemap -s (hd0) ${root}
   chainloader +1
}
menuentry 'Windows Recovery Environment (loader) (on /dev/sda3)' --class windows --class os $menuentry_id_option 'osprober-chain-C67285CA7285BFA3' {
   insmod part_msdos
   insmod ntfs
   set root='hd0,msdos3'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  C67285CA7285BFA3
   else
     search --no-floppy --fs-uuid --set=root C67285CA7285BFA3
   fi
   drivemap -s (hd0) ${root}
   chainloader +1
}
### 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 ###


I suppose that the line:
Code: Select all
linux   /kernel-genkernel-x86_64-3.13.0-sabayon root=UUID=bf5e22e2-1263-489a-95bc-769306e89e44 ro pci=routeirq irqpoll init=/linuxrc splash=silent,theme:sabayon video=vesafb:ywrap,mtrr:3 vga=791 gfxpayload=1024x768x16 console=tty1 quiet dokeymap keymap=it domdadm resume=swap:UUID=5d1fdbda-ea31-429a-b9dd-9580fd262315 real_resume=UUID=5d1fdbda-ea31-429a-b9dd-9580fd262315 root=UUID=bf5e22e2-1263-489a-95bc-769306e89e44 docrypt


where the
Code: Select all
 pci=routeirq irqpoll
is the cause of the problem, but without these lines i can't see the DE and log in the system.
My laptop is HP Pavillion G1312 with 4gb of ram, i3 processor and an ATI video card ( :( )
Can someone help me?
rev
Baby Hen
 
Posts: 8
Joined: Sat Mar 01, 2014 11:15

Re: Very long time boot

Postby linuxfluesterer » Fri May 30, 2014 4:20

rev wrote:I suppose that the line:
Code: Select all
linux   /kernel-genkernel-x86_64-3.13.0-sabayon root=UUID=bf5e22e2-1263-489a-95bc-769306e89e44 ro pci=routeirq irqpoll init=/linuxrc splash=silent,theme:sabayon video=vesafb:ywrap,mtrr:3 vga=791 gfxpayload=1024x768x16 console=tty1 quiet dokeymap keymap=it domdadm resume=swap:UUID=5d1fdbda-ea31-429a-b9dd-9580fd262315 real_resume=UUID=5d1fdbda-ea31-429a-b9dd-9580fd262315 root=UUID=bf5e22e2-1263-489a-95bc-769306e89e44 docrypt


where the
Code: Select all
 pci=routeirq irqpoll
is the cause of the problem, but without these lines i can't see the DE and log in the system.
My laptop is HP Pavillion G1312 with 4gb of ram, i3 processor and an ATI video card ( :( )
Can someone help me?

In some cases, I've experienced one may use 'nomodeset' to handle the problems with graphics, especially AMD (former ATI). Could you maybe substitute all that 'gfxplayload' and 'video=vesafb:...' by simply 'nomodeset (without ') and see, DE will be reached?
I'm not sure, how much time is used because of crypting, btw...

-Linuxfluesterer (I love KDE ...)
I really hope, that by the Brexit (poor Britain), TTIP will be finally prevented. But don't get tired to talk to your local politician to open eyes for danger to democracy because of TTIP
User avatar
linuxfluesterer
Old Dear Hen
 
Posts: 704
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: Very long time boot

Postby belcocco » Fri May 30, 2014 11:05

To retrieve all messages relating to the last boot
Code: Select all
# journalctl -b > log.txt

To retrieve the timing of the last boot
Code: Select all
# systemd-analyze
# systemd-analyze blame

Use pastebin for the outputs, thanks. :)
CIao
belcocco
Old Dear Hen
 
Posts: 452
Joined: Sat Nov 29, 2008 18:53
Location: Milan, Italy


Re: Very long time boot

Postby rev » Tue Jun 03, 2014 19:53

I've already tried the method "nomodeset" but it doesn't work at all...
This is my report of
Code: Select all
# journalctl -b > log.txt


http://pastebin.com/Z1BKdXGJ

then this is my systemd-analyze:
Code: Select all
sabayon revolver # systemd-analyze
Startup finished in 12.006s (kernel) + 30.578s (userspace) = 42.585s


omg.... :( :(

Now i try with removing the openrc lines...
rev
Baby Hen
 
Posts: 8
Joined: Sat Mar 01, 2014 11:15

Re: Very long time boot

Postby belcocco » Wed Jun 04, 2014 10:27

would be interesting to see:
Code: Select all
#systemd-analyze blame
Also my system is long (50 sec), takes about 25 sec. to activate "httpd.service." :roll:
from the output of the command 'journalctl-b'
........
June 03 20:06:24 sabayon cron [3607]: (CRON) STARTUP (V5.0)
June 03 20:06:38 sabayon kernel: microcode: CPU0 Mr = 0x206a7, pf = 0x10, revision = 0x1b
.......
I see it takes about 14 sec to 'cron' This is normal? You use cron to start something?
CIao
belcocco
Old Dear Hen
 
Posts: 452
Joined: Sat Nov 29, 2008 18:53
Location: Milan, Italy

Re: Very long time boot

Postby rev » Thu Jun 12, 2014 22:56

No i don't use cron to do anything..

how can i remove it?
ps. grazie belcocco :-D
rev
Baby Hen
 
Posts: 8
Joined: Sat Mar 01, 2014 11:15


Return to Sabayon Linux General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron