Labels

Sunday 9 September 2018

Boot openSUSE Tumbleweed faster

Change compression method for initrd, as root:
echo 'compress="cat"' >/etc/dracut.conf.d/99-compress.conf
dracut --force

And if you're not using YaST to configure network setup, Networkmanager might speed up boot a bit compared to Wicked, as root:
systemctl enable NetworkManager && systemctl disable wicked

2 comments:

  1. For an SSD-based installation, an uncompressed initrd gives the best boost for startup speed in my opinion. On my 5-year old main rig (Core i5, Samsung SSD, ext4 only) my boot times continually improved from over 6 seconds (openSUSE 13.2) to just under 1.4 seconds (Leap 15.0).

    Like you, I soon replaced wicked with NetworkManager, but then also postfix with exim, then SDDM with KDM, then disabled anything unneeded with kernel params (Plymouth, memory cgroups etc), systemd (Plymouth again, btrfs services etc) and KDE-Plasma (file indexing etc).

    My current kernel params:

    loglevel=4 systemd.show_status=auto cgroup_disable=memory ipv6.disable=1 fips=0 resume=/dev/... elevator=deadline

    Current customized initrd command (warning, will omit brtfs, ipv6, CD-ROM and LVM stuff):

    dracut --verbose --hostonly --force --no-compress --omit "img-lib cifs fcoe fcoe-uefi rdma multipath iscsi qemu lvm mdraid dm dmraid cdrom pollcdrom plymouth btrfs wacom convertfs wicked ipv6 mtp-probe"

    Current best boot time:
    "Startup finished in 211ms (kernel) + 657ms (initrd) + 509ms (userspace) = 1.378s" according to systemd-analyze.
    It was a warm boot, I think; my best cold boot is 1.391s, not much slower.

    If you're in a secure environment, you can also disable SuSEFirewall, AppArmor and Spectre/Meltdown patches (kernel params: pti=off spectre_v2=off l1tf=off nospec_store_bypass_disable no_stf_barrier) and make the whole system even more responsive, but that may be pushing it. Cheers!

    ReplyDelete
  2. M88 Casino - Casino Promotions - Thailand - Thakasino
    M88 offers the best online gaming experience in Thailand and provides an unforgettable gaming experience. This m88 ทางเข้า is our largest and 샌즈카지노 most trusted online vua nhà cái casino in Thailand.

    ReplyDelete