Skip to content

Latest commit

 

History

36 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Screenshot of tool

What it does:

This is a tool I made for OpenRC which replicates the functionality of the "systemd-analyze" command, for the most part.

How it does it:

Firmware and Loader times are pulled directly from the ACPI Firmware Performance Data Table, so should be accurate. Kernel and initramfs times are pulled from DMESG which has a tendancy to be inaccurate over long periods, but for the small duration all the bootup tasks happen, it should be relatively accurate. Userspace is detected either when the elogind service starts, or if you have rc_logger enabled, when the default runlevel has finished.

Requirements:

  • OpenRC system
  • Kernel must have CONFIG_ACPI_FPDT enabled
  • Using elogind OR have rc_logger enabled

Installation:

Note: I build this script for the Gentoo distro, I can't say if will work on others.

git clone https://github.com/adaster98/openrc-analyze/
cd openrc-analyze
sudo cp openrc-analyze.sh /bin/openrc-analyze

Then use sudo openrc-analyze

You can also use sudo openrc-analyze use-elogind if you have ec_logger enabled and want to use the fallback method. This is useful since rc_logger isn't very verbose and only lists times in full seconds. Personally, I prefer using elogind as an indicator of userspace being reached.

About

A tool for OpenRC which replicates Systemd's Analyze command.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages