You are not logged in.

#1 2012-11-07 22:53:18

A.J.Rouvoet
Member
From: Naaldwijk, The Netherlands
Registered: 2012-06-30
Posts: 37
Website

Systemd: why am I waiting for wicd/mysqld?

Recently I moved from init scripts to systemd. The available guide ensured a smooth transition.
Nobody got harmed in the process.

But: booting is slower since then. As can be seen below, I'm waiting quite some time for the mysqld and wicd daemons.

 ➜ systemd-analyze blame

 17482ms mysqld.service
 10968ms wicd.service
  5786ms gdm.service
  4176ms colord.service
  3768ms systemd-logind.service
  1109ms systemd-vconsole-setup.service
   801ms systemd-remount-fs.service
   761ms systemd-udevd.service
   742ms sys-kernel-debug.mount
   723ms console-kit-log-system-start.service
   719ms dev-mqueue.mount
   706ms systemd-binfmt.service
   659ms rc-local.service
   640ms dev-hugepages.mount
   596ms systemd-user-sessions.service
   590ms proc-sys-fs-binfmt_misc.mount
   548ms systemd-udev-trigger.service
   397ms accounts-daemon.service
   308ms polkit.service
   246ms systemd-sysctl.service
   243ms systemd-tmpfiles-setup.service
   186ms udisks.service
   107ms upower.service
    86ms console-kit-daemon.service
    61ms rtkit-daemon.service
    22ms udisks2.service
    18ms home.mount
    13ms tmp.mount
     1ms sys-fs-fuse-connections.mount

This seems odd to me. Since systemd starts services in parallel and is capable of starting them 'on the fly' when needed, why should I wait for them at boot?
Is there a way to start stuff like `mysqld.service` and `wicd.service` later? For example, after `gdm.service` is done, allowing me to sign in and do stuff?

As suggested by the guide I made sure all services are started at boot by running

systemctl enable <service-name>

for every service in my former DEAMONS array.

Last edited by A.J.Rouvoet (2012-11-07 22:53:50)

Offline

#2 2012-11-08 00:18:04

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,372

Re: Systemd: why am I waiting for wicd/mysqld?

I can't comment on the reason, but something looks wrong. Here:

(00:15)~$ systemd-analyze blame
  2178ms mysqld.service
  1144ms webmin.service
   984ms wicd.service

In fact, wicd starts way faster than netcfg here - netcfg took more than 10 times as long.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

/ is the root of all problems.

Offline

#3 2012-11-08 00:23:54

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,554
Website

Re: Systemd: why am I waiting for wicd/mysqld?

You can check the plot to see if they are actually delaying gdm - they might not be.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2012-11-08 01:35:47

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Systemd: why am I waiting for wicd/mysqld?

Moving from Arch Discussion to Applications & Desktop Environments.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#5 2012-11-11 11:32:45

lothar_m
Member
From: Cyberspace
Registered: 2010-04-25
Posts: 32

Re: Systemd: why am I waiting for wicd/mysqld?

in my machine netcfg really takes some time too.

$systemd-analyze blame
  16072ms netcfg.service
   9595ms i2prouter.service
   4164ms postgresql.service
   2331ms udisks2.service
   2010ms systemd-vconsole-setup.service
   1896ms systemd-logind.service
   ...

“Clearly, Field Marshal Haig is about to make yet another gargantuan effort to move his drinks cabinet six inches closer to Berlin.”

Offline

#6 2012-11-29 09:49:14

A.J.Rouvoet
Member
From: Naaldwijk, The Netherlands
Registered: 2012-06-30
Posts: 37
Website

Re: Systemd: why am I waiting for wicd/mysqld?

lothar_m wrote:

in my machine netcfg really takes some time too.

$systemd-analyze blame
  16072ms netcfg.service
   9595ms i2prouter.service
   4164ms postgresql.service
   2331ms udisks2.service
   2010ms systemd-vconsole-setup.service
   1896ms systemd-logind.service
   ...

Off topic: Nice Blackadder Quote you have as a signature ;-)

Offline

Board footer

Powered by FluxBB