Systemd-analyze tool diagnoses slow Linux boot times

The systemd-analyze utility, built into Linux distributions using the systemd init system, allows users to quickly identify causes of slow boot processes. By running simple commands, it breaks down boot times into kernel and userspace components and highlights delaying services. This tool helps administrators make targeted adjustments to improve startup speeds without guesswork.

Linux users experiencing sluggish boot times on systemd-based distributions, such as Ubuntu or Fedora, can turn to the built-in systemd-analyze tool for rapid diagnosis. As described in technical guides, the tool analyzes the initialization sequence managed by systemd, reporting durations for stages like firmware, bootloader, kernel, and userspace.

Running the basic command systemd-analyze provides a summary of total boot time. For instance, one example shows startup finishing in 6.669 seconds for the kernel plus 30.368 seconds for userspace, totaling 37.037 seconds, with the graphical target reached after 27.479 seconds in userspace. A compact version, systemd-analyze time, offers similar breakdowns, often revealing userspace as the main bottleneck on SSD systems.

The blame option lists systemd units by initialization time, from longest to shortest. Common delays come from services like apt-daily.service (57.158 seconds in one case), which handles daily update checks on Debian-based systems; snapd.service (17.609 seconds); and docker.service (10.647 seconds). Guides advise reviewing this list to identify disableable services, such as deferring container runtimes like Docker if not needed immediately, while cautioning against disabling essential tasks like auto-updates.

For deeper insight, systemd-analyze critical-chain traces the dependency path delaying the default target. An output might show graphical.target waiting on multi-user.target, which in turn depends on docker.service (starting at 16.830 seconds and taking 10.647 seconds). This reveals bottlenecks, such as network wait services or misconfigured mounts causing 30-90 second timeouts.

Finally, systemd-analyze plot > boot.svg generates a visual SVG timeline of the boot process, illustrating parallel and serial dependencies. Opening the file in a browser highlights late-starting units, like those around 18 seconds in sample visuals.

Administrators report significant gains, including 20-40% reductions in userspace time on SSD systems, by applying changes like rescheduling timers or removing unnecessary packages such as cloud-init on non-cloud setups. These modifications should be documented for reversibility, ensuring system reliability.

Liittyvät artikkelit

Illustration depicting the Linux From Scratch 13.0 release as the first systemd-only version, with Tux assembling a PC amid upgraded packages and kernel.
AI:n luoma kuva

Linux From Scratch 13.0 released as first systemd-only version

Raportoinut AI AI:n luoma kuva

The Linux From Scratch project has unveiled version 13.0, marking the first release exclusively using systemd as its init system. This update includes the Linux kernel 6.18.10 and upgrades to 36 packages. The change discontinues the longstanding SysVinit variant after version 12.4.

A recent guide highlights four essential systemd tools that help new Linux users diagnose and fix common system issues. Systemd, the widely used init system in major distributions, provides built-in utilities for managing services, viewing logs, analyzing boot times, and investigating crashes. These tools offer a structured approach to resolving problems without guesswork.

Raportoinut AI

A new improvement in the Linux kernel can make hibernation several times faster, particularly when using slow SSDs. This development aims to enhance performance in Linux systems with slower storage devices. The update is highlighted in recent Phoronix coverage.

KDE Linux, an upcoming immutable distribution focused on Plasma, has progressed to 62% completion toward its public beta release. Developers report expanded contributor activity since the initial alpha in September 2025. Recent updates include delta updates, enhanced hardware support, and performance optimizations.

Raportoinut AI

A MakeUseOf article published on February 7, 2026, details an experiment where the author intentionally damaged a Linux installation in multiple ways and repaired it in place using standard tools, avoiding a full reinstall. The piece highlights Linux's resilience through techniques like chroot and live USB recovery. This approach challenges the common instinct to wipe and restart operating systems.

A recent article on Hackaday delves into the mechanics of Linux hotplug events, explaining how the system handles device connections and disconnections. Author Arcanenibble outlines the roles of netlink and udev in processing these events. The piece highlights the underlying protocols that enable seamless USB device integration.

Raportoinut AI

AlmaLinux, a popular Linux distribution, has demonstrated significant growth through its system update activity. The platform now receives more than 2 million check-ins per week, according to recent reports.

Tämä verkkosivusto käyttää evästeitä

Käytämme evästeitä analyysiä varten parantaaksemme sivustoamme. Lue tietosuojakäytäntömme tietosuojakäytäntö lisätietoja varten.
Hylkää