From nobody Thu Feb 20 02:47:36 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 4YyyNX0wYbz5p5FB for ; Thu, 20 Feb 2025 02:47:40 +0000 (UTC) (envelope-from zagazaw2004@gmail.com) Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) (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 4YyyNW5Nzxz44hf for ; Thu, 20 Feb 2025 02:47:39 +0000 (UTC) (envelope-from zagazaw2004@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ot1-x32e.google.com with SMTP id 46e09a7af769-72741784350so255626a34.1 for ; Wed, 19 Feb 2025 18:47:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740019658; x=1740624458; darn=freebsd.org; h=thread-index:content-language:mime-version:message-id:date:subject :in-reply-to:references:to:from:from:to:cc:subject:date:message-id :reply-to; bh=alUbW0Z3q4S6fAOkBoW5HnbW+awyIRwhUyvGWisXtqk=; b=cKdEhXqI0IktLNUHbLL+zokws1TiCUat+jI66wSRI6Zo0TRGSm4k1fYgrtPV2GjKxp 9xIyRTe9LdF+x7k0O5WL2eoexnKNR5LjQCXMtZppWVHLc64Po/+BwFdeRld3LRIXllXI RbvAcjrnHGDg0MDW2dyZN3tTICZh08gAIoh95U5e0AYRXQP3m67z2mG2vGW/3vx8Tbh5 0Fa429hnOgxjGRH7FNH3qPyYIJZa847/yo14vcjwDG5ntvvoeflwPBSH/V3oWSTxvc9A tBUXLLF8rri7fiywuClJRNaW3cGLkFvnBjBggKYPIDOPUymiE3T7+83XRC/SlpwYxjse KZMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740019658; x=1740624458; h=thread-index:content-language:mime-version:message-id:date:subject :in-reply-to:references:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=alUbW0Z3q4S6fAOkBoW5HnbW+awyIRwhUyvGWisXtqk=; b=TErEuYSBq3sMBqpucXm0qRzvNuCPoOGaiitL8vpo8qMpid9c8TFLdq6cCEvBuAxieW QrCIENYKk4+LRqZBxfduMdQ2xD6XL2KVZUqnqwe5Iy+P9STvQhtpeFuAO5zQ0ZXtJuqp TcWgSPk9NdQ4MQSboBUqEzKcbnfMytjdUcAl2ATVq/XRWP9kUH7Wo7kgdI5dqyl7Goem 4XIAq2Gh4zJZ2mqohpOJ2SYzBAarxvqR24Jg5ACQ9Z+v3sL76+w8zwG+GHslCkHdGKO8 aq1Nkm/z/4oapJ/x8BiSsumFPbMb3vKaW/qWcswOZ3aMtW1fCPWn5h/XC2d4OLm2ff8I 7EiA== X-Forwarded-Encrypted: i=1; AJvYcCXKgIH6boQeEJsOQH/A9GCKlHTDRjNo/DbqFtR1+A0siw1QAWZlLlAng6z2igkIZHJRUkZbog1uDdcrCNNYGUI=@freebsd.org X-Gm-Message-State: AOJu0YxQpfGKUqRuNYf0FUYlmFtKksVnlr1Te4R10f12wyuJXyrUTr7v GzPW+D4NzfnjuZLvkSG4G+6k3XDLmP4X0/YGWy7ZTgu2zlkLtHVFC58Pvg== X-Gm-Gg: ASbGncuWTb8hJXh3HDhuaoc8nebQS8xnOpaJXP4kSKmJ3h0J5FKZOkPbHqb1j0Aova4 XvdlmPDSDvgPdpVpuCWA8J5dAQKdFItYa9WxKoQdMn3AGKPyDl9uhzUAuO9CrJVx//JxO/RNZQm oiHp/z0uHGsR8ZwoFSMUsjFN0oCck8x6O8fPOYjM+euQMkWAc8/NAXsMG0hWt744VK2kSvy/Xdx Vqb9lYYQIn94cFziLbezzsoMlOMNEiDpX2LJoZihfeg1bRSgNYLXUB2kVTVWoBkvFml1oiSLmxU r1oQigB3rPXzstnOMdOK7Z1HJ88vloNDRflUbqaRip6bnqY63HQtIinaJ2s5k7jOgA== X-Google-Smtp-Source: AGHT+IGbTJ6BXhkJBQ8H+Nl22BX9TJjB5VkTCy53b1zKmUEwNPMBqTHURoIsDJnL4EYOMlneeXI9ng== X-Received: by 2002:a05:6830:6e17:b0:726:fb8c:ef4 with SMTP id 46e09a7af769-72737765bd9mr5386505a34.12.1740019657985; Wed, 19 Feb 2025 18:47:37 -0800 (PST) Received: from MICROBOX (c-76-143-116-34.hsd1.tx.comcast.net. [76.143.116.34]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-727295b7eeesm1962580a34.46.2025.02.19.18.47.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Feb 2025 18:47:37 -0800 (PST) From: "Maku Bex" To: "'Mohammad Noureldin'" , "'Freebsd current'" References: In-Reply-To: Subject: RE: Very poor -CURRENT boot performance on AMD Date: Wed, 19 Feb 2025 20:47:36 -0600 Message-ID: <002301db8341$cd1ffc60$675ff520$@gmail.com> 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 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0024_01DB830F.828628A0" X-Mailer: Microsoft Outlook 16.0 Content-Language: en-us Thread-Index: AQHyZgwUFrvx/icPqXT3krFqEGCEx7Mhtwqg X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4YyyNW5Nzxz44hf X-Spamd-Bar: ---- 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 = On Behalf Of Mohammad Noureldin Sent: Wednesday, February 19, 2025 9:34 PM To: Freebsd current 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

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:

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

=C2=A0=C2=A0=C2=A0=C2=A0 and userland.=C2=A0 These features = attempt to 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 measurement,

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

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

=C2=A0=C2=A0=C2=A0=C2=A0 debugging flags in userland, and various = verbose features in the

=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 = malloc

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

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

=C2=A0=C2=A0=C2=A0=C2=A0 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-----

 

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

 

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) ?

 

 

-- =

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

 

------=_NextPart_000_0024_01DB830F.828628A0--