我使用的是Ubuntu 16.04,过了一段时间(我猜这是在更新Nvidia驱动程序之后开始发生的),我的计算机启动速度非常慢。我试图停用一些不需要的服务,但没有帮助。我跑了dmesg
,发现有些差距很大。这是完整的日志:https :
//pastebin.com/d4EVfi8r
我希望有人可以帮助我。
编辑:
systemd-analyze blame | head
2min 16.363s docker.service
23.442s rabbitmq-server.service
16.774s grub-common.service
15.149s postgresql@9.5-main.service
13.691s dev-sda1.device
11.113s NetworkManager-wait-online.service
9.852s ModemManager.service
9.278s accounts-daemon.service
8.372s iio-sensor-proxy.service
8.176s apparmor.service
lspci -k | grep -iEA3 '3D|VGA'
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
Subsystem: Acer Incorporated [ALI] 3rd Gen Core processor Graphics Controller
Kernel driver in use: i915
Kernel modules: i915
--
01:00.0 3D controller: NVIDIA Corporation GK208M [GeForce GT 740M] (rev a1)
Subsystem: Acer Incorporated [ALI] GK208M [GeForce GT 740M]
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_375_drm, nvidia_375
编辑2:
禁用某些服务后,systemd-analyze blame | head
将返回以下内容:
13.900s dev-sda1.device
12.040s NetworkManager-wait-online.service
10.572s ModemManager.service
9.424s accounts-daemon.service
8.030s apparmor.service
7.827s grub-common.service
7.356s systemd-logind.service
6.810s rsyslog.service
6.769s avahi-daemon.service
6.766s bluetooth.service
编辑3:
输出 /var/log/boot.log
编辑4:
从Grub到登录屏幕大约需要30秒钟,但是从登录屏幕直到我的计算机可以使用为止,大约需要一分钟。
systemd-analyze blame | head
禁用这些服务现在怎么说?
systemd-analyze blame | head
和lspci -k | grep -iEA3 '3D|VGA'
讨好?