由于 systemd 临时文件创建,ubuntu 启动时启动过程缓慢

由于 systemd 临时文件创建,ubuntu 启动时启动过程缓慢

我在戴尔笔记本电脑上运行 ubuntu 16.04;我只是喜欢这样一个事实,即您可以在 16.04 中将工作区设置为网格格式,这与 18.04 不同,它看起来像一条线,但不确定 20 是否确实具有网格工作区设置。 CPU:Intel Core i5-i7 RAM:8GB 存储:512G​​B PCIe SSD。

当我启动 ubuntu 时,我收到一条消息:

A job is running for creating volatile and temporary files and directories

此过程需要一段时间才能完成,以便 ubuntu 最终启动,如下所示:

systemd-analyze critical-chain 
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.

graphical.target @2min 25.315s
└─multi-user.target @2min 25.315s
  └─hddtemp.service @2min 25.291s +22ms
    └─network-online.target @2min 25.290s
      └─NetworkManager-wait-online.service @2min 15.008s +10.280s
        └─NetworkManager.service @2min 12.427s +2.568s
          └─dbus.service @2min 12.223s
            └─basic.target @2min 12.168s
              └─sockets.target @2min 12.166s
                └─snapd.socket @2min 12.124s +39ms
                  └─sysinit.target @2min 12.103s
                    └─systemd-update-utmp.service @2min 12.063s +38ms
                      └─systemd-tmpfiles-setup.service @5.904s +2min 6.076s
                        └─local-fs.target @5.897s
                          └─local-fs-pre.target @5.705s
                            └─systemd-tmpfiles-setup-dev.service @4.067s +1.635s
                              └─kmod-static-nodes.service @3.861s +202ms
                                └─systemd-journald.socket @3.485s
                                  └─-.slice @2.994s

systemd-tmpfiles-setup.service启动时占用过多时间的原因可能是什么?

相关内容