Skip to content

zero-byte svg file generated when systemd-bootchart invoked using "init" kernel parameter  #58

@jamuir

Description

@jamuir

According to man systemd-bootchart, the recommended way of running systemd-bootchart is using the init kernel parameter (which you can set from the grub menu):

init=/usr/lib/systemd/systemd-bootchart

Unfortunately, this seems to have stopped working.

On Fedora 41, with systemd v256, the generated svg file is zero bytes:

Fedora Linux 41 (Server Edition)
Kernel 6.11.4-301.fc41.aarch64 on an aarch64 (tty1)
vbox login: jmuir
Password:
Last login: Tue Jan 14 14:16:28 on tty1
jmuir@vbox:~$ ls -1 /run/log
total 0
rw-rw-rw-.  1 root root             0 Jan 14 14:22 bootchart-20250114-1422.svg
drwxr-sr-x+ 2 root systemd-journal 40 Jan 14 14:22 journal

Here is my kernel command-line:

jmuir@vbox:~$ xargs -n1 < /proc/cmdline
BOOT_IMAGE=(hdB,gpt2)/vmlinuz-6.11.4-301.fc41.aarch64
root=/dev/mapper/fedora_vbox-root
ro
rd.lum.lu=fedora_vbox/root
rhgb
init=/usr/1ib/systemd/systemd-bootchart

systemd-bootchart should run for about 3 mins (1800 samples at 10 samples/sec):

jmuir@vbox:~$ cat /etc/systemd/bootchart.conf
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
# See bootchart.conf (5) for details.

[Bootchart]
Samples=1800
Frequency=10
#Relative=no
#Filter=yes
#Output=<folder name, defaults to /run/log>
#Init=/path/to/init-binary
#PlotMemoryUsage=no
#PlotEntropyGraph=no
#ScaleX=100
#ScaleY=20
#ControlGroup=no
#PerCPU=no

Version information:

jmuir@vbox:~$ systemctl --version
systemd 256 (256.7-1.fc41)
+PAM *AUDIT +SELINUX -APPARMOR *IMA SMACK *SECCOMP -GCRYPT *GNUTS OPENSSL *ACL *BLKID +CURL *ELFUTILS +FIDO2 +IDN -IDN -IPTC +KMOD *LIBCRYPTSETUP *LIBCRYPTS
ETUP_PLUGINS +LIBFDISK +PCREZ +PWQUALITY +P11KIT +QRENCODE +TPM +BZIP2 +LZA +XZ *ZLIB *ZSTD +BPF_FRAMEWORK *XKBCOMMON UTMP *SYSUINIT *LIBARCHIVE
jmuir@vbox:~$ strings /usr/lib/systemd/systemd-bootchart | grep systemd-bootchart
{"type" : "rpm", "name": "systend-bootchart"
systemd-bootchart wrote %s
systemd-bootchart: sample time overrun %i times
systemd-bootchart-235-1.fc41.aarch64 .debug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions