AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 999662
Accepted
michele_ub
michele_ub
Asked: 2018-01-26 01:17:18 +0800 CST2018-01-26 01:17:18 +0800 CST 2018-01-26 01:17:18 +0800 CST

启动时间 Ubuntu 16.04 [重复]

  • 772
这个问题在这里已经有了答案:
Ubuntu 16.04 慢启动(apt-daily.service) 3 个答案
4年前关闭。

我有一台安装了 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)`

那么,我能做些什么来加快启动速度(如果可能的话)?

16.04
  • 1 1 个回答
  • 419 Views

1 个回答

  • Voted
  1. Best Answer
    michele_ub
    2018-01-26T07:38:27+08:002018-01-26T07:38:27+08:00

    在第一条评论中@fixi7推荐的链接上,我找到了我的问题的解决方案(它似乎有效),即 do:sudo systemctl edit apt-daily.timer并将以下文本粘贴到编辑器窗口中:

    # apt-daily timer configuration override
    [Timer]
    OnBootSec=15min
    OnUnitActiveSec=1d
    AccuracySec=1h
    RandomizedDelaySec=30min
    

    现在,输出$ systemd-analyze time && systemd-analyze blame 是:

    Startup finished in 3.454s (kernel) + 27.151s (userspace) = 30.605s
         15.729s dev-sda4.device
         11.691s systemd-tmpfiles-setup-dev.service
         10.565s systemd-sysctl.service
          5.548s udisks2.service
          5.384s NetworkManager-wait-online.service
          4.860s snapd.service
          3.605s console-setup.service
          2.556s gpu-manager.service
          2.027s ModemManager.service
          1.996s lightdm.service
          1.982s accounts-daemon.service
          1.817s apparmor.service
          1.660s iio-sensor-proxy.service
          1.416s systemd-rfkill.service
          1.371s thermald.service
          1.240s keyboard-setup.service
          1.183s systemd-modules-load.service
           979ms apt-daily.service
           924ms systemd-tmpfiles-setup.service
           911ms systemd-journald.service
           818ms dev-loop0.device
           734ms irqbalance.service
           606ms avahi-daemon.service
    

    启动时间大大减少。

    • 0

相关问题

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve