気になっていたので、どうして遅いかを調べてみた。
$ systemd-analyze blame
20.866s plymouth-quit-wait.service
13.920s fstrim.service
10.140s nmbd.service
7.364s configure-printer@usb-002-005.service
6.510s NetworkManager-wait-online.service
1.561s dev-sda1.device
1.446s keyboard-setup.service
1.147s apt-daily.service
1.105s systemd-journal-flush.service
861ms snapd.service
788ms fwupd.service
715ms vboxdrv.service
684ms grub-common.service
615ms speech-dispatcher.service
574ms udisks2.service
567ms systemd-udevd.service
490ms apparmor.service
485ms NetworkManager.service
444ms apport.service
427ms networkd-dispatcher.service
345ms networking.service
340ms systemd-hostnamed.service
$ systemd-analyze blame | head で遅いserviceを特定
$ apt-dairy.service と出た (Logを取り忘れ)
limepikoさんによると、/etc/systemd/system.confを変更するイイらしいということでやってみる
#DefaultTimeoutStartSec=90s
#DefaultTimeoutStopSec=90s
↓
DefaultTimeoutStartSec=1s
DefaultTimeoutStopSec=1s
変更後
$ systemd-analyze blame | head
6.463s NetworkManager-wait-online.service
1.380s systemd-journal-flush.service
1.250s nmbd.service
1.122s dev-sda1.device
1.055s configure-printer@usb-002-005.service
948ms keyboard-setup.service
885ms snapd.seeded.service
732ms snapd.service
707ms vboxdrv.service
653ms NetworkManager.service
$ systemd-analyze blame
20.866s plymouth-quit-wait.service
13.920s fstrim.service
10.140s nmbd.service
7.364s configure-printer@usb-002-005.service
6.510s NetworkManager-wait-online.service
1.561s dev-sda1.device
1.446s keyboard-setup.service
1.147s apt-daily.service
1.105s systemd-journal-flush.service
861ms snapd.service
788ms fwupd.service
715ms vboxdrv.service
684ms grub-common.service
615ms speech-dispatcher.service
574ms udisks2.service
567ms systemd-udevd.service
490ms apparmor.service
485ms NetworkManager.service
444ms apport.service
427ms networkd-dispatcher.service
345ms networking.service
340ms systemd-hostnamed.service
$ systemd-analyze blame | head で遅いserviceを特定
$ apt-dairy.service と出た (Logを取り忘れ)
limepikoさんによると、/etc/systemd/system.confを変更するイイらしいということでやってみる
#DefaultTimeoutStartSec=90s
#DefaultTimeoutStopSec=90s
↓
DefaultTimeoutStartSec=1s
DefaultTimeoutStopSec=1s
変更後
$ systemd-analyze blame | head
6.463s NetworkManager-wait-online.service
1.380s systemd-journal-flush.service
1.250s nmbd.service
1.122s dev-sda1.device
1.055s configure-printer@usb-002-005.service
948ms keyboard-setup.service
885ms snapd.seeded.service
732ms snapd.service
707ms vboxdrv.service
653ms NetworkManager.service
0 件のコメント:
コメントを投稿