文档:Optimizing systemd to shorten the boot time
有一个默认启用的 systemd 单元文件列表。
这些单元文件定义的系统服务在启动时会自动运行,这会影响启动时间。
要检查系统引导性能,可以使用该systemd-analyze命令。
在开始检查 systemd 以调整启动时间之前,可能需要列出所有启用的服务:
- # systemctl list-unit-files --state=enabled
- UNIT FILE STATE
- run-vmblock\x2dfuse.mount enabled
- cups.path enabled
- accounts-daemon.service enabled
- atd.service enabled
- ...
-
- 81 unit files listed.
分析启动时间