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

[Question] How to measure the boot time #3777

Closed
MichaelJeiShen opened this issue Apr 7, 2021 · 5 comments
Closed

[Question] How to measure the boot time #3777

MichaelJeiShen opened this issue Apr 7, 2021 · 5 comments
Labels

Comments

@MichaelJeiShen
Copy link
Contributor

I am trying to measure the bootup timing as detailed as possible.
For example how long it takes on bootloader/uboot/kernel/systemd etc.
Does openBMC has a tool for doing that?

@mdmillerii
Copy link
Contributor

Systemd has bootchart support showing dependencies and recording the time.

The aspeed hardware has a free running us scale counter but I am not aware of any u-boot timing. I have not kept up with u-boot development and standard time collection.

If you are looking to optimize the boot time there are tradeoffs for boot flow. We'd need a description of your storage (mmc, flash, which bmc doc).

@MichaelJeiShen
Copy link
Contributor Author

MichaelJeiShen commented Apr 8, 2021

Systemd has bootchart support showing dependencies and recording the time.

Nice, then how do we obtain these times?
I just found a tool called systemd-analyze but not sure it is the correct tool.

The aspeed hardware has a free running us scale counter but I am not aware of any u-boot timing. I have not kept up with u-boot development and standard time collection.

U-boot boot time is a good-to-have for me. It’s not necessary.

If you are looking to optimize the boot time there are tradeoffs for boot flow. We'd need a description of your storage (mmc, flash, which bmc doc).

I just want to measure the boot time. Optimization is not included.

@geissonator
Copy link
Contributor

Nice, then how do we obtain these times?
I just found a tool called systemd-analyze but not sure it is the correct tool.

https://github.com/openbmc/openbmc/wiki/Performance-Profiling-in-OpenBMC has some info on this. I did this back a few years ago and got some good data about BMC boot time and where we were spending the most time.

@stale
Copy link

stale bot commented Apr 17, 2022

This issue has been automatically marked as stale because no activity has occurred in the last 6 months. It will be closed if no activity occurs in the next 30 days. If this issue should not be closed please add a comment. Thank you for your understanding and contributions.

@stale stale bot added the stale label Apr 17, 2022
@edtanous
Copy link
Contributor

Over a year old, and question was answered with documentation. Closing.

stefanberger pushed a commit to stefanberger/openbmc that referenced this issue Aug 1, 2023
Reed Frandsen (1):
  Merge pull request openbmc#425 from amboar/for/1050/bios-check-apis-1

ManojKiran Eda (1):
  Change the default partition mode to A_Mode (openbmc#420)

Varsha Kaverappa (1):
  oem-ibm : Support for VPD record PSPD via file I/O with offset (openbmc#413)

Andrew Jeffery (3):
  host-bmc: test: Fix mocking errors in MockHostEffecterParser
  pldm: Include config.h via compiler argument
  pldm: Convert to pldm_bios_table_*_check() APIs

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

No branches or pull requests

4 participants