Re: Very poor -CURRENT boot performance on AMD

From: Jung-uk Kim <jkim_at_FreeBSD.org>
Date: Thu, 20 Feb 2025 04:22:00 UTC
On 25. 2. 19., Mohammad Noureldin wrote:
> Hi,
> 
> I've installed -CURRENT using snapshot "FreeBSD-15.0-CURRENT- 
> amd64-20250213-6156da866e7d-275409" on an HP EliteBook 845 G10 with AMD 
> Ryzen 5 7540U.
> 
> Both when booting from the install media and when booting from disk 
> after installation I get a very poor boot performance up until the 
> FreeBSD Boot Options Menu. Right after it is all OK.
> 
> I've recorded what happens during the boot from the installation media 
> in [1].
> 
> Does this ring any bells ? Is it a bug that I should report in a PR 
> (Problem Report) ?
> 
> [1] https://drive.google.com/file/d/1s1a9qTwh-8gWOp0Lyta_Wc0RyUAkXTND/ 
> view?usp=sharing <https://drive.google.com/file/ 
> d/1s1a9qTwh-8gWOp0Lyta_Wc0RyUAkXTND/view?usp=sharing>

This happens because UEFI framebuffer access from boot loader is very 
slow.  Once the kernel is loaded and booted, everything is okay because 
we properly set memory attribute.  It's a long standing bug and there's 
PR254381.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254381

Jung-uk Kim