我有一台安装了 Ubuntu 16.04 的 HP 笔记本电脑(使用 Windows 10 进行双启动)。系统开机占用1m多,从下图可以看出:
$ systemd-analyze time && systemd-analyze blame
Startup finished in 3.504s (kernel) + 1min 7.512s (userspace) = 1min 11.016s
24.675s apt-daily.service
16.924s apt-daily-upgrade.service
15.427s dev-sda4.device
11.694s systemd-journald.service
11.549s systemd-tmpfiles-setup-dev.service
8.627s systemd-sysctl.service
6.496s NetworkManager-wait-online.service
5.204s snapd.service
3.586s gpu-manager.service
3.033s systemd-modules-load.service
2.285s NetworkManager.service
2.067s udisks2.service
1.856s thermald.service
1.633s ModemManager.service
1.595s accounts-daemon.service
1.468s apparmor.service
1.368s lightdm.service
1.181s iio-sensor-proxy.service
1.035s systemd-rfkill.service
986ms grub-common.service
915ms keyboard-setup.service
778ms upower.service
734ms plymouth-start.service
CPU:(sudo lscpu
另见inxi -C
)
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 2
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 42
Model name: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz
Stepping: 7
CPU MHz: 1995.596
CPU max MHz: 2900,0000
CPU min MHz: 800,0000
BogoMIPS: 3991.19
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 6144K
NUMA node0 CPU(s): 0-7
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm epb pti tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm ida arat pln pts
图形硬件:(lspci | grep VGA
另见inxi -G
)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD 6730M/6770M/7690M XT] (rev ff)`
那么,我能做些什么来加快启动速度(如果可能的话)?
在第一条评论中@fixi7推荐的链接上,我找到了我的问题的解决方案(它似乎有效),即 do:
sudo systemctl edit apt-daily.timer
并将以下文本粘贴到编辑器窗口中:现在,输出
$ systemd-analyze time && systemd-analyze blame
是:启动时间大大减少。