[Risolto] Avvio lento circa 60 secondi

Dopo aver aggiornato il sistema con fedup alla versione 22 ho riscontrato che all’avvio ci mette tanto tempo, riporto di seguito l’output di:

[skiava@skiava]# uname -r
4.2.6-200.fc22.x86_64
[root@skiava]# systemd-analyze time
Startup finished in 988ms (kernel) + 5.253s (initrd) + 51.535s (userspace) = 57.777s
[root@skiava]# systemd-analyze blame --no-pager
         35.673s plymouth-quit-wait.service
         10.702s dev-mapper-fedora\x2droot.device
         10.128s firewalld.service
          7.375s accounts-daemon.service
          6.641s ModemManager.service
          6.237s systemd-udev-settle.service
          4.170s lm_sensors.service
          3.797s rtkit-daemon.service
          3.719s abrtd.service
          2.805s cups.service
          2.652s systemd-journald.service
          1.979s systemd-udevd.service
          1.712s lvm2-monitor.service
          1.582s systemd-binfmt.service
          1.486s packagekit.service
          1.410s fedora-readonly.service
          1.311s systemd-tmpfiles-setup-dev.service
          1.228s NetworkManager.service
          1.225s gdm.service
          1.151s plymouth-start.service
           981ms abrt-ccpp.service
           927ms proc-sys-fs-binfmt_misc.mount
           847ms chronyd.service
           846ms dmraid-activation.service
           820ms udisks2.service
           790ms systemd-journal-flush.service
           733ms colord.service
           704ms polkit.service
           698ms systemd-fsck@dev-disk-by\x2duuid-3d9fb24e\x2d047c\x2d46c7\x2db45a\x2d36272f0a2720.service
           682ms lvm2-pvscan@8:18.service
           678ms systemd-logind.service
           575ms mcelog.service
           520ms netcf-transaction.service
           490ms systemd-fsck@dev-mapper-fedora\x2dhome.service
           462ms systemd-udev-trigger.service
           402ms systemd-vconsole-setup.service
           375ms systemd-tmpfiles-setup.service
           363ms [email protected]
           354ms systemd-tmpfiles-clean.service
           346ms dev-hugepages.mount
           343ms home.mount
           335ms systemd-remount-fs.service
           321ms systemd-sysctl.service
           283ms kmod-static-nodes.service
           278ms boot.mount
           259ms fedora-import-state.service
           240ms wpa_supplicant.service
           239ms systemd-update-utmp.service
           234ms tmp.mount
           203ms systemd-random-seed.service
           197ms [email protected]
           129ms systemd-fsck-root.service
           125ms upower.service
           105ms dev-mapper-fedora\x2dswap.swap
            99ms plymouth-read-write.service
            71ms systemd-user-sessions.service
            60ms sys-kernel-debug.mount
            55ms auditd.service
            51ms dev-mqueue.mount
            44ms dracut-shutdown.service
            34ms sys-fs-fuse-connections.mount
            17ms systemd-update-utmp-runlevel.service
             5ms sys-kernel-config.mount
[root@skiava]# systemd-analyze critical-chain --no-pager
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.

graphical.target @51.514s
└─multi-user.target @51.511s
  └─NetworkManager.service @22.014s +1.228s
    └─firewalld.service @11.882s +10.128s
      └─basic.target @11.639s
        └─sockets.target @11.639s
          └─iscsiuio.socket @11.638s
            └─sysinit.target @11.569s
              └─systemd-update-utmp.service @11.325s +239ms
                └─auditd.service @11.262s +55ms
                  └─systemd-tmpfiles-setup.service @10.870s +375ms
                    └─fedora-import-state.service @10.607s +259ms
                      └─local-fs.target @10.601s
                        └─run-user-42.mount @20.981s
                          └─local-fs-pre.target @4.367s
                            └─systemd-tmpfiles-setup-dev.service @3.050s +1.311s
                              └─kmod-static-nodes.service @2.509s +283ms
                                └─systemd-journald.socket
                                  └─-.slice
[root@skiava]# 

come mai?

Prova così:

  1. Crea una copia di backup del file che andiamo a modificare
# cp /etc/gdm/custom.conf /etc/gdm/custom.conf.backup
  1. Edita il file da root (con gedit, nano o comunque l’editor che preferisci).
# gedit /etc/gdm/custom.conf
  1. Togli il “#” dalla riga “#WaylandEnable=false”, facendola diventare così:
WaylandEnable=false
  1. Salva, chiudi l’editor, riavvia e vedi se la situazione migliora.

Ciao, dopo aver eseguito le operazioni suddette nulla è cambiato…riporto di seguito il contenuto modificato della cartella:

# gedit /etc/gdm/custom.conf
# GDM configuration storage

[daemon]
# Uncoment the line below to force the login screen to use Xorg
WaylandEnable=false

[security]

[xdmcp]

[greeter]

[chooser]

[debug]
# Uncomment the line below to turn on debugging
#Enable=true

e dopo aver riavvato il sistema riporto l’output di:

[root@skiava]# systemd-analyze time
Startup finished in 990ms (kernel) + 5.084s (initrd) + 50.919s (userspace) = 56.994s
[root@skiava]# systemd-analyze critical-chain --no-pager
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.

graphical.target @50.897s
└─multi-user.target @50.889s
  └─NetworkManager.service @22.450s +883ms
    └─firewalld.service @12.731s +9.711s
      └─basic.target @11.324s
        └─sockets.target @11.323s
          └─iscsiuio.socket @11.323s
            └─sysinit.target @11.261s
              └─systemd-update-utmp.service @11.147s +107ms
                └─auditd.service @11.086s +54ms
                  └─systemd-tmpfiles-setup.service @10.663s +406ms
                    └─fedora-import-state.service @10.382s +276ms
                      └─local-fs.target @10.377s
                        └─run-user-42.mount @20.635s
                          └─local-fs-pre.target @4.785s
                            └─systemd-tmpfiles-setup-dev.service @3.178s +1.591s
                              └─kmod-static-nodes.service @2.634s +292ms
                                └─systemd-journald.socket
                                  └─-.slice
[root@skiava]# systemd-analyze blame --no-pager
         37.593s plymouth-quit-wait.service
         10.817s dev-mapper-fedora\x2droot.device
          9.711s firewalld.service
          6.372s accounts-daemon.service
          5.660s systemd-udev-settle.service
          4.079s abrtd.service
          3.939s ModemManager.service
          3.227s cups.service
          1.986s systemd-fsck@dev-disk-by\x2duuid-3d9fb24e\x2d047c\x2d46c7\x2db45a\x2d36272f0a2720.service
          1.968s lvm2-monitor.service
          1.681s systemd-journald.service
          1.591s mcelog.service
          1.591s systemd-tmpfiles-setup-dev.service
          1.588s systemd-binfmt.service
          1.514s packagekit.service
          1.398s proc-sys-fs-binfmt_misc.mount
          1.335s lvm2-pvscan@8:18.service
          1.157s plymouth-start.service
          1.140s colord.service
          1.122s systemd-udevd.service
           969ms chronyd.service
           932ms fedora-readonly.service
           931ms gdm.service
           911ms systemd-udev-trigger.service
           883ms NetworkManager.service
           847ms polkit.service
           843ms systemd-journal-flush.service
           714ms systemd-random-seed.service
           659ms abrt-ccpp.service
           638ms systemd-logind.service
           612ms dmraid-activation.service
           537ms lm_sensors.service
           488ms rtkit-daemon.service
           406ms systemd-tmpfiles-setup.service
           399ms systemd-vconsole-setup.service
           395ms netcf-transaction.service
           321ms wpa_supplicant.service
           295ms boot.mount
           292ms kmod-static-nodes.service
           279ms dev-hugepages.mount
           276ms fedora-import-state.service
           260ms [email protected]
           237ms systemd-user-sessions.service
           236ms plymouth-read-write.service
           234ms systemd-fsck@dev-mapper-fedora\x2dhome.service
           228ms systemd-remount-fs.service
           221ms udisks2.service
           199ms dev-mapper-fedora\x2dswap.swap
           196ms [email protected]
           159ms systemd-sysctl.service
           156ms home.mount
           131ms tmp.mount
           130ms systemd-fsck-root.service
           107ms systemd-update-utmp.service
            54ms auditd.service
            53ms upower.service
            42ms dev-mqueue.mount
            41ms sys-fs-fuse-connections.mount
            35ms dracut-shutdown.service
            21ms sys-kernel-debug.mount
            17ms systemd-update-utmp-runlevel.service
             6ms sys-kernel-config.mount
[root@skiava]# 

Buongiorno,
scusate se mi intrometto, ma per sfizio ho fatto la stessa prova sul mio e il responso è stato impietoso:

[fabio@localhost ~]$ sudo systemd-analyze time Startup finished in 4.893s (firmware) + 4.601s (loader) + 1.922s (kernel) + 2.589s (initrd) + 1min 31.574s (userspace) = 1min 45.581s fabio@localhost ~]$ sudo systemd-analyze blame --no-pager 35.715s network.service 25.315s abrtd.service 18.108s httpd.service 17.736s firewalld.service 17.460s webmin.service 15.697s systemd-journal-flush.service 14.495s mysqld.service 13.694s systemd-udev-settle.service 13.357s akmods.service 12.625s dev-sda10.device 5.974s wicd.service 5.390s akmods-shutdown.service 5.365s livesys.service 5.361s rsyslog.service 5.170s accounts-daemon.service 4.429s ModemManager.service 3.711s gssproxy.service 3.340s lvm2-monitor.service 3.301s chronyd.service 2.610s packagekit.service 2.334s mcelog.service 2.175s systemd-fsck@dev-disk-by\x2duuid-dd84fa2c\x2dd40f\x2d466c\x2d8dfd\x2d9b10365f3242.service 2.117s proc-fs-nfsd.mount 1.961s systemd-udevd.service 1.895s systemd-tmpfiles-setup-dev.service 1.813s dnf-makecache.service 1.773s systemd-fsck@dev-disk-by\x2duuid-ad2521eb\x2df40a\x2d422b\x2da583\x2d3cfb2e8a8741.service 1.585s polkit.service 1.549s avahi-daemon.service 1.419s fedora-readonly.service 1.301s plymouth-start.service 1.207s [email protected] 1.206s [email protected] 1.114s systemd-random-seed.service 1.082s dev-sda9.swap 1.016s boot.mount 936ms home.mount 897ms cups.service 836ms colord.service 777ms systemd-tmpfiles-setup.service 670ms dmraid-activation.service 495ms dev-hugepages.mount 495ms dev-mqueue.mount 465ms systemd-journald.service 417ms systemd-remount-fs.service 413ms tmp.mount 411ms sys-kernel-debug.mount 369ms systemd-tmpfiles-clean.service 342ms systemd-udev-trigger.service 327ms rtkit-daemon.service 319ms upower.service 298ms systemd-logind.service 296ms fedora-import-state.service 279ms systemd-backlight@backlight:intel_backlight.service 271ms systemd-sysctl.service 266ms plymouth-read-write.service 221ms [email protected] 184ms kmod-static-nodes.service 178ms plymouth-quit.service 178ms plymouth-quit-wait.service 174ms systemd-update-utmp.service 163ms [email protected] 144ms systemd-fsck-root.service 125ms boot-efi.mount 115ms rpc-statd-notify.service 112ms bluetooth.service 107ms abrt-ccpp.service 102ms auditd.service 102ms systemd-user-sessions.service 98ms udisks2.service 66ms systemd-vconsole-setup.service 40ms nfs-config.service 24ms [email protected] 22ms dracut-shutdown.service 6ms livesys-late.service 3ms systemd-update-utmp-runlevel.service 2ms var-lib-nfs-rpc_pipefs.mount 1ms [email protected] 1ms sys-kernel-config.mount

Io posso fare qualcosa?
Grazie.

Nel caso di skiava mi pare che lvm/dev-mapper e rete/firewall siano i principali servizi che rallentano l’avvio. Per fare una verifica, disabilita il servizio firewall e riavvia.

Ciao, ho provato a disabilitare il servizio firewall ma credo che non è cambiato molto…riporto l’output di:

[skiava@skiava ~]$ systemd-analyze
Startup finished in 990ms (kernel) + 5.226s (initrd) + 47.279s (userspace) = 53.496s
[skiava@skiava ~]$ systemd-analyze blame
         31.697s plymouth-quit-wait.service
         10.768s dev-mapper-fedora\x2droot.device
          7.543s accounts-daemon.service
          6.841s systemd-udev-settle.service
          5.652s ModemManager.service
          3.968s chronyd.service
          3.671s abrtd.service
          3.622s systemd-user-sessions.service
          3.605s systemd-logind.service
          3.559s mcelog.service
          3.509s rtkit-daemon.service
          2.598s systemd-journald.service
          2.277s cups.service
          2.203s lvm2-monitor.service
          1.878s NetworkManager.service
          1.619s systemd-tmpfiles-setup-dev.service
          1.579s systemd-udevd.service
          1.400s packagekit.service
          1.353s polkit.service
          1.283s systemd-binfmt.service
          1.187s fedora-readonly.service
lines 1-21
[skiava@skiava ~]$ systemd-analyze critical-chain
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.

graphical.target @47.249s
└─multi-user.target @47.246s
  └─NetworkManager.service @15.796s +1.878s
    └─netcf-transaction.service @15.374s +405ms
      └─basic.target @11.783s
        └─sockets.target @11.782s
          └─cups.socket @11.780s
            └─sysinit.target @11.735s
              └─systemd-update-utmp.service @11.549s +174ms
                └─auditd.service @11.432s +110ms
                  └─systemd-tmpfiles-setup.service @11.023s +395ms
                    └─fedora-import-state.service @10.758s +259ms
                      └─local-fs.target @10.753s
                        └─run-user-42.mount @22.076s
                          └─local-fs-pre.target @4.838s
                            └─systemd-tmpfiles-setup-dev.service @3.216s +1.619s
                              └─kmod-static-nodes.service @2.700s +510ms
                                └─systemd-journald.socket
                                  └─-.slice
lines 2-22/22 (END)
[root@skiava]# systemctl status firewalld.service
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
   Active: inactive (dead)
[root@skiava]# 

invece con firewall abilitato mi restituisce:

[skiava@skiava ~]$ systemd-analyze
Startup finished in 989ms (kernel) + 5.024s (initrd) + 50.437s (userspace) = 56.451s
[skiava@skiava ~]$ systemd-analyze blame
         34.228s plymouth-quit-wait.service
         11.139s firewalld.service
          9.868s dev-mapper-fedora\x2droot.device
          7.980s accounts-daemon.service
          6.996s ModemManager.service
          5.041s systemd-udev-settle.service
          4.740s abrtd.service
          4.706s mcelog.service
          4.703s netcf-transaction.service
          4.679s systemd-user-sessions.service
          3.155s cups.service
          2.161s lvm2-monitor.service
          2.019s systemd-journald.service
          1.975s abrt-ccpp.service
          1.531s systemd-udevd.service
          1.478s fedora-readonly.service
          1.432s packagekit.service
          1.351s systemd-tmpfiles-setup-dev.service
          1.158s plymouth-start.service
          1.140s colord.service
          1.009s systemd-binfmt.service
lines 1-21
[skiava@skiava ~]$ systemd-analyze critical-chain
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.

graphical.target @50.412s
└─multi-user.target @50.410s
  └─NetworkManager.service @22.581s +953ms
    └─firewalld.service @11.432s +11.139s
      └─basic.target @11.022s
        └─sockets.target @11.022s
          └─dbus.socket @11.019s
            └─sysinit.target @10.971s
              └─systemd-update-utmp.service @10.732s +233ms
                └─auditd.service @10.669s +57ms
                  └─systemd-tmpfiles-setup.service @10.308s +344ms
                    └─fedora-import-state.service @10.071s +231ms
                      └─local-fs.target @10.057s
                        └─run-user-42.mount @20.669s
                          └─local-fs-pre.target @4.242s
                            └─systemd-tmpfiles-setup-dev.service @2.885s +1.351s
                              └─kmod-static-nodes.service @2.683s +197ms
                                └─systemd-journald.socket
                                  └─-.slice
lines 2-22/22 (END)
[skiava@skiava ~]$ systemctl status firewalld.service
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: active (running) since ven 2015-11-27 10:40:03 CET; 2min 11s ago
 Main PID: 716 (firewalld)
   CGroup: /system.slice/firewalld.service
           └─716 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
[skiava@skiava ~]$ 

alla fine verrebbe (56,451−53,4969)=2.955 sec
non vorrei lasciare per 3 sec circa il firewall disabilitato per non rischiare ai fini della sicurezza!!
:ooops:

altre soluzioni?

Certo, era una prova. Usi LVM?

[quote=ilmasce]Buongiorno,
scusate se mi intrometto, ma per sfizio ho fatto la stessa prova sul mio e il responso è stato impietoso:

[fabio@localhost ~]$ sudo systemd-analyze time Startup finished in 4.893s (firmware) + 4.601s (loader) + 1.922s (kernel) + 2.589s (initrd) + 1min 31.574s (userspace) = 1min 45.581s

Io posso fare qualcosa?
Grazie.[/quote]

ilmasce, se hai un disco meccanico (non SSD) e partizionamento LVM, dovrebbe essere un tempo di boot accettabile.

LVM?
non so, come si fa per controllare?
:hammer:

[quote=skiava]LVM?
non so, come si fa per controllare?
:hammer:[/quote]
anche con un semplice

# fdisk -l

Ciao, riporto l’output di:

[root@skiava]# fdisk -l
Disk /dev/sda: 76,3 GiB, 81964302336 bytes, 160086528 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xe534e534

Dispositivo Avvio Start      Fine   Settori  Size Id Tipo
/dev/sda1   *        63 160055594 160055532 76,3G  7 HPFS/NTFS/exFAT


Disk /dev/sdb: 76,3 GiB, 81964302336 bytes, 160086528 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0ac8e0f2

Dispositivo Avvio   Start      Fine   Settori  Size Id Tipo
/dev/sdb1   *        2048   1026047   1024000  500M 83 Linux
/dev/sdb2         1026048 160086015 159059968 75,9G 8e Linux LVM


Disk /dev/mapper/fedora-swap: 3,9 GiB, 4160749568 bytes, 8126464 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/fedora-root: 48,3 GiB, 51879346176 bytes, 101326848 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/fedora-home: 23,6 GiB, 25329401856 bytes, 49471488 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
[root@skiava]# 

eeeh si, quel LVM qui:

/dev/sdb2         1026048 160086015 159059968 75,9G 8e Linux LVM

indica che ce l’hai :cool:

Certamente LVM rallenta, ma qui parliamo di una differenza di circa 60 secondi rispetto a Fedora 21. Mi verrebbe da pensare che sia un problema similare a http://forum.fedoraonline.it/viewtopic.php?id=23917&p=1.

Skiava, tornando a noi… Vediamo se qualche unità di systemd fallisce:

# systemctl --all --failed

Ciao riporto l’output di:

[root@skiava]# systemctl --all --failed
0 loaded units listed.
To show all installed unit files use 'systemctl list-unit-files'.
[root@skiava]# systemctl list-unit-files
UNIT FILE                                   STATE   
proc-sys-fs-binfmt_misc.automount           static  
dev-hugepages.mount                         static  
dev-mqueue.mount                            static  
proc-fs-nfsd.mount                          static  
proc-sys-fs-binfmt_misc.mount               static  
sys-fs-fuse-connections.mount               static  
sys-kernel-config.mount                     static  
sys-kernel-debug.mount                      static  
tmp.mount                                   static  
var-lib-nfs-rpc_pipefs.mount                static  
cups.path                                   enabled 
systemd-ask-password-console.path           static  
systemd-ask-password-plymouth.path          static  
systemd-ask-password-wall.path              static  
session-1.scope                             static  
session-c1.scope                            static  
abrt-ccpp.service                           enabled 
abrt-journal-core.service                   disabled
abrt-oops.service                           enabled 
abrt-pstoreoops.service                     disabled
abrt-vmcore.service                         enabled 
abrt-xorg.service                           enabled 
abrtd.service                               enabled 
accounts-daemon.service                     enabled 
alsa-restore.service                        static  
alsa-state.service                          static  
alsa-store.service                          static  
anaconda-direct.service                     static  
anaconda-nm-config.service                  static  
anaconda-noshell.service                    static  
[email protected]                     static  
anaconda-sshd.service                       static  
[email protected]                      static  
anaconda.service                            static  
arp-ethers.service                          disabled
atd.service                                 disabled
auditd.service                              enabled 
auth-rpcgss-module.service                  static  
[email protected]                             disabled
avahi-daemon.service                        disabled
blk-availability.service                    disabled
bluetooth.service                           masked  
brltty.service                              disabled
canberra-system-bootup.service              disabled
canberra-system-shutdown-reboot.service     disabled
canberra-system-shutdown.service            disabled
capi.service                                disabled
[email protected]                      static  
chrony-wait.service                         disabled
chronyd.service                             enabled 
colord.service                              static  
[email protected]                  static  
console-getty.service                       disabled
console-shell.service                       disabled
[email protected]                    static  
corosync-notifyd.service                    disabled
corosync.service                            disabled
crond.service                               enabled 
cups-browsed.service                        disabled
cups.service                                enabled 
dbus-org.fedoraproject.FirewallD1.service   enabled 
dbus-org.freedesktop.hostname1.service      static  
dbus-org.freedesktop.import1.service        static  
dbus-org.freedesktop.locale1.service        static  
dbus-org.freedesktop.login1.service         static  
dbus-org.freedesktop.machine1.service       static  
dbus-org.freedesktop.ModemManager1.service  enabled 
dbus-org.freedesktop.network1.service       disabled
dbus-org.freedesktop.NetworkManager.service enabled 
dbus-org.freedesktop.nm-dispatcher.service  enabled 
dbus-org.freedesktop.resolve1.service       disabled
dbus-org.freedesktop.timedate1.service      enabled 
dbus.service                                static  
debug-shell.service                         disabled
display-manager.service                     enabled 
dm-event.service                            disabled
dmraid-activation.service                   enabled 
dnf-makecache.service                       static  
dnf-system-upgrade.service                  disabled
dnsmasq.service                             disabled
dracut-cmdline.service                      static  
dracut-initqueue.service                    static  
dracut-mount.service                        static  
dracut-pre-mount.service                    static  
dracut-pre-pivot.service                    static  
dracut-pre-trigger.service                  static  
dracut-pre-udev.service                     static  
dracut-shutdown.service                     static  
ebtables.service                            disabled
emergency.service                           static  
fancontrol.service                          disabled
fcoe.service                                disabled
fedora-autorelabel-mark.service             static  
fedora-autorelabel.service                  static  
fedora-domainname.service                   disabled
fedora-import-state.service                 static  
fedora-loadmodules.service                  static  
fedora-readonly.service                     static  
firewalld.service                           enabled 
fprintd.service                             static  
fstrim.service                              static  
gdm.service                                 enabled 
geoclue.service                             static  
[email protected]                              enabled 
gssproxy.service                            masked  
halt-local.service                          static  
hddtemp.service                             disabled
htcacheclean.service                        static  
httpd.service                               disabled
initial-setup-graphical.service             disabled
initial-setup-text.service                  disabled
initrd-cleanup.service                      static  
initrd-parse-etc.service                    static  
initrd-switch-root.service                  static  
initrd-udevadm-cleanup-db.service           static  
instperf.service                            static  
ipsec.service                               disabled
iscsi-shutdown.service                      static  
iscsi.service                               enabled 
iscsid.service                              disabled
iscsiuio.service                            disabled
isdn.service                                disabled
kdump.service                               disabled
kmod-static-nodes.service                   static  
ldconfig.service                            static  
libvirt-guests.service                      disabled
libvirtd.service                            masked  
lightdm.service                             disabled
lircd.service                               disabled
lircmd.service                              disabled
livesys-late.service                        masked  
livesys.service                             masked  
lldpad.service                              disabled
lm_sensors.service                          disabled
lvm2-lvmetad.service                        disabled
lvm2-monitor.service                        enabled 
[email protected]                        static  
mcelog.service                              enabled 
[email protected]                static  
[email protected]                  static  
[email protected]                              static  
mdmonitor.service                           enabled 
messagebus.service                          static  
ModemManager.service                        enabled 
multipathd.service                          enabled 
netcf-transaction.service                   enabled 
NetworkManager-dispatcher.service           enabled 
NetworkManager-wait-online.service          disabled
NetworkManager.service                      enabled 
nfs-blkmap.service                          disabled
nfs-config.service                          static  
nfs-idmap.service                           static  
nfs-idmapd.service                          static  
nfs-lock.service                            static  
nfs-mountd.service                          static  
nfs-secure.service                          static  
nfs-server.service                          disabled
nfs-utils.service                           static  
nfs.service                                 disabled
numad.service                               disabled
[email protected]                            disabled
packagekit-offline-update.service           static  
packagekit.service                          static  
plymouth-halt.service                       disabled
plymouth-kexec.service                      disabled
plymouth-poweroff.service                   disabled
plymouth-quit-wait.service                  disabled
plymouth-quit.service                       disabled
plymouth-read-write.service                 disabled
plymouth-reboot.service                     disabled
plymouth-start.service                      disabled
plymouth-switch-root.service                static  
polkit.service                              static  
pppoe-server.service                        disabled
psacct.service                              disabled
qemu-guest-agent.service                    static  
quotaon.service                             static  
radvd.service                               disabled
rc-local.service                            static  
rdisc.service                               disabled
realmd.service                              static  
rescue.service                              static  
rngd.service                                enabled 
rpc-gssd.service                            static  
rpc-rquotad.service                         disabled
rpc-statd-notify.service                    static  
rpc-statd.service                           static  
rpc-svcgssd.service                         static  
rpcbind.service                             indirect
rtkit-daemon.service                        enabled 
saslauthd.service                           disabled
[email protected]                       disabled
sheepdog.service                            disabled
speech-dispatcherd.service                  disabled
spice-vdagentd.service                      enabled 
sshd-keygen.service                         static  
sshd.service                                disabled
[email protected]                               static  
sssd.service                                disabled
stunnel.service                             disabled
syslog.service                              enabled 
systemd-ask-password-console.service        static  
systemd-ask-password-plymouth.service       static  
systemd-ask-password-wall.service           static  
[email protected]                  static  
systemd-binfmt.service                      static  
systemd-bootchart.service                   disabled
systemd-firstboot.service                   static  
systemd-fsck-root.service                   static  
[email protected]                       static  
systemd-halt.service                        static  
[email protected]           static  
systemd-hibernate.service                   static  
systemd-hostnamed.service                   static  
systemd-hwdb-update.service                 static  
systemd-hybrid-sleep.service                static  
systemd-importd.service                     static  
systemd-initctl.service                     static  
systemd-journal-catalog-update.service      static  
systemd-journal-flush.service               static  
systemd-journald.service                    static  
systemd-kexec.service                       static  
systemd-localed.service                     static  
systemd-logind.service                      static  
systemd-machine-id-commit.service           static  
systemd-machined.service                    static  
systemd-modules-load.service                static  
systemd-networkd-wait-online.service        disabled
systemd-networkd.service                    disabled
[email protected]                     disabled
systemd-poweroff.service                    static  
systemd-quotacheck.service                  static  
systemd-random-seed.service                 static  
systemd-reboot.service                      static  
systemd-remount-fs.service                  static  
systemd-resolved.service                    disabled
[email protected]                     static  
systemd-shutdownd.service                   static  
systemd-suspend.service                     static  
systemd-sysctl.service                      static  
systemd-sysusers.service                    static  
systemd-timedated.service                   static  
systemd-timesyncd.service                   disabled
systemd-tmpfiles-clean.service              static  
systemd-tmpfiles-setup-dev.service          static  
systemd-tmpfiles-setup.service              static  
systemd-udev-settle.service                 static  
systemd-udev-trigger.service                static  
systemd-udevd.service                       static  
systemd-update-done.service                 static  
systemd-update-utmp-runlevel.service        static  
systemd-update-utmp.service                 static  
systemd-user-sessions.service               static  
systemd-vconsole-setup.service              static  
tcsd.service                                disabled
[email protected]                              static  
teamviewerd.service                         disabled
timedatex.service                           enabled 
udisks2.service                             static  
unbound-anchor.service                      static  
upower.service                              disabled
usbmuxd.service                             static  
[email protected]                               static  
vgauthd.service                             disabled
virtlockd.service                           indirect
vmtoolsd.service                            enabled 
[email protected]                  static  
winbind.service                             disabled
wpa_supplicant.service                      disabled
xl2tpd.service                              disabled
yum-makecache.service                       static  
zram.service                                static  
zvbid.service                               disabled
-.slice                                     static  
machine.slice                               static  
system.slice                                static  
user.slice                                  static  
avahi-daemon.socket                         disabled
cups.socket                                 enabled 
dbus.socket                                 static  
dm-event.socket                             enabled 
httpd.socket                                disabled
iscsid.socket                               enabled 
iscsiuio.socket                             enabled 
libvirtd.socket                             static  
lircd.socket                                disabled
lldpad.socket                               disabled
lvm2-lvmetad.socket                         enabled 
rpcbind.socket                              enabled 
sshd.socket                                 disabled
syslog.socket                               static  
systemd-initctl.socket                      static  
systemd-journald-audit.socket               static  
systemd-journald-dev-log.socket             static  
systemd-journald.socket                     static  
systemd-networkd.socket                     disabled
systemd-shutdownd.socket                    static  
systemd-udevd-control.socket                static  
systemd-udevd-kernel.socket                 static  
virtlockd.socket                            disabled
anaconda.target                             static  
basic.target                                static  
bluetooth.target                            static  
cryptsetup-pre.target                       static  
cryptsetup.target                           static  
ctrl-alt-del.target                         disabled
default.target                              enabled 
emergency.target                            static  
final.target                                static  
getty.target                                static  
graphical.target                            enabled 
halt.target                                 disabled
hibernate.target                            static  
hybrid-sleep.target                         static  
initrd-fs.target                            static  
initrd-root-fs.target                       static  
initrd-switch-root.target                   static  
initrd.target                               static  
kexec.target                                disabled
local-fs-pre.target                         static  
local-fs.target                             static  
machines.target                             disabled
multi-user.target                           static  
network-online.target                       static  
network-pre.target                          static  
network.target                              static  
nfs-client.target                           disabled
nss-lookup.target                           static  
nss-user-lookup.target                      static  
paths.target                                static  
poweroff.target                             disabled
printer.target                              static  
reboot.target                               disabled
remote-fs-pre.target                        static  
remote-fs.target                            disabled
rescue.target                               disabled
rpcbind.target                              static  
runlevel0.target                            disabled
runlevel1.target                            disabled
runlevel2.target                            static  
runlevel3.target                            static  
runlevel4.target                            static  
runlevel5.target                            static  
runlevel6.target                            disabled
shutdown.target                             static  
sigpwr.target                               static  
sleep.target                                static  
slices.target                               static  
smartcard.target                            static  
sockets.target                              static  
sound.target                                static  
spice-vdagentd.target                       static  
suspend.target                              static  
swap.target                                 static  
sysinit.target                              static  
system-update.target                        static  
time-sync.target                            static  
timers.target                               static  
umount.target                               static  
[email protected]                        disabled
dnf-makecache.timer                         disabled
fstrim.timer                                disabled
[email protected]                    static  
systemd-tmpfiles-clean.timer                static  
unbound-anchor.timer                        disabled
yum-makecache.timer                         disabled

366 unit files listed.
lines 349-369/369 (END)
[root@skiava]# 

Non c’è nulla che fallisce esplicitamente.

Brancolo nel buio. Ho letto in rete di altri che hanno notato questo aumento nei tempi di boot, ma non ho mai trovato una causa e/o una soluzione. Vediamo se questi output più specifici ci chiariscono un pochino le idee:

# systemd-analyze critical-chain plymouth-quit-wait.service --no-pager
# systemd-analyze critical-chain firewalld.service --no-pager

Ciao, riporto di seguito l’output di:

[root@skiava]#  systemd-analyze critical-chain plymouth-quit-wait.service --no-pager
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.

plymouth-quit-wait.service +35.048s
└─systemd-user-sessions.service @12.069s +5.242s
  └─basic.target @12.066s
    └─sockets.target @12.066s
      └─rpcbind.socket @12.065s
        └─sysinit.target @12.011s
          └─systemd-update-utmp.service @11.768s +237ms
            └─auditd.service @11.642s +117ms
              └─systemd-tmpfiles-setup.service @11.271s +357ms
                └─fedora-import-state.service @10.979s +284ms
                  └─local-fs.target @10.971s
                    └─run-user-42.mount @21.717s
                      └─local-fs-pre.target @4.844s
                        └─systemd-tmpfiles-setup-dev.service @3.238s +1.599s
                          └─kmod-static-nodes.service @3.010s +222ms
                            └─system.slice
                              └─-.slice
[root@skiava]# systemd-analyze critical-chain firewalld.service --no-pager
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.

firewalld.service +10.470s
└─basic.target @12.066s
  └─sockets.target @12.066s
    └─rpcbind.socket @12.065s
      └─sysinit.target @12.011s
        └─systemd-update-utmp.service @11.768s +237ms
          └─auditd.service @11.642s +117ms
            └─systemd-tmpfiles-setup.service @11.271s +357ms
              └─fedora-import-state.service @10.979s +284ms
                └─local-fs.target @10.971s
                  └─run-user-42.mount @21.717s
                    └─local-fs-pre.target @4.844s
                      └─systemd-tmpfiles-setup-dev.service @3.238s +1.599s
                        └─kmod-static-nodes.service @3.010s +222ms
                          └─system.slice
                            └─-.slice
[root@skiava]# 

Il collo di bottiglia sembra essere questo:

└─run-user-42.mount @21.717s

Non riesco però a capire da cosa possa essere causato. Hai qualche riga particolare in /etc/fstab?

[skiava@skiava ~]$ cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Mon Feb 23 16:43:29 2015
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/fedora-root /                       ext4    defaults        1 1
UUID=3d9fb24e-047c-46c7-b45a-36272f0a2720 /boot                   ext4    defaults        1 2
/dev/mapper/fedora-home /home                   ext4    defaults        1 2
/dev/mapper/fedora-swap swap                    swap    defaults        0 0
[skiava@skiava ~]$

Nulla di anomalo nemmeno qui. Ci potrebbe essere un qualche piccolo bug nascosto da qualche parte, ma non so proprio dove.

Vediamo se togliendo gdm la situazione migliora. Installa e attiva lightdm:

# dnf install lightdm
# systemctl disable gdm;systemctl enable lightdm

Poi, riavvia ed effettua il login. La situazione sembra migliorare? Magari forniscici nuovamente questi:

# systemd-analyze time
# systemd-analyze critical-chain plymouth-quit-wait.service --no-pager
# systemd-analyze critical-chain firewalld.service --no-pager

Ciao, riporto l’output di:

[root@skiava]# systemctl status gdm
● gdm.service - GNOME Display Manager
   Loaded: loaded (/usr/lib/systemd/system/gdm.service; disabled; vendor preset: enabled)
   Active: inactive (dead)
[root@skiava]# systemctl status lightdm
● lightdm.service - Light Display Manager
   Loaded: loaded (/usr/lib/systemd/system/lightdm.service; enabled; vendor preset: enabled)
   Active: active (running) since ven 2015-12-04 09:46:46 CET; 2min 59s ago
     Docs: man:lightdm(1)
 Main PID: 1285 (lightdm)
   CGroup: /system.slice/lightdm.service
           ├─1285 /usr/sbin/lightdm
           ├─1290 /usr/libexec/Xorg -background none :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt1 -novtswitch
           └─1376 /usr/bin/gnome-keyring-daemon --daemonize --login

dic 04 09:46:46 S****.*****.un***.it systemd[1]: Starting Light Display Manager...
dic 04 09:46:46 S****.*****.un***.it systemd[1]: Started Light Display Manager.
dic 04 09:46:46 S****.*****.un***.it lightdm[1298]: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
[root@skiava]# systemd-analyze time
Startup finished in 989ms (kernel) + 5.081s (initrd) + 26.708s (userspace) = 32.779s
[root@skiava]# systemd-analyze critical-chain plymouth-quit-wait.service --no-pager
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.

plymouth-quit-wait.service +680ms
└─systemd-user-sessions.service @10.995s +4.662s
  └─basic.target @10.989s
    └─sockets.target @10.988s
      └─rpcbind.socket @10.987s
        └─sysinit.target @10.948s
          └─systemd-update-utmp.service @10.833s +108ms
            └─auditd.service @10.773s +54ms
              └─systemd-tmpfiles-setup.service @10.349s +408ms
                └─fedora-import-state.service @10.109s +237ms
                  └─local-fs.target @10.106s
                    └─run-user-986.mount @23.080s
                      └─local-fs-pre.target @4.430s
                        └─systemd-tmpfiles-setup-dev.service @3.211s +1.213s
                          └─kmod-static-nodes.service @2.752s +455ms
                            └─system.slice
                              └─-.slice
[root@skiava]# systemd-analyze critical-chain firewalld.service --no-pager
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.

firewalld.service +11.331s
└─basic.target @10.989s
  └─sockets.target @10.988s
    └─rpcbind.socket @10.987s
      └─sysinit.target @10.948s
        └─systemd-update-utmp.service @10.833s +108ms
          └─auditd.service @10.773s +54ms
            └─systemd-tmpfiles-setup.service @10.349s +408ms
              └─fedora-import-state.service @10.109s +237ms
                └─local-fs.target @10.106s
                  └─run-user-986.mount @23.080s
                    └─local-fs-pre.target @4.430s
                      └─systemd-tmpfiles-setup-dev.service @3.211s +1.213s
                        └─kmod-static-nodes.service @2.752s +455ms
                          └─system.slice
                            └─-.slice
[root@skiava]#

il tempo di avvio si è dimezzato :hammer:
ma quel servizio, come avevi già segnalato tu nel post precedente, rimane sempre a 23 secondi:

└─run-user-986.mount @23.080s

e se provassi altri display manager tipo quelli testuali…dovrebbe dimezzarsi ancora di piu’ al boot secondo te?
guardando il wiki di arch ho trovato una vasta gamma di display testuali e grafici e credo che si possono utilizzare anche quelli…che ne pensi?
https://wiki.archlinux.org/index.php/Display_manager_(Italiano)

o hai altre soluzioni?