Date: Mon, 24 Feb 2025 14:04:53 +0100 From: Mohammad Noureldin <mohammad@thelightbird.com> To: Maku Bex <zagazaw2004@gmail.com> Cc: Freebsd current <freebsd-current@freebsd.org> Subject: Re: Very poor -CURRENT boot performance on AMD Message-ID: <CAAQ96DzBZY7YDfogUkDJ-pEoYvh28=fyC8mQX3E%2Brf69Uw-%2Bgg@mail.gmail.com> In-Reply-To: <002301db8341$cd1ffc60$675ff520$@gmail.com> References: <CAAQ96DxEOHexefyiFStHUYt6rnmGsGj%2BFvZhGyXqooaGyNEteg@mail.gmail.com> <002301db8341$cd1ffc60$675ff520$@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000b29bc0062ee218a2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Maku, On Thu, Feb 20, 2025 at 3:47=E2=80=AFAM Maku Bex <zagazaw2004@gmail.com> wr= ote: > Hi Mohammad, > > > > The performance issue(s) have been noted on the UPDATING file. Here is a > snippet: > > > > > > NOTE TO PEOPLE WHO THINK THAT FreeBSD 15.x IS SLOW: > > FreeBSD 15.x has many debugging features turned on, in both the kern= el > > 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 rebuil= d > > world, or to merely disable the most expensive debugging functionali= ty > > at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".) > > > > -----BEGIN PGP PUBLIC KEY BLOCK----- > > > > 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----- > > > --snip-- Thanks for the reference. I've made some more tests with 14.2 and I got the same results. Though 14.2 was relatively better but still I got the same poor performance as indicated in the video recording. --=20 Thanks - Mohammad Noureldin -- "Life is like riding a bicycle. To keep your balance you must keep moving" - Albert Einstein --000000000000b29bc0062ee218a2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr">Hi Maku,</div><br><div class=3D"gmail_quo= te gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, Feb= 20, 2025 at 3:47=E2=80=AFAM Maku Bex <<a href=3D"mailto:zagazaw2004@gma= il.com">zagazaw2004@gmail.com</a>> wrote:<br></div><blockquote class=3D"= gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(20= 4,204,204);padding-left:1ex"><div class=3D"msg6371792574176749535"><div lan= g=3D"EN-US" style=3D"overflow-wrap: break-word;"><div class=3D"m_6371792574= 176749535WordSection1"><p class=3D"MsoNormal"><span style=3D"font-family:&q= uot;Courier New"">Hi Mohammad,<u></u><u></u></span></p><p class=3D"Mso= Normal"><span style=3D"font-family:"Courier New""><u></u>=C2=A0<u= ></u></span></p><p class=3D"MsoNormal"><span style=3D"font-family:"Cou= rier New"">The performance issue(s) have been noted on the UPDATING fi= le. Here is a snippet: <u></u><u></u></span></p><p class=3D"MsoNormal"><spa= n style=3D"font-family:"Courier New""><u></u>=C2=A0<u></u></span>= </p><p class=3D"MsoNormal"><span style=3D"font-family:"Courier New&quo= t;"><u></u>=C2=A0<u></u></span></p><p class=3D"MsoNormal"><span style=3D"fo= nt-family:"Courier New"">NOTE TO PEOPLE WHO THINK THAT FreeBSD 15= .x IS SLOW:<u></u><u></u></span></p><p class=3D"MsoNormal"><span style=3D"f= ont-family:"Courier New"">=C2=A0=C2=A0=C2=A0=C2=A0 FreeBSD 15.x h= as many debugging features turned on, in both the kernel<u></u><u></u></spa= n></p><p class=3D"MsoNormal"><span style=3D"font-family:"Courier New&q= uot;">=C2=A0=C2=A0=C2=A0=C2=A0 and userland.=C2=A0 These features attempt t= o detect incorrect use of<u></u><u></u></span></p><p class=3D"MsoNormal"><s= pan style=3D"font-family:"Courier New"">=C2=A0=C2=A0=C2=A0=C2=A0 = system primitives, and encourage loud failure through extra sanity<u></u><u= ></u></span></p><p class=3D"MsoNormal"><span style=3D"font-family:"Cou= rier New"">=C2=A0=C2=A0=C2=A0=C2=A0 checking and fail stop semantics.= =C2=A0 They also substantially impact<u></u><u></u></span></p><p class=3D"M= soNormal"><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 measur= ement,<u></u><u></u></span></p><p class=3D"MsoNormal"><span style=3D"font-f= amily:"Courier New"">=C2=A0=C2=A0=C2=A0=C2=A0 benchmarking, and o= ptimization, you'll want to turn them off.=C2=A0 This<u></u><u></u></sp= an></p><p class=3D"MsoNormal"><span style=3D"font-family:"Courier New&= quot;">=C2=A0=C2=A0=C2=A0=C2=A0 includes various WITNESS- related kernel op= tions, INVARIANTS, malloc<u></u><u></u></span></p><p class=3D"MsoNormal"><s= pan style=3D"font-family:"Courier New"">=C2=A0=C2=A0=C2=A0=C2=A0 = debugging flags in userland, and various verbose features in the<u></u><u><= /u></span></p><p class=3D"MsoNormal"><span style=3D"font-family:"Couri= er New"">=C2=A0=C2=A0=C2=A0=C2=A0 kernel.=C2=A0 Many developers choose= to disable these features on build<u></u><u></u></span></p><p class=3D"Mso= Normal"><span style=3D"font-family:"Courier New"">=C2=A0=C2=A0=C2= =A0=C2=A0 machines to maximize performance.=C2=A0 (To completely disable ma= lloc<u></u><u></u></span></p><p class=3D"MsoNormal"><span style=3D"font-fam= ily:"Courier New"">=C2=A0=C2=A0=C2=A0=C2=A0 debugging, define WIT= H_MALLOC_PRODUCTION in /etc/src.conf and rebuild<u></u><u></u></span></p><p= class=3D"MsoNormal"><span style=3D"font-family:"Courier New"">= =C2=A0=C2=A0=C2=A0=C2=A0 world, or to merely disable the most expensive deb= ugging functionality<u></u><u></u></span></p><p class=3D"MsoNormal"><span s= tyle=3D"font-family:"Courier New"">=C2=A0=C2=A0=C2=A0=C2=A0 at ru= ntime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf&qu= ot;.)<u></u><u></u></span></p><p class=3D"MsoNormal"><span style=3D"font-fa= mily:"Courier New""><u></u>=C2=A0<u></u></span></p><p class=3D"Ms= oNormal">-----BEGIN PGP PUBLIC KEY BLOCK-----<u></u><u></u></p><p class=3D"= MsoNormal"><u></u>=C2=A0<u></u></p><p class=3D"MsoNormal"><span style=3D"fo= nt-size:8pt;font-family:"Courier New"">mJMEZlPMfxMFK4EEACMEIwQA/h= AHZ4KNJLw5eRl6DAOyzkuHQ7PaK2hTYLVIPoxC<u></u><u></u></span></p><p class=3D"= MsoNormal"><span style=3D"font-size:8pt;font-family:"Courier New"= ">sCe8lB/hzET5KxMW9GXgFgPaSP7Es+ul6ajyq8pr9DeGnXUAFymi7GoT1kLIqgrn<u></u><u= ></u></span></p><p class=3D"MsoNormal"><span style=3D"font-size:8pt;font-fa= mily:"Courier New"">X+rDAwMk9JNEElTmVNvgKWv/G+pSg2rAQ8sIw6smgckA0= CaX1JdcNavrHDgKMO4u<u></u><u></u></span></p><p class=3D"MsoNormal"><span st= yle=3D"font-size:8pt;font-family:"Courier New"">Duo44Te0BkpPTUlTT= YjbBBMTCgBBFiEENyUvu5bQVBXM019e8anbed+sQ8YFAmZT<u></u><u></u></span></p><p = class=3D"MsoNormal"><span style=3D"font-size:8pt;font-family:"Courier = New"">zH8CGwMFCQHnaREFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQ8anbed+s= <u></u><u></u></span></p><p class=3D"MsoNormal"><span style=3D"font-size:8p= t;font-family:"Courier New"">Q8Y5BgIHcX19jz0KP89uTmqvLGZcKsITDJKw= eAnccCZRS8hvXT8JBwR1LyxsBBKF<u></u><u></u></span></p><p class=3D"MsoNormal"= ><span style=3D"font-size:8pt;font-family:"Courier New"">++eN2JJa= sZLo+s6sy7pDMN+9z4Gkdy0CCOj+arfLdvajfzdK4QeKpINfpa2SkQD1<u></u><u></u></spa= n></p><p class=3D"MsoNormal"><span style=3D"font-size:8pt;font-family:"= ;Courier New"">CP98lvfI/luIbetUVW+qNDkzT1jZphYuzgsCaofTGCIQpFk19q22ZcZ= quJcEZlPM<u></u><u></u></span></p><p class=3D"MsoNormal"><span style=3D"fon= t-size:8pt;font-family:"Courier New"">fxIFK4EEACMEIwQANy4VvpnTHne= ZipCPwzVJnMN82coCudRAiL2i2m3GPA06lRtU<u></u><u></u></span></p><p class=3D"M= soNormal"><span style=3D"font-size:8pt;font-family:"Courier New""= >njcn9r9Sm26A0sajwc3kQw/ekWrHXpXV0aL076cAUW9GKYDljIHVlr76wgHbLt6q<u></u><u>= </u></span></p><p class=3D"MsoNormal"><span style=3D"font-size:8pt;font-fam= ily:"Courier New"">BX5VkA6xS0cq3skbMEI0QpIqIK81Yf0z8wfyF5uqAgNPUp= Y4nHMV9S856JB2VDQD<u></u><u></u></span></p><p class=3D"MsoNormal"><span sty= le=3D"font-size:8pt;font-family:"Courier New"">AQoJiMEEGBMKACYWIQ= Q3JS+7ltBUFczTX17xqdt536xDxgUCZlPMfwIbDAUJAedp<u></u><u></u></span></p><p c= lass=3D"MsoNormal"><span style=3D"font-size:8pt;font-family:"Courier N= ew"">EQAKCRDxqdt536xDxjIuAgjacZCttPWpKGfMbnNWePz6t9rcMUb496tSWfKRActr<= u></u><u></u></span></p><p class=3D"MsoNormal"><span style=3D"font-size:8pt= ;font-family:"Courier New"">Rco8lSaDNTVohT/6hLZ5wUX5NFUqTb+kOXJcU= GHGbnw2KQIJAQu1m9zEP5XdWmFi<u></u><u></u></span></p><p class=3D"MsoNormal">= <span style=3D"font-size:8pt;font-family:"Courier New"">SvGg1NHW2= kzqAvFsG37flbwrGRu5fmTnS/LZ/oPzOCuwU6F+o1q0E7gLwFwnzD93<u></u><u></u></span= ></p><p class=3D"MsoNormal"><span style=3D"font-size:8pt;font-family:"= Courier New"">riKeabdd<u></u><u></u></span></p><p class=3D"MsoNormal">= <span style=3D"font-size:8pt;font-family:"Courier New"">=3DiCV+</= span><u></u><u></u></p><p class=3D"MsoNormal">-----END PGP PUBLIC KEY BLOCK= -----<u></u><u></u></p><p class=3D"MsoNormal"><span style=3D"font-family:&q= uot;Courier New""><u></u>=C2=A0</span></p></div></div></div></blockquo= te><div>=C2=A0--snip--</div><div><span style=3D"color:rgb(136,136,136)"><br= ></span></div>Thanks for the reference. I've made some more tests with = 14.2 and I got the same results. Though 14.2 was relatively better but stil= l I got the same poor performance as indicated in the video recording.</div= ><div><br></div><span class=3D"gmail_signature_prefix">-- </span><br><div d= ir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"= style=3D"color:rgb(136,136,136)">Thanks<br>- Mohammad Noureldin<br>--<br>&= quot;Life is like riding a bicycle. To keep your balance you must keep movi= ng"<br>- Albert Einstein</div></div><div dir=3D"ltr" style=3D"color:rg= b(136,136,136)"><br></div></div></div></div> --000000000000b29bc0062ee218a2--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAQ96DzBZY7YDfogUkDJ-pEoYvh28=fyC8mQX3E%2Brf69Uw-%2Bgg>