Очень медленная загрузка на Ubuntu 20.04 - proUbuntu
0 голосов
/ 10 августа 2020
  1. Я не уверен, оправдано ли время, затраченное различными единицами в systemd- analyze или r больше?

  2. Любые предложения, которые вы это вызывает проблемы?

Примечание: устройства L oop являются приложениями snap

$ neofetch
            .-/+oossssoo+/-.
        `:+ssssssssssssssssss+:`
      -+ssssssssssssssssssyyssss+-
    .ossssssssssssssssssdMMMNysssso.
   /ssssssssssshdmmNNmmyNMMMMhssssss/
  +ssssssssshmydMMMMMMMNddddyssssssss+
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/
.ssssssssdMMMNhsssssssssshNMMMdssssssss.
+sssshhhyNMMNyssssssssssssyNMMMysssssss+
ossyNMMMNyMMhsssssssssssssshmmmhssssssso
ossyNMMMNyMMhsssssssssssssshmmmhssssssso
+sssshhhyNMMNyssssssssssssyNMMMysssssss+
.ssssssssdMMMNhsssssssssshNMMMdssssssss.
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/
  +sssssssssdmydMMMMMMMMddddyssssssss+
   /ssssssssssshdmNNNNmyNMMMMhssssss/      nikhil@X550JX 
    .ossssssssssssssssssdMMMNysssso.       ------------- 
      -+sssssssssssssssssyyyssss+-         OS: Ubuntu 20.04.1 LTS x86_64 
        `:+ssssssssssssssssss+:`           Host: X550JX 1.0 
            .-/+oossssoo+/-.               Kernel: 5.4.0-42-generic 
                                           Uptime: 1 hour, 19 mins 
                                           Packages: 2939 (dpkg), 316 (brew), 5 (flatpak), 16 (snap) 
                                           Shell: bash 5.0.17 
                                           Resolution: 1920x1080 
                                           DE: Unity 
                                           WM: Mutter 
                                           WM Theme: HighContrast 
                                           Theme: Yaru-light [GTK2/3] 
                                           Icons: Yaru [GTK2/3] 
                                           Terminal: vscode 
                                           CPU: Intel i7-4720HQ (8) @ 3.600GHz 
                                           GPU: NVIDIA GeForce GTX 950M 
                                           GPU: Intel 4th Gen Core Processor 
                                           Memory: 3358MiB / 7850MiB 
+ sudo systemd-analyze
Startup finished in 13.617s (firmware) + 9.996s (loader) + 6.944s (kernel) + 1min 23.546s (userspace) = 1min 54.104s 
graphical.target reached after 1min 23.534s in userspace
+ sudo systemd-analyze blame
23.181s dev-sda8.device                                                                          
19.926s docker.service                                                                           
17.764s systemd-tmpfiles-setup.service                                                           
14.380s udisks2.service                                                                          
13.527s dev-loop23.device                                                                        
13.303s snapd.service                                                                            
12.933s fwupd.service                                                                            
12.550s dev-loop21.device                                                                        
12.534s dev-loop22.device                                                                        
12.532s dev-loop26.device                                                                        
12.283s dev-loop19.device                                                                        
12.211s dev-loop20.device                                                                        
12.079s dev-loop10.device                                                                        
11.926s dev-loop8.device                                                                         
11.822s dev-loop25.device                                                                        
11.545s dev-loop24.device                                                                        
11.527s dev-loop2.device                                                                         
11.313s dev-loop17.device                                                                        
11.270s dev-loop18.device                                                                        
10.730s dev-loop12.device                                                                        
10.539s dev-loop11.device                                                                        
 9.977s dev-loop9.device                                                                         
 9.570s dev-loop0.device                                                                         
 9.164s dev-loop7.device                                                                         
 8.918s dev-loop5.device                                                                         
 8.888s dev-loop6.device                                                                         
 8.112s user@1000.service                                                                        
 7.980s dev-loop14.device                                                                        
 7.970s dev-loop15.device                                                                        
 7.961s dev-loop16.device                                                                        
 7.661s dev-loop13.device                                                                        
 7.293s dev-loop4.device                                                                         
 7.224s dev-loop3.device                                                                         
 7.210s NetworkManager.service                                                                   
 7.100s dev-loop1.device                                                                         
 6.534s blueman-mechanism.service                                                                
 6.522s systemd-journal-flush.service                                                            
 6.361s networkd-dispatcher.service                                                              
 5.040s NetworkManager-wait-online.service                                                       
 4.852s apt-daily-upgrade.service                                                                
 4.097s smartmontools.service                                                                    
 4.094s systemd-udevd.service                                                                    
 4.092s snap-core-9436.mount                                                                     
 3.848s ModemManager.service                                                                     
 3.841s snap-core-9665.mount                                                                     
 3.739s snap-core18-1754.mount                                                                   
 3.694s snap-core18-1880.mount                                                                   
 3.525s snap-core20-634.mount                                                                    
 3.187s accounts-daemon.service                                                                  
 2.967s colord.service                                                                           
 2.951s snap-deja\x2ddup-344.mount                                                               
 2.927s wpa_supplicant.service                                                                   
 2.868s snap-deja\x2ddup-359.mount                                                               
 2.801s grub-initrd-fallback.service                                                             
 2.653s snap-gnome\x2d3\x2d28\x2d1804-116.mount                                                  
 2.572s snap-gnome\x2d3\x2d28\x2d1804-128.mount                                                  
 2.374s systemd-fsck@dev-disk-by\x2duuid-f142204b\x2da3c1\x2d4ed4\x2db255\x2d944659cef7bd.service
 2.313s nginx.service                                                                            
 2.312s systemd-fsck@dev-disk-by\x2duuid-0E62\x2d991B.service                                    
 2.283s grub-common.service                                                                      
 2.266s snap-gnome\x2d3\x2d34\x2d1804-33.mount                                                   
 2.016s postfix@-.service                                                                        
 1.959s avahi-daemon.service                                                                     
 1.900s snap-gnome\x2d3\x2d34\x2d1804-36.mount                                                   
 1.762s apparmor.service                                                                         
 1.732s thermald.service                                                                         
 1.707s snap-gnome\x2dcalculator-730.mount                                                       
 1.504s systemd-tmpfiles-clean.service                                                           
 1.424s snap-gnome\x2dcalculator-748.mount                                                       
 1.383s systemd-fsck@dev-disk-by\x2duuid-da05c9bb\x2dd9f3\x2d44dd\x2d872d\x2dee106d971561.service
 1.380s snap-gnome\x2dcharacters-539.mount                                                       
 1.369s snap-gnome\x2dcharacters-550.mount                                                       
 1.357s snap-gnome\x2dlogs-100.mount                                                             
 1.337s snapd.apparmor.service                                                                   
 1.310s nvidia-persistenced.service                                                              
 1.286s gpu-manager.service                                                                      
 1.231s snap-gnome\x2dlogs-93.mount                                                              
 1.229s systemd-modules-load.service                                                             
 1.144s snap-gnome\x2dsystem\x2dmonitor-145.mount                                                
 1.014s snap-gnome\x2dsystem\x2dmonitor-148.mount                                                
  995ms snap-gtk\x2dcommon\x2dthemes-1440.mount                                                  
  968ms snap-gtk\x2dcommon\x2dthemes-1506.mount                                                  
  928ms apport-autoreport.service                                                                
  852ms systemd-sysusers.service                                                                 
  831ms systemd-backlight@backlight:intel_backlight.service                                      
  754ms gdm.service                                                                              
  674ms systemd-random-seed.service                                                              
  671ms systemd-tmpfiles-setup-dev.service                                                       
  634ms modprobe@drm.service                                                                     
  607ms keyboard-setup.service                                                                   
  603ms systemd-sysctl.service                                                                   
  591ms systemd-logind.service                                                                   
  568ms snap-libreoffice-180.mount                                                               
  526ms rsyslog.service                                                                          
  449ms kmod-static-nodes.service                                                                
  436ms atd.service                                                                              
  434ms snap-libreoffice-183.mount                                                               
  428ms binfmt-support.service                                                                   
  412ms systemd-udev-trigger.service                                                             
  401ms dev-disk-by\x2duuid-97399d72\x2ddc57\x2d4f90\x2da8c7\x2de9409582ccd9.swap                
  398ms dns-clean.service                                                                        
  393ms ufw.service                                                                              
  372ms snap-lossless\x2dcut-x1.mount                                                            
  323ms home.mount                                                                               
  319ms snap-xournalpp-22.mount                                                                  
  313ms upower.service                                                                           
  301ms snapd.seeded.service                                                                     
  289ms systemd-journald.service                                                                 
  277ms polkit.service                                                                           
  276ms mnt-Backup.mount                                                                         
  265ms plymouth-read-write.service                                                              
  264ms systemd-remount-fs.service                                                               
  264ms snap-xournalpp-31.mount                                                                  
  256ms snap-pdftk-9.mount                                                                       
  230ms proc-sys-fs-binfmt_misc.mount                                                            
  196ms boot-efi.mount                                                                           
  187ms apport.service                                                                           
  182ms bluetooth.service                                                                        
  176ms systemd-rfkill.service                                                                   
  128ms mono-xsp4.service                                                                        
  127ms systemd-resolved.service                                                                 
  126ms systemd-timesyncd.service                                                                
  120ms e2scrub_reap.service                                                                     
  114ms lm-sensors.service                                                                       
  110ms dev-hugepages.mount                                                                      
  109ms dev-mqueue.mount                                                                         
  108ms sys-kernel-debug.mount                                                                   
  107ms secureboot-db.service                                                                    
  107ms setvtrgb.service                                                                         
  107ms sys-kernel-tracing.mount                                                                 
   71ms systemd-update-utmp.service                                                              
   71ms switcheroo-control.service                                                               
   60ms console-setup.service                                                                    
   51ms pppd-dns.service                                                                         
   37ms kerneloops.service                                                                       
   36ms sysstat.service                                                                          
   32ms hddtemp.service                                                                          
   27ms ubuntu-fan.service                                                                       
   13ms alsa-restore.service                                                                     
   12ms user-runtime-dir@1000.service                                                            
   12ms containerd.service                                                                       
   11ms ureadahead-stop.service                                                                  
    9ms systemd-update-utmp-runlevel.service                                                     
    7ms openvpn.service                                                                          
    7ms systemd-user-sessions.service                                                            
    6ms rtkit-daemon.service                                                                     
    6ms docker.socket                                                                            
    5ms snapd.socket                                                                             
    4ms sys-fs-fuse-connections.mount                                                            
    4ms sys-kernel-config.mount                                                                  
    1ms plymouth-quit-wait.service                                                               

```bash
+ sudo systemd-analyze critical-chain
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.

graphical.target @1min 23.534s
└─multi-user.target @1min 23.534s
  └─docker.service @1min 3.607s +19.926s
    └─network-online.target @1min 3.605s
      └─NetworkManager-wait-online.service @58.563s +5.040s
        └─NetworkManager.service @51.351s +7.210s
          └─dbus.service @51.346s
            └─basic.target @51.308s
              └─sockets.target @51.307s
                └─snapd.socket @51.301s +5ms
                  └─sysinit.target @51.192s
                    └─systemd-timesyncd.service @51.063s +126ms
                      └─systemd-tmpfiles-setup.service @33.208s +17.764s
                        └─local-fs.target @33.186s
                          └─run-user-1000-gvfs.mount @1min 15.432s
                            └─run-user-1000.mount @1min 2.297s
                              └─swap.target @29.627s
                                └─dev-disk-by\x2duuid-97399d72\x2ddc57\x2d4f90\x2da8c7\x2de9409582ccd9.swap @29.226s +401ms
                                  └─dev-disk-by\x2duuid-97399d72\x2ddc57\x2d4f90\x2da8c7\x2de9409582ccd9.device @29.225s
+ sudo systemd-analyze plot
+ sudo dmesg -T --level=warn
[Mon Aug 10 10:58:26 2020] MDS CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/mds.html for more details.
[Mon Aug 10 10:58:26 2020]  #5 #6 #7
[Mon Aug 10 10:58:26 2020] pmd_set_huge: Cannot satisfy [mem 0xf8000000-0xf8200000] with a huge-page mapping due to MTRR override.
[Mon Aug 10 10:58:26 2020] ENERGY_PERF_BIAS: Set to 'normal', was 'performance'
[Mon Aug 10 10:58:26 2020] platform eisa.0: EISA: Cannot allocate resource for mainboard
[Mon Aug 10 10:58:26 2020] platform eisa.0: Cannot allocate resource for EISA slot 1
[Mon Aug 10 10:58:26 2020] platform eisa.0: Cannot allocate resource for EISA slot 2
[Mon Aug 10 10:58:26 2020] platform eisa.0: Cannot allocate resource for EISA slot 3
[Mon Aug 10 10:58:26 2020] platform eisa.0: Cannot allocate resource for EISA slot 4
[Mon Aug 10 10:58:26 2020] platform eisa.0: Cannot allocate resource for EISA slot 5
[Mon Aug 10 10:58:26 2020] platform eisa.0: Cannot allocate resource for EISA slot 6
[Mon Aug 10 10:58:26 2020] platform eisa.0: Cannot allocate resource for EISA slot 7
[Mon Aug 10 10:58:26 2020] platform eisa.0: Cannot allocate resource for EISA slot 8
[Mon Aug 10 10:58:26 2020] ACPI Warning: SystemIO range 0x0000000000001828-0x000000000000182F conflicts with OpRegion 0x0000000000001800-0x000000000000184F (\GPIS) (20190816/utaddress-204)
[Mon Aug 10 10:58:26 2020] ACPI Warning: SystemIO range 0x0000000000001828-0x000000000000182F conflicts with OpRegion 0x0000000000001800-0x000000000000187F (\PMIO) (20190816/utaddress-204)
[Mon Aug 10 10:58:26 2020] ACPI Warning: SystemIO range 0x0000000000001C40-0x0000000000001C4F conflicts with OpRegion 0x0000000000001C00-0x0000000000001C5F (\_SB.PCI0.PEG0.PEGP.GPR) (20190816/utaddress-204)
[Mon Aug 10 10:58:26 2020] ACPI Warning: SystemIO range 0x0000000000001C40-0x0000000000001C4F conflicts with OpRegion 0x0000000000001C00-0x0000000000001C7F (\GPIO) (20190816/utaddress-204)
[Mon Aug 10 10:58:26 2020] ACPI Warning: SystemIO range 0x0000000000001C40-0x0000000000001C4F conflicts with OpRegion 0x0000000000001C00-0x0000000000001C63 (\GP01) (20190816/utaddress-204)
[Mon Aug 10 10:58:26 2020] ACPI Warning: SystemIO range 0x0000000000001C30-0x0000000000001C3F conflicts with OpRegion 0x0000000000001C00-0x0000000000001C5F (\_SB.PCI0.PEG0.PEGP.GPR) (20190816/utaddress-204)
[Mon Aug 10 10:58:26 2020] ACPI Warning: SystemIO range 0x0000000000001C30-0x0000000000001C3F conflicts with OpRegion 0x0000000000001C00-0x0000000000001C7F (\GPIO) (20190816/utaddress-204)
[Mon Aug 10 10:58:26 2020] r8169 0000:04:00.1: can't disable ASPM; OS doesn't have ASPM control
[Mon Aug 10 10:58:26 2020] ACPI Warning: SystemIO range 0x0000000000001C30-0x0000000000001C3F conflicts with OpRegion 0x0000000000001C00-0x0000000000001C63 (\GP01) (20190816/utaddress-204)
[Mon Aug 10 10:58:26 2020] ACPI Warning: SystemIO range 0x0000000000001C30-0x0000000000001C3F conflicts with OpRegion 0x0000000000001C00-0x0000000000001C3F (\GPRL) (20190816/utaddress-204)
[Mon Aug 10 10:58:26 2020] ACPI Warning: SystemIO range 0x0000000000001C00-0x0000000000001C2F conflicts with OpRegion 0x0000000000001C00-0x0000000000001C5F (\_SB.PCI0.PEG0.PEGP.GPR) (20190816/utaddress-204)
[Mon Aug 10 10:58:26 2020] ACPI Warning: SystemIO range 0x0000000000001C00-0x0000000000001C2F conflicts with OpRegion 0x0000000000001C00-0x0000000000001C7F (\GPIO) (20190816/utaddress-204)
[Mon Aug 10 10:58:26 2020] ACPI Warning: SystemIO range 0x0000000000001C00-0x0000000000001C2F conflicts with OpRegion 0x0000000000001C00-0x0000000000001C63 (\GP01) (20190816/utaddress-204)
[Mon Aug 10 10:58:26 2020] ACPI Warning: SystemIO range 0x0000000000001C00-0x0000000000001C2F conflicts with OpRegion 0x0000000000001C00-0x0000000000001C3F (\GPRL) (20190816/utaddress-204)
[Mon Aug 10 10:58:26 2020] lpc_ich: Resource conflict(s) found affecting gpio_ich
[Mon Aug 10 10:58:27 2020] usb 1-7: config 1 interface 1 altsetting 4 endpoint 0x81 has invalid wMaxPacketSize 0
[Mon Aug 10 10:58:53 2020] [Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS
[Mon Aug 10 10:58:54 2020] nvidia: loading out-of-tree module taints kernel.
[Mon Aug 10 10:58:54 2020] nvidia: module license 'NVIDIA' taints kernel.
[Mon Aug 10 10:58:54 2020] Disabling lock debugging due to kernel taint
[Mon Aug 10 10:58:54 2020] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  435.21  Sun Aug 25 08:17:57 CDT 2019
[Mon Aug 10 10:58:57 2020] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20190816/nsarguments-59)
[Mon Aug 10 10:58:58 2020] uvcvideo 1-7:1.0: Entity type for entity Extension 2 was not initialized!
[Mon Aug 10 10:58:58 2020] uvcvideo 1-7:1.0: Entity type for entity Extension 5 was not initialized!
[Mon Aug 10 10:58:58 2020] uvcvideo 1-7:1.0: Entity type for entity Processing 3 was not initialized!
[Mon Aug 10 10:58:58 2020] uvcvideo 1-7:1.0: Entity type for entity Camera 1 was not initialized!
[Mon Aug 10 10:59:30 2020] kauditd_printk_skb: 43 callbacks suppressed
[Mon Aug 10 10:59:51 2020] Started bpfilter
...