tr | en
4
Ara
2016
Önyükleme Süreci Analizi
Kategori: 

Önyükleme sürecinin süre bilgilerini görmek için:

# systemd-analyze               
Startup finished in 1.457s (kernel) + 1.366s (initrd) + 15.694s (userspace) = 18.518s
sdsd

Önyükleme sürecindeki görevlerin herbirinin harcadığı süreyi görmek için:

# systemd-analyze blame
          8.125s kdump.service
          5.313s NetworkManager-wait-online.service
          3.905s cloud-init.service
          3.139s dev-xvda2.device
                 ...
             8ms sys-kernel-config.mount
             7ms systemd-update-utmp-runlevel.service
             6ms named-setup-rndc.service
             3ms systemd-tmpfiles-clean.service

 

Önyükleme sürecindeki (toplam yükleme süresini doğrudan belirleyen) kritik görevler zincirini gözlemek için:

# 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.

multi-user.target @12.720s
`-cloud-final.service @12.086s +634ms
  `-cloud-config.service @11.468s +617ms
    `-cloud-config.target @11.467s
      `-cloud-init.service @7.561s +3.905s
...

 

Herhangi bir servisin (örnekte firewall) kritik zincirini görmek için:

# systemd-analyze critical-chain firewalld.service
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 +665ms
`-basic.target @1.063s
  `-sockets.target @1.063s
    `-dbus.socket @1.063s
      `-sysinit.target @914ms
        `-systemd-update-utmp.service @885ms +17ms
          `-auditd.service @653ms +228ms
            `-systemd-tmpfiles-setup.service @626ms +22ms
              `-rhel-import-state.service @552ms +40ms
                `-local-fs.target @546ms
                  `-local-fs-pre.target @540ms
                    `-systemd-tmpfiles-setup-dev.service @449ms +43ms
                      `-kmod-static-nodes.service @198ms +199ms
                        `-systemd-journald.socket
                          `--.slice

 

Herhangi bir hedefin kritik zincirini görmek için:

# systemd-analyze critical-chain basic.target | grep target
basic.target @1.063s
`-sockets.target @1.063s
    `-sysinit.target @914ms
              `-local-fs.target @546ms
                `-local-fs-pre.target @540ms