how can I have a faster boot time? 12.2 x64 kde, over 1min

Hi, I’m pretty new to opensuse and linux in general.

I’m coming from kubuntu 12.04 and opensuse’s boot time always seemed way slower, even when vanilla.
I have this 12.2 running since the day of release, was a fresh install, not updated from previous versions.

Today I timed from grub to desktop it’s around 1min15sec!
I’d like to see what is bottle necking/what I could disable.

First the system is a laptop with:

  • Intel Core i7 Quad-Core 2720QM 2.2GHz, up to 3.4 GHz in Turbo Boost mode
  • 8GB DDR3
  • 500GB Hard Drive 7200rpm
  • Sandy bridge: Intel HD Graphics 3000 and NVIDIA Quadro 1000M
  • I mainly use wi-fi connection

I have Opensuse 12.2 x64, it’s not vanilla, is fully bloated, I added a lot of repos and quite some apps:

#  | Alias                       | Name                               | Enabled | Refresh                          
---+-----------------------------+------------------------------------+---------+--------                          
 1 | BumbleNvidiaLTS             | BumbleNvidiaLatest                 | Yes     | Yes                              
 2 | Packman                     | Packman                            | Yes     | Yes    
 3 | Wine                        | Wine                               | Yes     | Yes    
 4 | fix_vmvirtualbox            | fix vmvirtualbox                   | Yes     | Yes    
 5 | google-earth                | google-earth                       | Yes     | Yes    
 6 | home:AndreasStieger         | home:AndreasStieger                | Yes     | Yes    
 7 | home:Overman79              | home:Overman79                     | Yes     | Yes    
 8 | home:neocrust               | home:neocrust                      | Yes     | Yes    
 9 | kde49extra                  | kde49extra                         | Yes     | Yes    
10 | kde_SC_4.9_aka_kr49         | kde SC 4.9 aka kr49                | Yes     | Yes    
11 | kernel                      | kernel                             | Yes     | Yes    
12 | mozilla_repo                | mozilla repo                       | Yes     | Yes    
13 | multimedia:color_management | multimedia:color_management        | Yes     | Yes    
14 | repo-debug                  | openSUSE-12.2-Debug                | No      | Yes    
15 | repo-debug-update           | openSUSE-12.2-Update-Debug         | No      | Yes    
16 | repo-debug-update-non-oss   | openSUSE-12.2-Update-Debug-Non-Oss | No      | Yes    
17 | repo-non-oss                | openSUSE-12.2-Non-Oss              | Yes     | Yes    
18 | repo-oss                    | openSUSE-12.2-Oss                  | Yes     | Yes    
19 | repo-source                 | openSUSE-12.2-Source               | No      | Yes    
20 | repo-update                 | openSUSE-12.2-Update               | Yes     | Yes    
21 | repo-update-non-oss         | openSUSE-12.2-Update-Non-Oss       | Yes     | Yes    
22 | swyear_bumblebee            | swyear bumblebee                   | Yes     | Yes

In a few words Kde 4.9, kernel 3.7.1, nvidia beta 310.19 with bumblebee (it’s a sandy bridge notebook) etc.

As I said I’m pretty noob about linux backend, but I read first asked things are systemd-analyze plot and blame… here they are:
systemd-analyze


Startup finished in 5520ms (kernel) + 37300ms (userspace) = 42820ms

systemd-analyze blame


  8647ms NetworkManager.service
  6659ms avahi-daemon.service
  5071ms SuSEfirewall2_init.service
  3588ms dkms_autoinstaller.service
  3332ms systemd-vconsole-setup.service
  1485ms media-windows7.mount
  1166ms systemd-modules-load.service
  1045ms remount-rootfs.service
   805ms localnet.service
   791ms media.mount
   786ms var-lock.mount
   784ms dev-mqueue.mount
   778ms sys-kernel-security.mount
   776ms dev-hugepages.mount
   774ms udev-root-symlink.service
   774ms sys-kernel-debug.mount
   773ms var-run.mount
   755ms systemd-remount-api-vfs.service
   693ms media-posta.mount
   524ms auditd.service
   466ms rtkit-daemon.service
   462ms console-kit-daemon.service
   447ms SuSEfirewall2_setup.service
   282ms vboxdrv.service
   263ms cycle.service
   203ms systemd-readahead-collect.service
   192ms home.mount
   180ms systemd-readahead-replay.service
   159ms systemd-sysctl.service
   158ms udev.service
   155ms systemd-logind.service
   137ms syslog.service
   105ms console-kit-log-system-start.service
   103ms fbset.service
   101ms cpufreq.service
    84ms brld.service
    84ms network-remotefs.service                                                                                  
    70ms jexec.service                                                                                             
    49ms bluez-coldplug.service                                                                                    
    42ms sshd.service                                                                                              
    41ms systemd-user-sessions.service                                                                             
    39ms xdm.service                                                                                               
    37ms network.service                                                                                           
    36ms rc-local.service                                                                                          
    34ms udev-trigger.service                                                                                      
    33ms quota.service                                                                                             
    21ms systemd-tmpfiles-setup.service                                                                            
    17ms vboxautostart-service.service                                                                             
    17ms sbl.service                                                                                               
    17ms acpid.service                                                                                             
    13ms vboxballoonctrl-service.service                                                                           
    11ms proc-sys-fs-binfmt_misc.mount                                                                             
    10ms vboxweb-service.service                                                                                   
     5ms upower.service                                                                                            
     3ms sys-fs-fuse-connections.mount  

systemd-analyze plot
is quite big, 414kb
https://www.dropbox.com/sh/xpy3yf3xwdw8pv3/FI7D2RVafI/bootnosplashnoatimeslow.svg

I’m automounting these, here /etc/fstab:

UUID="695798c0-8a5f-4736-8b09-10fec7a60965"     /       ext4    acl,user_xattr,noatime  1       1
UUID="d8434392-55ee-4ade-b2b7-dd2d5814d824"     /home   ext4    acl,user_xattr,noatime  1       2
UUID="ba619292-af12-4408-af20-8b39b453186f"     swap    swap    defaults        0       0
UUID="F2DC-E082"        /media/posta    vfat    defaults,user,dmask=000,fmask=111,noatime       0       2
UUID="57BDAB375330FD37" /media/windows7 ntfs-3g defaults,locale=it_IT.utf8,noatime      0       2
proc    /proc   proc    defaults        0       0
sysfs   /sys    sysfs   noauto  0       0
debugfs /sys/kernel/debug       debugfs noauto  0       0
devpts  /dev/pts        devpts  mode=0620,gid=5 0       0

  • What can I do to have a faster boot looking at that plot?
    kernel loads in 5 sec, the rest is all userspace!

Thank you,
Roberto.

I guess I can give a quick comparison. My system is ancient compared to yours. Using openSUSE 12.2, 3.7.1-1-default, KDE 64-bit . My output of systemd-analyze is:

Startup finished in 5565ms (kernel) + 15702ms (userspace) = 21268ms

The only thing unique about my setup is I am using a /boot partition, and my root/swap are under lvm. Perhaps it has something to do with the extra partitions you mount, have tested not mounting them (if you can do so safely)?

@robertocr87

this machine’s initialisation is,
Startup finished in 3450ms (kernel) + 21706ms (userspace) = 25156ms

comparing outputs of systemd-analyze_blame your os is slower due to the following,
(showing slower by >100ms)


t=ms    keellambert            t=ms    robertorc87            diff t=ms
                    6659    avahi-daemon.service        -6659
641    SuSEfirewall2_init.service    5071    SuSEfirewall2_init.service    -4430
                    3588    dkms_autoinstaller.service    -3588
                    1485    media-windows7.mount        -1485
                     791    media.mount            - 791
27    var-lock.mount             786    var-lock.mount            - 759
7905    NetworkManager.service        8647    NetworkManager.service        - 742
                     693    media-posta.mount        - 693
2657    systemd-vconsole-setup.service    3332    systemd-vconsole-setup.service    - 675
193    dev-mqueue.mount         784    dev-mqueue.mount        - 591
188    dev-hugepages.mount         776    dev-hugepages.mount        - 588
196    sys-kernel-security.mount     778    sys-kernel-security.mount    - 582
191    var-run.mount             773    var-run.mount            - 582
203    sys-kernel-debug.mount         774    sys-kernel-debug.mount        - 571
                     524    auditd.service            - 524
                     466    rtkit-daemon.service        - 466
                     462    console-kit-daemon.service    - 462
587    remount-rootfs.service        1045    remount-rootfs.service        - 458
338    systemd-remount-api-vfs.service  755    systemd-remount-api-vfs.service    - 417
                     282    vboxdrv.service            - 282
                     263    cycle.service            - 263

the main reason being the services you have selected, avahi-daemon.service,
dkms_autoinstaller.service … taking the most significant times

loading kde is the main reason for > 1 minute

startup times may be shortened by setting yast repo refresh to No, but then manual updates would be necessary,
otherwise you are just about optimal

Kernel 3.7.1-1-desktop x86_64 (64 bit), Desktop KDE 4.9.4,
openSUSE 12.2 (x86_64), AMD Phenom II X4 940, 3000.00 MHz
ATI RS780 [Radeon HD 3200]

@robertocr87

this machine’s initialisation is,
Startup finished in 3450ms (kernel) + 21706ms (userspace) = 25156ms

comparing outputs of systemd-analyze_blame your os is slower due to the following,
(showing slower by >100ms)


t=ms    keellambert                     t=ms    robertorc87                   diff t=ms
        not enabled                     6659    avahi-daemon.service            -6659
641     SuSEfirewall2_init.service      5071    SuSEfirewall2_init.service      -4430
        not enabled                     3588    dkms_autoinstaller.service      -3588
        not enabled                     1485    media-windows7.mount            -1485
        not enabled                      791    media.mount                     - 791
27      var-lock.mount                   786    var-lock.mount                  - 759
7905    NetworkManager.service          8647    NetworkManager.service          - 742
        not enabled                      693    media-posta.mount               - 693
2657    systemd-vconsole-setup.service  3332    systemd-vconsole-setup.service  - 675
193     dev-mqueue.mount                 784    dev-mqueue.mount                - 591
188     dev-hugepages.mount              776    dev-hugepages.mount             - 588
196     sys-kernel-security.mount        778    sys-kernel-security.mount       - 582
191     var-run.mount                    773    var-run.mount                   - 582
203     sys-kernel-debug.mount           774    sys-kernel-debug.mount          - 571
        not enabled                      524    auditd.service                  - 524
        not enabled                      466    rtkit-daemon.service            - 466
        not enabled                      462    console-kit-daemon.service      - 462
587     remount-rootfs.service          1045    remount-rootfs.service          - 458
338     systemd-remount-api-vfs.service  755    systemd-remount-api-vfs.service - 417
        not enabled                      282    vboxdrv.service                 - 282
        not enabled                      263    cycle.service                   - 263

the main reason being the services you have selected, avahi-daemon.service,
dkms_autoinstaller.service … taking the most significant times

loading kde is the main reason for > 1,25 minute

startup times may be shortened by setting yast repo refresh to No, but then manual
updates would be necessary, otherwise it looks good

Kernel 3.7.1-1-desktop x86_64 (64 bit), Desktop KDE 4.9.4,
openSUSE 12.2 (x86_64), AMD Phenom II X4 940, 3000.00 MHz
ATI RS780 [Radeon HD 3200]