[Topic DIscussion] 开机可以禁用的服务有哪些?
Tofloor
poster avatar
jiutian123
deepin
2021-08-22 23:52
Author

 1.571s lightdm.service

           870ms systemd-logind.service

           838ms plymouth-start.service

           645ms dev-sda4.device

           542ms udisks2.service

           323ms smbd.service

           313ms ModemManager.service

           312ms laptop-mode.service

           299ms systemd-fsck@dev-disk-by\x2duuid-4d216e35\x2dc2db\x2d458d\x2d8644\x2d41f2b57ce11b.service

           286ms systemd-hwdb-update.service

           281ms deepin-accounts-daemon.service

           254ms accounts-daemon.service

           178ms NetworkManager.service

           177ms upower.service

           165ms wpa_supplicant.service

           158ms bluetooth.service

           146ms rsyslog.service

           146ms lmt-poll.service

           137ms deepin-anything-tool.service

           119ms lvm2-monitor.service

           108ms plymouth-read-write.service

            95ms home.mount

            88ms systemd-udev-trigger.service

            83ms systemd-journal-flush.service

            78ms deepin-login-sound.service

            78ms dde-filemanager-daemon.service

lines 1-26/68 34%

71ms user@1000.service

            67ms lastore-daemon.service

            66ms systemd-journald.service

            66ms systemd-fsck@dev-disk-by\x2duuid-60ae5b8a\x2db84b\x2d4b3b\x2dbb77\x2dfc55d0855b92.service

            59ms polkit.service

            53ms ssh.service

            45ms dev-disk-by\x2duuid-b0bbb310\x2dfdea\x2d4e7a\x2dbd07\x2dcf876af72feb.swap

            40ms deepin-authenticate.service

            35ms systemd-udevd.service

            31ms networking.service

            29ms systemd-timesyncd.service

            23ms systemd-binfmt.service

            15ms systemd-sysusers.service

            15ms systemd-modules-load.service

            14ms systemd-tmpfiles-setup.service

            14ms user-runtime-dir@1000.service

            13ms systemd-remount-fs.service

            13ms systemd-tmpfiles-setup-dev.service

            13ms alsa-restore.service

            12ms pppd-dns.service

            12ms sys-kernel-debug.mount

            12ms proc-sys-fs-binfmt_misc.mount

            11ms systemd-user-sessions.service

            11ms blk-availability.service

            11ms systemd-sysctl.service

            11ms systemd-random-seed.service

lines 27-52/68 71%

10ms boot.mount

            10ms systemd-rfkill.service

             9ms dev-hugepages.mount

             9ms kmod-static-nodes.service

             9ms systemd-update-utmp.service

             8ms systemd-backlight@backlight:intel_backlight.service

             7ms sys-fs-fuse-connections.mount

             6ms systemd-update-utmp-runlevel.service

             6ms sys-kernel-config.mount

             4ms dev-mqueue.mount

             3ms ifupdown-pre.service

           289us clean-mount-point@media-nsz-\xe6\x9c\xac\xe5\x9c\xb0\xe7\xa3\x81\xe7\x9b\x98.service

           194us clean-mount-point@media-nsz-\xe6\x9c\xac\xe5\x9c\xb0\xe7\xa3\x81\xe7\x9b\x981.service

           191us clean-mount-point@media-nsz-\x20\xe6\x9c\xac\xe5\x9c\xb0\xe7\xa3\x81\xe7\x9b\x98.service

           188us clean-mount-point@media-nsz-19F1503F734BF7C5.service

           187us clean-mount-point@media-nsz-\xe6\x95\xb0\xe6\x8d\xae\xe7\x9b\x982.service

lines 43-68/68 (END)

nsz@nsz:~$ systemd-analyze 

Startup finished in 6.036s (kernel) + 4.399s (userspace) = 10.435s 

graphical.target reached after 4.391s in userspace

 

开机已禁用这四个

sudo systemctl disable NetworkManager-wait-online.service 

sudo systemctl mask plymouth-quit-wait.service

sudo systemctl mask nmbd.service

sudo systemctl mask bluetooth.service

 

 

Reply Favorite View the author
All Replies
jiutian123
deepin
2021-08-23 03:13
#1

关闭几个典型的耗用时间长的程序

sudo systemctl mask plymouth-quit-wait.service

sudo systemctl disable NetworkManager-wait-online.service

sudo systemctl mask plymouth-start.service

sudo systemctl mask plymouth-read-write.service

 

若要恢复,将mask换unmask、disable换enable

———转「我是帅气的大叔」

 

Reply View the author
Ziggy
deepin
2021-08-23 07:14
#2

不建议更改系统服务,有报错的可以不断更换合适自己硬件的内核,机械硬盘再优化也比不上SSD的

Reply View the author
keep_up
deepin
2021-08-23 18:22
#3

系统服务一般不是累赘,不建议在不熟悉的情况下禁用。

如果电脑速度不够快的话,可以禁用深度自带的文件索引,关闭方式:文件管理器 - 右上角三横 - 设置 - 索引 - 去掉"自动索引"的对勾

不过看你的电脑速度不赖呀

Reply View the author
jiutian123
deepin
2021-08-23 22:32
#4
keep_up

系统服务一般不是累赘,不建议在不熟悉的情况下禁用。

如果电脑速度不够快的话,可以禁用深度自带的文件索引,关闭方式:文件管理器 - 右上角三横 - 设置 - 索引 - 去掉"自动索引"的对勾

不过看你的电脑速度不赖呀

好的 谢谢 还好,比以前好多了

Reply View the author