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

How to optimize boot time? #75

Open
ultwcz opened this issue Sep 28, 2023 · 2 comments
Open

How to optimize boot time? #75

ultwcz opened this issue Sep 28, 2023 · 2 comments

Comments

@ultwcz
Copy link

ultwcz commented Sep 28, 2023

Hi, the boot time of UEFI firmware costs a lot of time. I have changed PcdPlatformBootTimeOut from 5 to 0, but it still took about 16 seconds.

I noticed a large gap before booting the kernel in the log, so I wanted to ask if there is any way to shorten the startup time.

Thank you.

@ashishsingha
Copy link
Contributor

Hello,

You can try the following:

  1. If you’re using a debug build, consider switching to release build so that time spent logging messages over uart is saved.
  2. Reference BSP release may have more than required hw controllers enabled that you may or may not need during boot. You can disable the controllers you don’t need during boot in uefi dtb and that’ll reduce uefi boot time as well.

Thanks

@ultwcz
Copy link
Author

ultwcz commented Oct 7, 2023

Hi,@ashishsingha
Thank you for your reply first.
I have used a release build, and what should I do to disable the controllers I don't need? Sorry, I am a beginner for edk2-nvidia

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

No branches or pull requests

2 participants