boot time - slow systemd-journal

I find OpenSuse booting time too slow on my laptop compared to other distros I used

systemd-analyze

Startup finished in 6.636s (kernel) + 5.938s (initrd) + 1min 14.883s (userspace) = 1min 27.458s

systemd-analyze blame | head

50.778s systemd-journal-flush.service 
          12.664s apparmor.service
          9.992s home.mount
          5.521s NetworkManager-wait-online.service
          5.337s vmware.service
          4.414s display-manager.service
          3.769s dev-sda2.device
          3.471s systemd-fsck@dev-disk-by\x2duuid-6bb37622\x2d3c94\x2d4a33\x2da2d7\x2dba852d4d77e9.service
          2.857s plymouth-read-write.service
          2.470s SuSEfirewall2.service

how can I reduce systemd-journal-flush.service or is it possible to even delete it?

any help to reduce this slow boot time is welcomed

well, idk how I solved it but I did :smiley:

after updating the system and removing vmware, the situation seems to be much better

systemd-analyze

Startup finished in 7.356s (kernel) + 4.522s (initrd) + 24.574s (userspace) = 36.453s

systemd-analyze blame | head
      8.771s apparmor.service
      5.348s NetworkManager-wait-online.service
      4.592s dev-sda2.device
      3.208s systemd-journal-flush.service
      2.646s home.mount
      2.635s SuSEfirewall2_init.service
      2.065s ModemManager.service
      1.720s vboxdrv.service
      1.638s display-manager.service
      1.622s teamviewerd.service

Now how can I remove teamviewer and virtualbox services from the boot process - I tried to go to Settings > Startup Applications but it’s empty, no application is there

Don;t you use those?? I assume you have installed teamviewer thus want to use it. It runs as a service thus gets loaded at boot. If you don;t want to run it uninstall it. Same goes with virtualbox

oh ok then I must keep them, thanks

… not necessarily, it depends on what you want to do with them.

In my case, I have TeamViewer installed but the daemon is set not to automatically load. I rarely use TeamViewer, so I just do not want it loaded all the time. Call me paranoid when it comes to security.:wink:

… so, when I want to use TeamViewer, I first have to drop to a command line and manually start the daemon.

If you want to do things that way, you can, but if you use TeamViewer regularly, you would probably prefer to have the daemon running at boot.

hey Fraser, thanks for your comment, indeed I use teamviewer once in a while, so how do I set the daemon to not automatically run, Yast > Services > disable?

Exactly. It is teamviewerd.service you want to disable.

When you want to use TeamViewer, simply run, from a root console (or use su):

systemctl start teamviewerd.service

To turn it off afterwards, run:

systemctl stop teamviewerd.service