Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: how can I increase the system boot speed?

  1. #1
    Join Date
    Mar 2015
    Location
    Viçosa, Brasil
    Posts
    263

    Default how can I increase the system boot speed?

    Hi,

    My system is taking too long to get read. How can I improve this?

    When I check it:

    Code:
    viniciusbr@linux-hwbe:~> systemd-analyze blame
             25.637s ModemManager.service
             23.738s NetworkManager.service
             18.045s systemd-journal-flush.service
              7.682s dev-sda6.device
              5.598s display-manager.service
              5.129s polkit.service
              4.894s postfix.service
              2.676s warsaw.service
              2.256s systemd-rfkill.service
              2.207s home.mount
              1.671s systemd-udevd.service
              1.641s systemd-fsck@dev-disk-by\x2duuid-96650134\x2d5361\x2d413a\x2da7e3\x2da1d2bad0704a.service
              1.433s systemd-backlight@backlight:intel_backlight.service
              1.419s avahi-daemon.service
              1.367s boot-efi.mount
              1.198s var-tmp.mount
               945ms var-log.mount
               930ms iscsi.service
               914ms systemd-journald.service
               814ms var-lib-pgsql.mount
               812ms usr-local.mount
               811ms var-lib-machines.mount
               810ms opt.mount
               809ms var-lib-libvirt-images.mount
               807ms var-opt.mount
               807ms boot-grub2-i386\x2dpc.mount
               806ms var-lib-mariadb.mount
               805ms var-spool.mount
               804ms var-lib-mailman.mount
               802ms tmp.mount                                                                                                                                                
               802ms var-cache.mount                                                                                                                                          
               801ms var-crash.mount                                                                                                                                          
               799ms var-lib-mysql.mount                                                                                                                                      
               797ms var-lib-named.mount                                                                                                                                      
               770ms nscd.service                                                                                                                                             
               600ms auditd.service                                                                                                                                           
               544ms upower.service                                                                                                                                           
               542ms systemd-logind.service                                                                                                                                   
               531ms plymouth-read-write.service                                                                                                                              
               390ms systemd-udev-trigger.service                                                                                                                             
               359ms dev-disk-by\x2duuid-eb8d1b1a\x2d1b1f\x2d4dcd\x2d8c50\x2dde2b33580b61.swap                                                                                
               356ms systemd-tmpfiles-setup-dev.service                                                                                                                       
               353ms dev-mqueue.mount                                                                                                                                         
               349ms dev-hugepages.mount                                                                                                                                      
               347ms sys-kernel-debug.mount                                                                                                                                   
               322ms srv.mount                                                                                                                                                
    lines 1-46
    --
    Biostatistics and Data Science
    https://bio-data.github.io/

  2. #2
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    3,361
    Blog Entries
    1

    Default Re: how can I increase the system boot speed?

    1-if you don't directly connect to any kind of modem, uninstall ModemManager.

    2-tell us about your PC, such as providing output from
    Code:
    lspci
    and
    Code:
    inxi -G -c0
    and telling how much RAM you have, whether you use a HD or SSD or both, your CPU model and speed, which WM or DE you use, and how and when you installed openSUSE.

  3. #3
    Join Date
    Mar 2015
    Location
    Viçosa, Brasil
    Posts
    263

    Default Re: how can I increase the system boot speed?

    Quote Originally Posted by mrmazda View Post
    1-if you don't directly connect to any kind of modem, uninstall ModemManager.

    2-tell us about your PC, such as providing output from
    Code:
    lspci
    and
    Code:
    inxi -G -c0
    and telling how much RAM you have, whether you use a HD or SSD or both, your CPU model and speed, which WM or DE you use, and how and when you installed openSUSE.
    I see. So, if I remove ModemManager, will it not damage my wifi and ethernet?

    Code:
    viniciusbr@linux-hwbe:~> lspci
    Absolute path to 'lspci' is '/sbin/lspci', so running it may require superuser privileges (eg. root).
    viniciusbr@linux-hwbe:~> sudo lspci
    [sudo] senha para root: 
    00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
    00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
    00:04.0 Signal processing controller: Intel Corporation 3rd Gen Core Processor Thermal Subsystem (rev 09)
    00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
    00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
    00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
    00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
    00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
    00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
    00:1c.3 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 4 (rev c4)
    00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
    00:1f.0 ISA bridge: Intel Corporation HM76 Express Chipset LPC Controller (rev 04)
    00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
    00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
    02:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)
    03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411 PCI Express Card Reader (rev 01)
    03:00.2 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0a)
    Code:
    viniciusbr@linux-hwbe:~> sudo inxi -G -c0
    Graphics:  Card: Intel 3rd Gen Core processor Graphics Controller
               Display Server: X.org 1.18.3 drivers: intel (unloaded: modesetting,fbdev,vesa)
               tty size: 158x23 Advanced Data: N/A for root out of X
    --
    Biostatistics and Data Science
    https://bio-data.github.io/

  4. #4
    Join Date
    Feb 2018
    Location
    Romania
    Posts
    484

    Default Re: how can I increase the system boot speed?

    Quote Originally Posted by viniciusbrbio View Post
    I see. So, if I remove ModemManager, will it not damage my wifi and ethernet?
    I don't think so.
    ModemManager.service is a DBus-activated daemon that controls mobile broadband interfaces (2,3,4G). (from www.linux.com - cleaning your startup process)

  5. #5
    Join Date
    Mar 2015
    Location
    Viçosa, Brasil
    Posts
    263

    Default Re: how can I increase the system boot speed?

    Quote Originally Posted by another_roadrunner View Post
    I don't think so.
    ModemManager.service is a DBus-activated daemon that controls mobile broadband interfaces (2,3,4G). (from www.linux.com - cleaning your startup process)
    Yeap, so I removed ModemManager and seems to have not problem so far. Thanks

    And what is this:

    Code:
    19.149s systemd-journal-flush.service
    --
    Biostatistics and Data Science
    https://bio-data.github.io/

  6. #6
    Join Date
    Feb 2018
    Location
    Romania
    Posts
    484

    Default Re: how can I increase the system boot speed?

    19.149s systemd-journal-flush.service
    It flush old logs. I think you can change the time with journalctl --vacuum-time=(3,4,5)d (will delete logs except that number of days).

  7. #7
    Join Date
    Mar 2015
    Location
    Viçosa, Brasil
    Posts
    263

    Default Re: how can I increase the system boot speed?

    Quote Originally Posted by another_roadrunner View Post
    It flush old logs. I think you can change the time with journalctl --vacuum-time=(3,4,5)d (will delete logs except that number of days).
    I putted sudo journalctl --vacuum-time=5d

    But it doesn't change the blame time unfortunately:

    Code:
    19.876s systemd-journal-flush.service
              6.203s display-manager.service
              5.795s postfix.service
              4.870s dev-sda6.device
              3.137s NetworkManager.service
              1.933s upower.service
              1.769s home.mount
              1.729s warsaw.service
              1.666s var-spool.mount
              1.493s boot-efi.mount
    --
    Biostatistics and Data Science
    https://bio-data.github.io/

  8. #8
    Join Date
    Mar 2015
    Location
    Viçosa, Brasil
    Posts
    263

    Default Re: how can I increase the system boot speed?

    And now appeared a new stuff (rtkit-daemon.service):

    Code:
    19.774s systemd-journal-flush.service
             16.598s rtkit-daemon.service
             16.509s NetworkManager.service
              7.940s postfix.service
              6.947s display-manager.service
              4.206s dev-sda6.device
              1.731s warsaw.service
              1.719s home.mount
              1.458s udisks2.service
              1.004s var-lib-machines.mount
    --
    Biostatistics and Data Science
    https://bio-data.github.io/

  9. #9
    Join Date
    Feb 2018
    Location
    Romania
    Posts
    484

    Default Re: how can I increase the system boot speed?

    Rtkit is a real time kernel scheduler.
    Try journalctl --vacuum-size=100M (or 200, 300M).

  10. #10
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,557

    Default Re: how can I increase the system boot speed?

    Quote Originally Posted by viniciusbrbio View Post
    And now appeared a new stuff (rtkit-daemon.service):
    It seems that, your system has quite a few things enabled which are possibly not needed:
    Code:
     > systemctl list-unit-files | grep -i 'rtkit'
    rtkit-daemon.service                    disabled
     > 
     > systemd-analyze
    Startup finished in 2.038s (kernel) + 1.645s (initrd) + 10.655s (userspace) = 14.339s
     > systemd-analyze blame | head
              6.063s wicked.service
              1.473s apparmor.service
              1.332s mysql.service
              1.194s display-manager.service
              1.132s systemd-journal-flush.service
               747ms home01.mount
               639ms SuSEfirewall2.service
               474ms home.mount
               430ms vboxdrv.service
               392ms apache2.service
     >
    Please execute, with the user "root", 'journalctl --verify'; for system journals which indicate errors, 'journalctl --vacuum-time=1weeks' (or less) is the only remedy that I've found; for user journals, currently, the only palliative AFAIK is to remove the offending journal file.

    As to the overall miserable boot performance (booting is taking much, much, too long [with Leap 42.3 and updates/patches as of early March 2018]), please consider performing some housekeeping on the system partition's file system -- if it's Btrfs, there's some housekeeping tasks in "/etc/cron.weekly/" and "/etc/cron.monthly/" which need to be executed.

    I saw a "home" mount in your reports which needed rather more than 1 second -- if that "home" partition uses XFS, you'll need to drop down to "systemctl rescue"; unmount that partition; and then 'xfs_repair' it …

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •