Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runit-startuptime: new script #124

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

classabbyamp
Copy link
Member

@classabbyamp classabbyamp commented Sep 4, 2024

just a silly little script to "analyze" boot time

example output:

# runit-startuptime
initramfs       0.646 s
core-services   4.002 s
  00-pseudofs           0.056 s
  01-static-devnodes    1.178 s
  02-kmods              0.027 s
  02-udev               2.413 s
  03-console-setup      0.096 s
  03-filesystems        0.202 s
  04-swap               0.004 s
  05-misc               0.015 s
  08-sysctl             0.008 s
  20-screen             0.001 s
  98-sbin-merge         0.000 s
  99-cleanup            0.001 s
rc.local        0.002 s
total           7.952 s

@0x5c
Copy link

0x5c commented Sep 4, 2024

The name comes from systemd-analyze, but I think that naming is a little bit obtuse in the first place.
What about a more descriptive name like runit-startuptime or similar?

@classabbyamp classabbyamp changed the title runit-analyze: new script runit-startuptime: new script Sep 4, 2024
@Vaelatern
Copy link
Member

Do you mind if we merge #122 first?

@classabbyamp
Copy link
Member Author

please do

we can save boot timing information with good accuracy to the kernel
message log, then retrieve it later with a script.
1 Show resolved Hide resolved
@duskmoss
Copy link

duskmoss commented Sep 6, 2024

this is fun :)

Makefile Outdated Show resolved Hide resolved
@AnInternetTroll
Copy link

Tested on x86_64 and it works :D

parse the timing info from dmesg to give uses a rough accounting of time
spent during boot. this may fail to be accurate if run a long time from boot
(i.e. if the messages have left the kernel message ring buffer)
@Anachron
Copy link

Can this not be merged? :-)

@classabbyamp
Copy link
Member Author

no, i need to fix something still

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants