From nobody Mon Feb 24 13:04:53 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Z1fTR4kbYz5nxXh for ; Mon, 24 Feb 2025 12:01:15 +0000 (UTC) (envelope-from mohammad@thelightbird.com) Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Z1fTQ5xQfz3w36 for ; Mon, 24 Feb 2025 12:01:14 +0000 (UTC) (envelope-from mohammad@thelightbird.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=thelightbird-com.20230601.gappssmtp.com header.s=20230601 header.b=t0GYVDKm; dmarc=none; spf=fail (mx1.freebsd.org: domain of mohammad@thelightbird.com does not designate 2a00:1450:4864:20::235 as permitted sender) smtp.mailfrom=mohammad@thelightbird.com Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-30a29f4bd43so37731161fa.0 for ; Mon, 24 Feb 2025 04:01:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thelightbird-com.20230601.gappssmtp.com; s=20230601; t=1740398472; x=1741003272; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Gr8kJTXMv7Qutdi2fyXjO1eytc2KYJFn0PcAL4sMr3Q=; b=t0GYVDKmpskLelA64SN9a+s+daPNyWH0z4+Ol1Spi/e7HDrWwWAo2ZzsRh+eGz1sVm b0hf4HRB4wxYaDpjLF125QczQWGnOuGCvH8gHIK6k9IKNcHi51E/xC4TtZ2fEanWH8Yq RHXXorFRmBXbm8UgCJZKgZHim7S+ky9vFPF43qL1zp77zA4Ez5Qlw2O12QbMVnEdn/qW ZFDLAtwzOD1YvhDVF8yf3SRMgbAmzLvqPcXPT4Lm0yLuc2wwozpCnLB6OxNCRdMmaM5V nVhsbeLnEfkal19fGNAHrbMTqci3MA7ZnJ2jktplzwfIgpRQs/xRDUJtXBhTyoNg3Jht eNkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740398472; x=1741003272; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Gr8kJTXMv7Qutdi2fyXjO1eytc2KYJFn0PcAL4sMr3Q=; b=MDBrPGRbuKq7TAzioh25YFdZeCoi+HZDtfiq2/N25gSh88gH7Pjr53QPuL+mnPkGaT Tq+jodJH0RTEQZsMmHS87FhaVsoMQoAMqggtOBxCnfcq6BKoXknHWQH1PTJK54YFhnpv +CDd1Ha4ZfLuMF1eRr9/UZ0JlqLrlRXtinGWxj5lMQWyv+r0D8wdy1PSiCAFf/kueNMx xJqxAgWgR/QJ2tDVVa8BY258AP/Y5keHhUR2F/ftCmfmL/cVJTDPVkVswYN7p+c1yHdP AxRDM1dWm8AzJhzzPYyXDQp3LXzoSu2R1F7aCJxTf+Lg+u1ew1fMN+i8+i9IJOSGjv8Y CZYA== X-Gm-Message-State: AOJu0YwbjTe3T7Ro3EF5C7CE6k+0Rv9rSaIv8CSrAqtAdcM9d/6zW+SI bUaqb8cfZk5fNLGSQCFEQ7kL3HwkDIOJdbM0XDF3Ejb9R7by7DOcpicMoTzNvnHabHjlAkuY2QD 2CKeAY7eU+m6bkmfM4jm04KPdv2f27Qzj189osr0c7hctCH8= X-Gm-Gg: ASbGncsSa+VIw6LqqoNc7RZLtRdOpKnFn8clfQZZEPT25niL1RpRjM5pSoSgZVQAjfv R2PMiCoQ7qqn5CQx3SE/OwfPN36R5JZy1oBvjCGRheiEfkLDWcY5j4ypj5pa0JfobiM7fmXeNri HvaV0YEw== X-Google-Smtp-Source: AGHT+IHg6pxpN5HJwXU5i2iZ+rO4rXBR3Y+riDaMMkKudbb7KmDIMGg3yDjnuZMFWYwWlU4v/TYqjw5PK9orG9IsqjQ= X-Received: by 2002:a2e:9b0c:0:b0:309:20b4:b6d5 with SMTP id 38308e7fff4ca-30a5998bae8mr41816561fa.28.1740398472100; Mon, 24 Feb 2025 04:01:12 -0800 (PST) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 References: <002301db8341$cd1ffc60$675ff520$@gmail.com> In-Reply-To: <002301db8341$cd1ffc60$675ff520$@gmail.com> From: Mohammad Noureldin Date: Mon, 24 Feb 2025 14:04:53 +0100 X-Gm-Features: AWEUYZnRX6-mNZyeoAzMNuVchQnJ-KB7bMyqtl8uztVIeNVviQpEdt61gfWgXjQ Message-ID: Subject: Re: Very poor -CURRENT boot performance on AMD To: Maku Bex Cc: Freebsd current Content-Type: multipart/alternative; boundary="000000000000b29bc0062ee218a2" X-Spamd-Result: default: False [-2.30 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_SPF_FAIL(1.00)[-all]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[thelightbird-com.20230601.gappssmtp.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[thelightbird.com]; ARC_NA(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MISSING_XM_UA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::235:from]; TO_DN_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[thelightbird-com.20230601.gappssmtp.com:+] X-Rspamd-Queue-Id: 4Z1fTQ5xQfz3w36 X-Spamd-Bar: -- --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 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
Hi Maku,

On Thu, Feb= 20, 2025 at 3:47=E2=80=AFAM Maku Bex <zagazaw2004@gmail.com> wrote:

Hi Mohammad,

=C2=A0

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

=C2=A0=

=C2=A0

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

=C2=A0=C2=A0=C2=A0=C2=A0 FreeBSD 15.x h= as many debugging features turned on, in both the kernel

=C2=A0=C2=A0=C2=A0=C2=A0 and userland.=C2=A0 These features attempt t= o detect incorrect use of

=C2=A0=C2=A0=C2=A0=C2=A0 = system primitives, and encourage loud failure through extra sanity

=C2=A0=C2=A0=C2=A0=C2=A0 checking and fail stop semantics.= =C2=A0 They also substantially impact

=C2=A0=C2=A0= =C2=A0=C2=A0 system performance.=C2=A0 If you want to do performance measur= ement,

=C2=A0=C2=A0=C2=A0=C2=A0 benchmarking, and o= ptimization, you'll want to turn them off.=C2=A0 This

=C2=A0=C2=A0=C2=A0=C2=A0 includes various WITNESS- related kernel op= tions, INVARIANTS, malloc

=C2=A0=C2=A0=C2=A0=C2=A0 = debugging flags in userland, and various verbose features in the<= /u>

=C2=A0=C2=A0=C2=A0=C2=A0 kernel.=C2=A0 Many developers choose= to disable these features on build

=C2=A0=C2=A0=C2= =A0=C2=A0 machines to maximize performance.=C2=A0 (To completely disable ma= lloc

=C2=A0=C2=A0=C2=A0=C2=A0 debugging, define WIT= H_MALLOC_PRODUCTION in /etc/src.conf and rebuild

= =C2=A0=C2=A0=C2=A0=C2=A0 world, or to merely disable the most expensive deb= ugging functionality

=C2=A0=C2=A0=C2=A0=C2=A0 at ru= ntime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf&qu= ot;.)

=C2=A0

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

=C2=A0

mJMEZlPMfxMFK4EEACMEIwQA/h= AHZ4KNJLw5eRl6DAOyzkuHQ7PaK2hTYLVIPoxC

X+rDAwMk9JNEElTmVNvgKWv/G+pSg2rAQ8sIw6smgckA0= CaX1JdcNavrHDgKMO4u

Duo44Te0BkpPTUlTT= YjbBBMTCgBBFiEENyUvu5bQVBXM019e8anbed+sQ8YFAmZT

zH8CGwMFCQHnaREFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQ8anbed+s=

Q8Y5BgIHcX19jz0KP89uTmqvLGZcKsITDJKw= eAnccCZRS8hvXT8JBwR1LyxsBBKF

++eN2JJa= sZLo+s6sy7pDMN+9z4Gkdy0CCOj+arfLdvajfzdK4QeKpINfpa2SkQD1

CP98lvfI/luIbetUVW+qNDkzT1jZphYuzgsCaofTGCIQpFk19q22ZcZ= quJcEZlPM

fxIFK4EEACMEIwQANy4VvpnTHne= ZipCPwzVJnMN82coCudRAiL2i2m3GPA06lRtU

njcn9r9Sm26A0sajwc3kQw/ekWrHXpXV0aL076cAUW9GKYDljIHVlr76wgHbLt6q=

BX5VkA6xS0cq3skbMEI0QpIqIK81Yf0z8wfyF5uqAgNPUp= Y4nHMV9S856JB2VDQD

AQoJiMEEGBMKACYWIQ= Q3JS+7ltBUFczTX17xqdt536xDxgUCZlPMfwIbDAUJAedp

EQAKCRDxqdt536xDxjIuAgjacZCttPWpKGfMbnNWePz6t9rcMUb496tSWfKRActr<= u>

Rco8lSaDNTVohT/6hLZ5wUX5NFUqTb+kOXJcU= GHGbnw2KQIJAQu1m9zEP5XdWmFi

= SvGg1NHW2= kzqAvFsG37flbwrGRu5fmTnS/LZ/oPzOCuwU6F+o1q0E7gLwFwnzD93

riKeabdd

= =3DiCV+

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

=C2=A0

=C2=A0--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 stil= l I got the same poor performance as indicated in the video recording.

--
Thanks
- Mohammad Noureldin
--
&= quot;Life is like riding a bicycle. To keep your balance you must keep movi= ng"
- Albert Einstein

--000000000000b29bc0062ee218a2--