[Feelings & Sharing] 你的deepin启动耗时分析有看过么?
Tofloor
poster avatar
babyfengfjx
Super Moderator
CQA
2022-12-22 22:54
Author

systemd-analyze

systemd-analyze 命令可以方便的记录系统启动耗时详情

可以通过:
systemd-analyze plot > start_analyze.svg命令来输出启动耗时的矢量图,如下图所示:

启动耗时

可以通过:
systemd-analyze blame 来获得详细的进程耗时排名信息:

8.382s vmware-USBArbitrator.service
8.140s upower.service
6.655s NetworkManager-wait-online.service
5.138s man-db.service
4.477s deepin-authenticate.service
2.042s plymouth-quit-wait.service
1.222s vmware.service
1.172s udisks2.service
1.138s deepin-accounts-daemon.service
1.122s smartmontools.service
 996ms apt-daily-upgrade.service
 974ms logrotate.service
 876ms systemd-journal-flush.service
 756ms nvidia-persistenced.service
 613ms [email protected]
 600ms accounts-daemon.service
 600ms ModemManager.service
 594ms NetworkManager.service
 591ms laptop-mode.service
 591ms gpu-manager.service
 582ms vboxdrv.service
 495ms polkit.service
 477ms apparmor.service
 425ms dde-filemanager-daemon.service
 421ms colord.service
 380ms lightdm.service
 341ms systemd-modules-load.service
 315ms ipwatchd.service
 302ms apt-daily.service
 236ms winbind.service
 228ms uengine-container.service
 226ms libvirt-guests.service
 180ms smbd.service
 143ms systemd-fsck@dev-disk-by\x2duuid-4bd99115\x2d99b6\x2d4ab7\x2dae9b\x2d72bfa8c9020d.servic
 142ms dev-nvme0n1p4.device
 131ms lvm2-monitor.service
 126ms nmbd.service
  97ms bluetooth.service
  96ms avahi-daemon.service
  92ms fprintd.service
  81ms systemd-logind.service
  81ms systemd-machined.service
  80ms wpa_supplicant.service
  77ms lxc.service
  68ms libvirtd.service
  51ms home.mount
  51ms data.mount
  50ms systemd-udev-trigger.service
  49ms systemd-udevd.service
  41ms systemd-fsck@dev-disk-by\x2duuid-75d72b1d\x2d874c\x2d4a3a\x2da715\x2d986a996ee814.servic
  39ms rsyslog.service
  38ms systemd-timesyncd.service
  37ms systemd-fsck@dev-disk-by\x2duuid-048fef2c\x2ded60\x2d4e39\x2daeef\x2d0f43b208f9ad.servic
  35ms opt.mount
  32ms systemd-journald.service
  27ms systemd-fsck@dev-disk-by\x2duuid-FD8E\x2d6C7A.service
  24ms root.mount
  21ms plymouth-read-write.service
  20ms systemd-tmpfiles-setup-dev.service
  20ms systemd-tmpfiles-setup.service
  19ms alsa-restore.service
  19ms networking.service
  18ms systemd-binfmt.service
  18ms systemd-random-seed.service
  14ms plymouth-start.service
  13ms systemd-update-utmp.service
  13ms lm-sensors.service
  11ms hddtemp.service
  11ms dev-disk-by\x2duuid-9ee15dc1\x2d16af\x2d4dbb\x2d9161\x2d6b17bee2461e.swap
  10ms pppd-dns.service
   9ms systemd-tmpfiles-clean.service
   9ms dev-hugepages.mount
   9ms proc-sys-fs-binfmt_misc.mount
   8ms dev-mqueue.mount
   8ms sys-kernel-debug.mount
   7ms sys-kernel-tracing.mount
   7ms [email protected]
   7ms blk-availability.service
   7ms kmod-static-nodes.service
   7ms systemd-remount-fs.service
   6ms [email protected]
   6ms [email protected]
   5ms lmt-poll.service
   5ms boot.mount
   5ms [email protected]
   5ms systemd-sysusers.service
   5ms systemd-user-sessions.service
   5ms systemd-update-utmp-runlevel.service
   5ms recovery.mount
   4ms lxc-net.service
   4ms ufw.service
   3ms dev-loop0.device
   3ms boot-efi.mount
   3ms systemd-sysctl.service
   3ms vboxautostart-service.service
   3ms ifupdown-pre.service
   3ms vboxballoonctrl-service.service
   2ms var.mount
   2ms systemd-rfkill.service
   2ms vboxweb-service.service
   1ms sys-fs-fuse-connections.mount
   1ms deepin-login-sound.service
   1ms sys-kernel-config.mount
Reply Favorite View the author
All Replies
liwl
deepin
2022-12-22 23:00
#1

看过了,我的有些慢啊,这有些奇怪

你的 plymouth-quit-wait.service,怎么这么快

Reply View the author
babyfengfjx
Super Moderator
CQA
2022-12-22 23:19
#2

plymouth-quit-wait.service 这玩意是个啥😂

Reply View the author
Ziggy
deepin
2022-12-22 23:27
#3

原来还能这么导出,学会了

Reply View the author
blue_whale
deepin
2022-12-23 00:37
#4

好命令, 收到wiki里面

https://wiki.deepin.org/zh/系统日志

Reply View the author
liwl
deepin
2022-12-23 00:37
#5
babyfengfjx

plymouth-quit-wait.service 这玩意是个啥😂

开机动画。。。

Reply View the author
babyfengfjx
Super Moderator
CQA
2022-12-23 00:50
#6
blue_whale

好命令, 收到wiki里面

https://wiki.deepin.org/zh/系统日志

放到这里了:https://wiki.deepin.org/zh/03_%E6%8C%89%E7%9F%A5%E8%AF%86%E7%82%B9%E7%AD%89%E7%BA%A7%E5%88%92%E5%88%86/00_%E5%85%A5%E9%97%A8/00_linux%E5%9F%BA%E7%A1%80/linux%E7%B3%BB%E7%BB%9F%E5%90%AF%E5%8A%A8%E8%80%97%E6%97%B6%E5%88%86%E6%9E%90

Reply View the author
babyfengfjx
Super Moderator
CQA
2022-12-23 00:50
#7
liwl

开机动画。。。

秀儿,说明我的机器牛皮些~

Reply View the author
ice
Moderator
2022-12-23 03:02
#8

技术冯

Reply View the author
deepin_deepin
deepin
2022-12-24 18:39
#9

真不戳。。

Reply View the author
xuqi
deepin testing team
2022-12-27 16:55
#10

like

Reply View the author