2个问题:开机越来越慢和DNS问题
Tofloor
poster avatar
deepin2017
deepin
2017-11-19 16:17
Author
1、开机时间越来越久,有什么方法可解决?
2、50M光钎,15.5版用第三方DNS网页速度变得无比慢,很多网页打不开,比如设置114.114.114.114,改为自动获取后速度超快,而15.4版没有这个问题,是否是共性?

Reply Favorite View the author
All Replies
avatar
duanyao
deepin
2017-11-19 17:37
#1
自动获取的 DNS 通常是比 114 这样的公共 DNS 要快的,因为离你的机器更近,但有时不太可靠。
浏览器都有自己的 DNS 缓存,所以一般是能抹平这点 DNS 的速度差异的。
至于你说很多网页打不开,我觉得不太可能是系统的问题。测试一下 114.114.114.114 有多快?

time nslookup https://bbs.deepin.org/module 114.114.114.114

我这里的结果是:

Server:                114.114.114.114
Address:        114.114.114.114#53

Non-authoritative answer:
https://bbs.deepin.org/module        canonical name = https://bbs.deepin.org/module
Name:        https://bbs.deepin.org/module
Address: 61.135.169.121
Name:        https://bbs.deepin.org/module
Address: 61.135.169.125

real        0m0.054s
user        0m0.012s
sys        0m0.004s
Reply View the author
avatar
owen19
deepin
2017-11-19 18:38
#2
我试了下设置“启动菜单”,发现开机速度会变快一些


另外,请问楼主DNS“改为自动获取”,这个是在哪里改?
Reply View the author
avatar
solarflare
deepin
2017-11-20 01:23
#3
关于启动越来越慢的问题,比较大的可能是上游debian的bug。运行
  1. systemd-analyze blame
Copy the Code
,如果发现里面有apt-daily,运行
  1. sudo systemctl edit apt-daily.timer
Copy the Code
,把下面的代码粘进去然后重启:
  1. # apt-daily timer configuration override
  2. [Timer]
  3. OnBootSec=15min
  4. OnUnitActiveSec=1d
  5. AccuracySec=1h
  6. RandomizedDelaySec=30min
Copy the Code
Reply View the author
avatar
152******14
deepin
2017-11-20 02:35
#4
systemd-analyze blame
         13.232s NetworkManager-wait-online.service
          6.719s systemd-journal-flush.service
          6.164s dev-sda6.device
          3.907s accounts-daemon.service
          3.528s nmbd.service
          3.065s pppd-dns.service
          2.989s systemd-logind.service
          2.972s avahi-daemon.service
          2.618s networking.service
          2.213s ModemManager.service
          1.922s wpa_supplicant.service
          1.769s lvm2-monitor.service
          1.359s lightdm.service
          1.356s plymouth-quit-wait.service
          1.216s NetworkManager.service
          1.037s smbd.service
           963ms systemd-tmpfiles-setup-dev.service
           941ms systemd-modules-load.service
           857ms systemd-udevd.service
           787ms systemd-binfmt.service
           764ms lastore-daemon.service
           743ms miracle-dispd.service
           620ms sys-kernel-debug.mount
           619ms dev-hugepages.mount
           595ms dev-mqueue.mount
           540ms upower.service
           535ms proc-sys-fs-binfmt_misc.mount
           505ms polkit.service
           395ms systemd-backlight@backlight:acpi_video1.service
           393ms systemd-tmpfiles-clean.service
           362ms systemd-journald.service
           341ms plymouth-read-write.service
           334ms systemd-udev-trigger.service
           304ms systemd-tmpfiles-setup.service
           271ms swapfile.swap
           255ms kmod-static-nodes.service
           235ms udisks2.service
           230ms plymouth-start.service
           188ms systemd-backlight@backlight:acpi_video0.service
           184ms systemd-random-seed.service
           182ms systemd-timesyncd.service
           166ms miracle-wifid.service
           137ms systemd-rfkill.service
            95ms systemd-sysctl.service
            83ms user@1000.service
            77ms systemd-user-sessions.service
            65ms systemd-remount-fs.service
            65ms systemd-backlight@backlight:radeon_bl0.service
            60ms systemd-update-utmp.service
            34ms hostapd.service
            15ms alsa-restore.service
            13ms systemd-update-utmp-runlevel.service
             3ms sys-fs-fuse-connections.mount
lines 38-53/53 (END)
Reply View the author