Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Feb 2025 20:47:36 -0600
From:      "Maku Bex" <zagazaw2004@gmail.com>
To:        "'Mohammad Noureldin'" <mohammad@thelightbird.com>, "'Freebsd current'" <freebsd-current@freebsd.org>
Subject:   RE: Very poor -CURRENT boot performance on AMD
Message-ID:  <002301db8341$cd1ffc60$675ff520$@gmail.com>
In-Reply-To: <CAAQ96DxEOHexefyiFStHUYt6rnmGsGj%2BFvZhGyXqooaGyNEteg@mail.gmail.com>
References:  <CAAQ96DxEOHexefyiFStHUYt6rnmGsGj%2BFvZhGyXqooaGyNEteg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multipart message in MIME format.

------=_NextPart_000_0024_01DB830F.828628A0
Content-Type: text/plain;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Hi Mohammad,

=20

The performance issue(s) have been noted on the UPDATING file. Here is a =
snippet:=20

=20

=20

NOTE TO PEOPLE WHO THINK THAT FreeBSD 15.x IS SLOW:

     FreeBSD 15.x has many debugging features turned on, in both the =
kernel

     and userland.  These features attempt to detect incorrect use of

     system primitives, and encourage loud failure through extra sanity

     checking and fail stop semantics.  They also substantially impact

     system performance.  If you want to do performance measurement,

     benchmarking, and optimization, you'll want to turn them off.  This

     includes various WITNESS- related kernel options, INVARIANTS, =
malloc

     debugging flags in userland, and various verbose features in the

     kernel.  Many developers choose to disable these features on build

     machines to maximize performance.  (To completely disable malloc

     debugging, define WITH_MALLOC_PRODUCTION in /etc/src.conf and =
rebuild

     world, or to merely disable the most expensive debugging =
functionality

     at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".)

=20

-----BEGIN PGP PUBLIC KEY BLOCK-----

=20

mJMEZlPMfxMFK4EEACMEIwQA/hAHZ4KNJLw5eRl6DAOyzkuHQ7PaK2hTYLVIPoxC

sCe8lB/hzET5KxMW9GXgFgPaSP7Es+ul6ajyq8pr9DeGnXUAFymi7GoT1kLIqgrn

X+rDAwMk9JNEElTmVNvgKWv/G+pSg2rAQ8sIw6smgckA0CaX1JdcNavrHDgKMO4u

Duo44Te0BkpPTUlTTYjbBBMTCgBBFiEENyUvu5bQVBXM019e8anbed+sQ8YFAmZT

zH8CGwMFCQHnaREFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQ8anbed+s

Q8Y5BgIHcX19jz0KP89uTmqvLGZcKsITDJKweAnccCZRS8hvXT8JBwR1LyxsBBKF

++eN2JJasZLo+s6sy7pDMN+9z4Gkdy0CCOj+arfLdvajfzdK4QeKpINfpa2SkQD1

CP98lvfI/luIbetUVW+qNDkzT1jZphYuzgsCaofTGCIQpFk19q22ZcZquJcEZlPM

fxIFK4EEACMEIwQANy4VvpnTHneZipCPwzVJnMN82coCudRAiL2i2m3GPA06lRtU

njcn9r9Sm26A0sajwc3kQw/ekWrHXpXV0aL076cAUW9GKYDljIHVlr76wgHbLt6q

BX5VkA6xS0cq3skbMEI0QpIqIK81Yf0z8wfyF5uqAgNPUpY4nHMV9S856JB2VDQD

AQoJiMEEGBMKACYWIQQ3JS+7ltBUFczTX17xqdt536xDxgUCZlPMfwIbDAUJAedp

EQAKCRDxqdt536xDxjIuAgjacZCttPWpKGfMbnNWePz6t9rcMUb496tSWfKRActr

Rco8lSaDNTVohT/6hLZ5wUX5NFUqTb+kOXJcUGHGbnw2KQIJAQu1m9zEP5XdWmFi

SvGg1NHW2kzqAvFsG37flbwrGRu5fmTnS/LZ/oPzOCuwU6F+o1q0E7gLwFwnzD93

riKeabdd

=3DiCV+

-----END PGP PUBLIC KEY BLOCK-----

=20

From: owner-freebsd-current@FreeBSD.org =
<owner-freebsd-current@FreeBSD.org> On Behalf Of Mohammad Noureldin
Sent: Wednesday, February 19, 2025 9:34 PM
To: Freebsd current <freebsd-current@freebsd.org>
Subject: Very poor -CURRENT boot performance on AMD

=20

Hi,

=20

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.

=20

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.

=20

I've recorded what happens during the boot from the installation media =
in [1].

=20

Does this ring any bells ? Is it a bug that I should report in a PR =
(Problem Report) ?

=20

[1] =
https://drive.google.com/file/d/1s1a9qTwh-8gWOp0Lyta_Wc0RyUAkXTND/view?us=
p=3Dsharing

=20

--=20

Thanks
- Mohammad Noureldin
--
"Life is like riding a bicycle. To keep your balance you must keep =
moving"
- Albert Einstein

=20


------=_NextPart_000_0024_01DB830F.828628A0
Content-Type: text/html;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"><meta =
name=3DGenerator content=3D"Microsoft Word 15 (filtered =
medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
span.gmailsignatureprefix
	{mso-style-name:gmail_signature_prefix;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:"Courier New";
	color:windowtext;
	font-weight:normal;
	font-style:normal;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple style=3D'word-wrap:break-word'><div =
class=3DWordSection1><p class=3DMsoNormal><span =
style=3D'font-family:"Courier New"'>Hi Mohammad,<o:p></o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-family:"Courier =
New"'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-family:"Courier New"'>The performance issue(s) have been =
noted on the UPDATING file. Here is a snippet: <o:p></o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-family:"Courier =
New"'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-family:"Courier New"'>NOTE TO =
PEOPLE WHO THINK THAT FreeBSD 15.x IS SLOW:<o:p></o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0 FreeBSD 15.x has many debugging features =
turned on, in both the kernel<o:p></o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0 and userland.=C2=A0 These features =
attempt to detect incorrect use of<o:p></o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0 system primitives, and encourage loud =
failure through extra sanity<o:p></o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0 checking and fail stop semantics.=C2=A0 =
They also substantially impact<o:p></o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0 system performance.=C2=A0 If you want to =
do performance measurement,<o:p></o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0 benchmarking, and optimization, you'll =
want to turn them off.=C2=A0 This<o:p></o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0 includes various WITNESS- related kernel =
options, INVARIANTS, malloc<o:p></o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-family:"Courier =
New"'>=C2=A0=C2=A0=C2=A0=C2=A0 debugging flags in userland, and various =
verbose features in the<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-family:"Courier New"'>=C2=A0=C2=A0=C2=A0=C2=A0 =
kernel.=C2=A0 Many developers choose to disable these features on =
build<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-family:"Courier New"'>=C2=A0=C2=A0=C2=A0=C2=A0 machines to =
maximize performance.=C2=A0 (To completely disable =
malloc<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-family:"Courier New"'>=C2=A0=C2=A0=C2=A0=C2=A0 debugging, =
define WITH_MALLOC_PRODUCTION in /etc/src.conf and =
rebuild<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-family:"Courier New"'>=C2=A0=C2=A0=C2=A0=C2=A0 world, or =
to merely disable the most expensive debugging =
functionality<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-family:"Courier New"'>=C2=A0=C2=A0=C2=A0=C2=A0 at runtime, =
run &quot;ln -s 'abort:false,junk:false' =
/etc/malloc.conf&quot;.)<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal>-----BEGIN PGP PUBLIC KEY BLOCK-----<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal><span =
style=3D'font-size:8.0pt;font-family:"Courier =
New"'>mJMEZlPMfxMFK4EEACMEIwQA/hAHZ4KNJLw5eRl6DAOyzkuHQ7PaK2hTYLVIPoxC<o:=
p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:8.0pt;font-family:"Courier =
New"'>sCe8lB/hzET5KxMW9GXgFgPaSP7Es+ul6ajyq8pr9DeGnXUAFymi7GoT1kLIqgrn<o:=
p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:8.0pt;font-family:"Courier =
New"'>X+rDAwMk9JNEElTmVNvgKWv/G+pSg2rAQ8sIw6smgckA0CaX1JdcNavrHDgKMO4u<o:=
p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:8.0pt;font-family:"Courier =
New"'>Duo44Te0BkpPTUlTTYjbBBMTCgBBFiEENyUvu5bQVBXM019e8anbed+sQ8YFAmZT<o:=
p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:8.0pt;font-family:"Courier =
New"'>zH8CGwMFCQHnaREFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQ8anbed+s<o:=
p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:8.0pt;font-family:"Courier =
New"'>Q8Y5BgIHcX19jz0KP89uTmqvLGZcKsITDJKweAnccCZRS8hvXT8JBwR1LyxsBBKF<o:=
p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:8.0pt;font-family:"Courier =
New"'>++eN2JJasZLo+s6sy7pDMN+9z4Gkdy0CCOj+arfLdvajfzdK4QeKpINfpa2SkQD1<o:=
p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:8.0pt;font-family:"Courier =
New"'>CP98lvfI/luIbetUVW+qNDkzT1jZphYuzgsCaofTGCIQpFk19q22ZcZquJcEZlPM<o:=
p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:8.0pt;font-family:"Courier =
New"'>fxIFK4EEACMEIwQANy4VvpnTHneZipCPwzVJnMN82coCudRAiL2i2m3GPA06lRtU<o:=
p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:8.0pt;font-family:"Courier =
New"'>njcn9r9Sm26A0sajwc3kQw/ekWrHXpXV0aL076cAUW9GKYDljIHVlr76wgHbLt6q<o:=
p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:8.0pt;font-family:"Courier =
New"'>BX5VkA6xS0cq3skbMEI0QpIqIK81Yf0z8wfyF5uqAgNPUpY4nHMV9S856JB2VDQD<o:=
p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:8.0pt;font-family:"Courier =
New"'>AQoJiMEEGBMKACYWIQQ3JS+7ltBUFczTX17xqdt536xDxgUCZlPMfwIbDAUJAedp<o:=
p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:8.0pt;font-family:"Courier =
New"'>EQAKCRDxqdt536xDxjIuAgjacZCttPWpKGfMbnNWePz6t9rcMUb496tSWfKRActr<o:=
p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:8.0pt;font-family:"Courier =
New"'>Rco8lSaDNTVohT/6hLZ5wUX5NFUqTb+kOXJcUGHGbnw2KQIJAQu1m9zEP5XdWmFi<o:=
p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:8.0pt;font-family:"Courier =
New"'>SvGg1NHW2kzqAvFsG37flbwrGRu5fmTnS/LZ/oPzOCuwU6F+o1q0E7gLwFwnzD93<o:=
p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:8.0pt;font-family:"Courier =
New"'>riKeabdd<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:8.0pt;font-family:"Courier =
New"'>=3DiCV+</span><o:p></o:p></p><p class=3DMsoNormal>-----END PGP =
PUBLIC KEY BLOCK-----<o:p></o:p></p><p class=3DMsoNormal><span =
style=3D'font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p><div =
style=3D'border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in =
0in 0in'><p class=3DMsoNormal><b>From:</b> =
owner-freebsd-current@FreeBSD.org =
&lt;owner-freebsd-current@FreeBSD.org&gt; <b>On Behalf Of </b>Mohammad =
Noureldin<br><b>Sent:</b> Wednesday, February 19, 2025 9:34 =
PM<br><b>To:</b> Freebsd current =
&lt;freebsd-current@freebsd.org&gt;<br><b>Subject:</b> Very poor =
-CURRENT boot performance on AMD<o:p></o:p></p></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><div><p =
class=3DMsoNormal>Hi,<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>I've installed -CURRENT using snapshot =
&quot;FreeBSD-15.0-CURRENT-amd64-20250213-6156da866e7d-275409&quot; on =
an HP EliteBook 845 G10 with&nbsp;AMD Ryzen 5 =
7540U.<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>Both when booting from the install media and when =
booting from disk after installation I get a very poor boot performance =
up until&nbsp;the FreeBSD Boot Options Menu. Right after it is all =
OK.<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>I've recorded what happens during the boot from the =
installation media in [1].<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>Does this ring any bells ? Is it a bug that I should =
report in a PR (Problem Report) ?<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>[1]&nbsp;<a =
href=3D"https://drive.google.com/file/d/1s1a9qTwh-8gWOp0Lyta_Wc0RyUAkXTND=
/view?usp=3Dsharing">https://drive.google.com/file/d/1s1a9qTwh-8gWOp0Lyta=
_Wc0RyUAkXTND/view?usp=3Dsharing</a><o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><p class=3DMsoNormal><span =
class=3Dgmailsignatureprefix>-- =
</span><o:p></o:p></p><div><div><div><div><p class=3DMsoNormal><span =
style=3D'color:#888888'>Thanks<br>- Mohammad =
Noureldin<br>--<br>&quot;Life is like riding a bicycle. To keep your =
balance you must keep moving&quot;<br>- Albert =
Einstein<o:p></o:p></span></p></div></div><div><p =
class=3DMsoNormal><span =
style=3D'color:#888888'><o:p>&nbsp;</o:p></span></p></div></div></div></d=
iv></div></body></html>
------=_NextPart_000_0024_01DB830F.828628A0--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002301db8341$cd1ffc60$675ff520$>