I now wonder is it possible and useful to disable dev-ttyS[0-3].device, sys-devices-pnp0-00:01-tty-ttyS0.device, sys-devices-platform-serial8250-tty-ttyS[1-3].device?
I would guess I donât make use of that stuff⌠Or is it essential for something I donât know, yet? I really donât knowâŚ
If it is dispensable, can it be disabled safely? And if yes, then how?
~> systemd-analyze --help | grep "blame"
blame Print list of running units ordered by
[âŚ]
time to init
as well as
~> man -L=EN systemd-analyze
providing
systemd-analyze blame
This command prints a list of all running units, ordered by the time they took to initialize. This information may be used to optimize boot-up times. Note that the output might
be misleading as the initialization of one service might be slow simply because it waits for the initialization of another service to complete. Also note: systemd-analyze blame
doesn't display results for services with Type=simple, because systemd considers such services to be started immediately, hence no measurement of the initialization delays can
be done. Also note that this command only shows the time units took for starting up, it does not show how long unit jobs spent in the execution queue. In particular it shows the
time units spent in "activating" state, which is not defined for units such as device units that transition directly from "inactive" to "active". This command hence gives an
impression of the performance of program code, but cannot accurately reflect latency introduced by waiting for hardware and similar events.
Example 2. Show which units took the most time during boot
$ systemd-analyze blame
32.875s pmlogger.service
20.905s systemd-networkd-wait-online.service
13.299s dev-vda1.device
...
23ms sysroot.mount
11ms initrd-udevadm-cleanup-db.service
3ms sys-kernel-config.mount
You could also examine the results from systemd-analyze critical-chain
That can be a better measure of boot performance / issues because it specifically highlights the services that are on the critical path, (as they directly impact the overall boot time by causing delays for subsequent services due to their dependencies). The âblameâ option shows the list of services ordered by how long they took to start individually, but doesnât necessarily reflect their impact on the overall boot time if they are not on the critical path. (Many services are started in parallel during the boot sequence.)
# systemd-analyze critical-chain
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.
graphical.target @4.625s
ââmulti-user.target @4.624s
ââchronyd.service @4.371s +251ms
âânss-lookup.target @4.363s
ââdnsmasq.service @3.732s +630ms
âânetwork.target @3.722s
ââNetworkManager.service @3.314s +407ms
âânetwork-pre.target @3.300s
ââwpa_supplicant.service @3.037s +262ms
ââdbus.service @3.019s
ââbasic.target @2.997s
ââsockets.target @2.997s
ââdbus.socket @2.997s
ââsysinit.target @2.994s
ââsystemd-vconsole-setup.service @4.131s +319ms
ââsystemd-journald.socket
ââsystem.slice
ââ-.slice
Your machine is really slow. Did you replace the hard disc by a SSD?
~> systemd-analyze critical-chain
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.
graphical.target @3.931s
ââdisplay-manager.service @3.120s +811ms
ââtime-sync.target @3.116s
ââchronyd.service @2.984s +131ms
âânss-lookup.target @2.982s
ââunbound.service @2.944s +37ms
âânetwork.target @2.893s
ââNetworkManager.service @2.142s +748ms
âânetwork-pre.target @2.141s
ââwpa_supplicant.service @2.947s +76ms
ââdbus.service @1.807s
ââbasic.target @1.803s
ââsockets.target @1.803s
ââsnapd.socket @1.802s +492us
ââsysinit.target @1.798s
ââsystemd-update-utmp.service @1.792s +5ms
ââauditd.service @1.725s +44ms
ââsystemd-tmpfiles-setup.service @1.692s +31ms
âârun-credentials-systemd\x2dtmpfiles\x2dsetu>
lines 1-22/22 (END)
Does anyone know what this means and would could be the reason and the consequences? â But boot sequence is within just a very few seconds, please compare to the output above. I am satisfied with my system and donât experience any poor performance in general use. Itâs just not sufficient for running a local LLM due to my Intel Core i3-9100 and no dedicated GPU or NPU at all.
And anyway, what is that serialstuff? Do I really need it? Do I depend on? So far, I havenât even known about any serial"devices" in my PCâŚ
As explained in the bugreport, systemd-analyze is a debugging tool. systemd-analyze blame is complete irrelevant for your use case (all device/serial/platform are processed in parallel and only add up some microseconds to the boot time) . NO, you canât remove the device/serial/platform.
The more important informations for normal users are gathered via the pure systemd-analyze or systemd-analyze critical-chain commands.
systemd-analyze without any additional options, shows the time until the system start is finished (Desktop reached)
systemd-analyze blame shows the time for all processes which are started when you start your machine even the ones which are still running after your system start finished. That is why you see the flatpak update service in your output with over a minute.