[Boot/Shutdown] 优化启动速度
Tofloor
poster avatar
海天鹰
deepin
2021-12-12 19:22
Author

不记得从什么时候开始,机械硬盘系统启动时长进入2分钟的级别了!

查看启动进程时长:systemd-analyze blame

48秒,apt-daily.service

必须关闭系统更新的清理软件包缓存,然后
sudo systemctl disable apt-daily.service

然而,下下次启动,又有了!

42秒,man-db.service

不知道是什么,不知道能不能关闭。

Reply Favorite View the author
All Replies
HualetWang
deepin
2021-12-12 20:31
#1

这个工具看到的情况并不完全准确,但是能看到一些不应该启动或者时机、依赖的问题,我们看是否有优化空间。

Reply View the author
Linux大宝
deepin
2021-12-13 04:50
#2

优化了一下,缩短到15秒内,已经很满意了(因为还要使用 VBOX,否则还可以向10秒再争取争取)

ksnip_20211212-204601.png

Reply View the author
Comments
ronghai
2021-12-13 17:05
如何优化,请赐教
wyz144343
deepin
2021-12-13 08:50
#3
Linux大宝

优化了一下,缩短到15秒内,已经很满意了(因为还要使用 VBOX,否则还可以向10秒再争取争取)

ksnip_20211212-204601.png

firmware 怎么优化的啊?

Reply View the author
ronghai
deepin
2021-12-13 17:29
#4
Linux大宝

优化了一下,缩短到15秒内,已经很满意了(因为还要使用 VBOX,否则还可以向10秒再争取争取)

ksnip_20211212-204601.png

截图_选择区域_20211213092830.png

拜托看看,我的机械硬盘咋优化

1min 3.092s apt-daily-upgrade.service

Reply View the author
zeno
deepin
2021-12-13 18:09
#5

可以试一下sudo systemctl disable NetworkManager-wait-online.service

Reply View the author
jiutian123
deepin
2021-12-13 19:54
#6
Linux大宝

优化了一下,缩短到15秒内,已经很满意了(因为还要使用 VBOX,否则还可以向10秒再争取争取)

ksnip_20211212-204601.png

nsz@nsz:~$ systemd-analyze blame
30.020s NetworkManager-wait-online.service
6.949s apt-daily-upgrade.service

Reply View the author
Linux大宝
deepin
2021-12-15 03:48
#7

试试修改 /etc/systemd/system.conf 文件,把其中的

#DefaultTimeoutStartSec=90s

#DefaultTimeoutStopSec=90s

修改为

DefaultTimeoutStartSec=5s

DefaultTimeoutStopSec=3s

至于 NetworkManager-wait-online.service,得看你的网络使用情况。

我的电脑用不了网线,使用 Wifi,禁用了它也没见什么影响。

此外,可以检查看看有没有额外的旧内核,可以把它们删掉,也能起到加速的效果。

Reply View the author
ronghai
deepin
2021-12-20 01:33
#8

man-db.service怎么优化

Reply View the author