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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] Hi Maku, On Thu, Feb 20, 2025 at 3:47 AM Maku Bex <zagazaw2004@gmail.com> wrote: > 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 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".) > > > > -----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 > > =iCV+ > > -----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. -- Thanks - Mohammad Noureldin -- "Life is like riding a bicycle. To keep your balance you must keep moving" - Albert Einstein [-- Attachment #2 --] <div dir="ltr"><div dir="ltr">Hi Maku,</div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Feb 20, 2025 at 3:47 AM Maku Bex <<a href="mailto:zagazaw2004@gmail.com">zagazaw2004@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg6371792574176749535"><div lang="EN-US" style="overflow-wrap: break-word;"><div class="m_6371792574176749535WordSection1"><p class="MsoNormal"><span style="font-family:"Courier New"">Hi Mohammad,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">The performance issue(s) have been noted on the UPDATING file. Here is a snippet: <u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">NOTE TO PEOPLE WHO THINK THAT FreeBSD 15.x IS SLOW:<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""> FreeBSD 15.x has many debugging features turned on, in both the kernel<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""> and userland. These features attempt to detect incorrect use of<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""> system primitives, and encourage loud failure through extra sanity<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""> checking and fail stop semantics. They also substantially impact<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""> system performance. If you want to do performance measurement,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""> benchmarking, and optimization, you'll want to turn them off. This<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""> includes various WITNESS- related kernel options, INVARIANTS, malloc<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""> debugging flags in userland, and various verbose features in the<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""> kernel. Many developers choose to disable these features on build<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""> machines to maximize performance. (To completely disable malloc<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""> debugging, define WITH_MALLOC_PRODUCTION in /etc/src.conf and rebuild<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""> world, or to merely disable the most expensive debugging functionality<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""> at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".)<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal">-----BEGIN PGP PUBLIC KEY BLOCK-----<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="font-size:8pt;font-family:"Courier New"">mJMEZlPMfxMFK4EEACMEIwQA/hAHZ4KNJLw5eRl6DAOyzkuHQ7PaK2hTYLVIPoxC<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8pt;font-family:"Courier New"">sCe8lB/hzET5KxMW9GXgFgPaSP7Es+ul6ajyq8pr9DeGnXUAFymi7GoT1kLIqgrn<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8pt;font-family:"Courier New"">X+rDAwMk9JNEElTmVNvgKWv/G+pSg2rAQ8sIw6smgckA0CaX1JdcNavrHDgKMO4u<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8pt;font-family:"Courier New"">Duo44Te0BkpPTUlTTYjbBBMTCgBBFiEENyUvu5bQVBXM019e8anbed+sQ8YFAmZT<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8pt;font-family:"Courier New"">zH8CGwMFCQHnaREFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQ8anbed+s<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8pt;font-family:"Courier New"">Q8Y5BgIHcX19jz0KP89uTmqvLGZcKsITDJKweAnccCZRS8hvXT8JBwR1LyxsBBKF<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8pt;font-family:"Courier New"">++eN2JJasZLo+s6sy7pDMN+9z4Gkdy0CCOj+arfLdvajfzdK4QeKpINfpa2SkQD1<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8pt;font-family:"Courier New"">CP98lvfI/luIbetUVW+qNDkzT1jZphYuzgsCaofTGCIQpFk19q22ZcZquJcEZlPM<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8pt;font-family:"Courier New"">fxIFK4EEACMEIwQANy4VvpnTHneZipCPwzVJnMN82coCudRAiL2i2m3GPA06lRtU<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8pt;font-family:"Courier New"">njcn9r9Sm26A0sajwc3kQw/ekWrHXpXV0aL076cAUW9GKYDljIHVlr76wgHbLt6q<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8pt;font-family:"Courier New"">BX5VkA6xS0cq3skbMEI0QpIqIK81Yf0z8wfyF5uqAgNPUpY4nHMV9S856JB2VDQD<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8pt;font-family:"Courier New"">AQoJiMEEGBMKACYWIQQ3JS+7ltBUFczTX17xqdt536xDxgUCZlPMfwIbDAUJAedp<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8pt;font-family:"Courier New"">EQAKCRDxqdt536xDxjIuAgjacZCttPWpKGfMbnNWePz6t9rcMUb496tSWfKRActr<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8pt;font-family:"Courier New"">Rco8lSaDNTVohT/6hLZ5wUX5NFUqTb+kOXJcUGHGbnw2KQIJAQu1m9zEP5XdWmFi<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8pt;font-family:"Courier New"">SvGg1NHW2kzqAvFsG37flbwrGRu5fmTnS/LZ/oPzOCuwU6F+o1q0E7gLwFwnzD93<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8pt;font-family:"Courier New"">riKeabdd<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8pt;font-family:"Courier New"">=iCV+</span><u></u><u></u></p><p class="MsoNormal">-----END PGP PUBLIC KEY BLOCK-----<u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Courier New""><u></u> </span></p></div></div></div></blockquote><div> --snip--</div><div><span style="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 still I got the same poor performance as indicated in the video recording.</div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr" style="color:rgb(136,136,136)">Thanks<br>- Mohammad Noureldin<br>--<br>"Life is like riding a bicycle. To keep your balance you must keep moving"<br>- Albert Einstein</div></div><div dir="ltr" style="color:rgb(136,136,136)"><br></div></div></div></div>home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAQ96DzBZY7YDfogUkDJ-pEoYvh28=fyC8mQX3E%2Brf69Uw-%2Bgg>
