2016-04-09 23:36:11 +01:00
|
|
|
# systemd-analyze
|
|
|
|
|
|
|
|
> Show timing details about the boot process of units (services, mount points, devices, sockets).
|
|
|
|
|
|
|
|
- List time of each unit to start up:
|
|
|
|
|
|
|
|
`systemd-analyze blame`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Print a tree of the time-critical chain of units:
|
2016-04-09 23:36:11 +01:00
|
|
|
|
|
|
|
`systemd-analyze critical-chain`
|
2021-04-18 16:28:12 +01:00
|
|
|
|
|
|
|
- Create an SVG file showing when each system service started, highlighting the time that they spent on initialization:
|
|
|
|
|
|
|
|
`systemd-analyze plot > {{path/to/file.svg}}`
|
|
|
|
|
|
|
|
- Plot a dependency graph and convert it to an SVG file:
|
|
|
|
|
|
|
|
`systemd-analyze dot | dot -T{{svg}} > {{path/to/file.svg}}`
|