From nobody Thu Jun 18 22:46:15 2026 X-Original-To: freebsd-hackers@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 4ghG6x57znz6gtTD for ; Thu, 18 Jun 2026 22:46:33 +0000 (UTC) (envelope-from joesuf4@gmail.com) Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) (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 4ghG6x2nBgz4H8V for ; Thu, 18 Jun 2026 22:46:33 +0000 (UTC) (envelope-from joesuf4@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-6957f9ca440so1946063a12.3 for ; Thu, 18 Jun 2026 15:46:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1781822787; cv=none; d=google.com; s=arc-20240605; b=awe7mmo2VbDymqqy2K4eSnC4hmgIbla6gEV+QXGtURd9gUPqHFgtzvIa1gIxJ32r2J ucFAjgbv6Vz6h/W+1+KxQ3UeLEcUmcZOZaiGld8yH7iUoBSwHmF0OXuObYJPqDG9wD2R A9Px6M+QOjg2ExZuo4Ng6LlYyYzZQUvYsk/Z4ADtAbGgKMoNW4eA4Wfpuk9Uf6y6WasH qvCw9zns8N+Tbav/lFc1sOG+te3Hs0rxgoAMhQHm45VkbaYznppIEBBZA4xHOUyQwIgq t0rMPl+DNFDRZRIsst6uTj4HbNK3SQbaGv3yxo/WiyAKepKmxaKGVNjrv3e94cX2xZs/ x3tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=Tv4M/42+FnalTp18d/+ZEM4XjhAXy0aJsItjLvRxgW0=; fh=++BCvM9jxJ7xVrIIteeLyGkSZeQWXhTmoWMjp3lQjrQ=; b=F6vDH1JeJ2qyHq4c7XYAsUxhWMr36FFtChhOr6jughK60Lk0XAaeFW+ITuw5f0Bcxm osOcO+yaDH02WvIZ7tPVLCk382ZTlf1iSbqON/vmPwNIxZ+0LksRcpbctMOyOd5EuB1I zvR1MsdCQmQM8oX00QHhFe5VrlNXtBkxWm77TVjMVhn8SIUCcgQQsRnH2pFr3tGXM2kL 77fE9ZnyVhwzBteM6fCtOykL6wAw/Nb5os5ikz49OsjBYM7C7sWS3QOoJjxvawQhwigw oFjXRUl4w16Ps8xHncPtlxEl2+C2HyVq6Is8erhT6+I/w4LoCtenkjCU+EqQngf61KSZ vjJw==; darn=freebsd.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781822787; x=1782427587; 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=Tv4M/42+FnalTp18d/+ZEM4XjhAXy0aJsItjLvRxgW0=; b=VkZDzCam9ZGDSp6rCMWTPJzTRm2W96FK5lu0r5Ya+/Nljw/0vy6M2sEvVn4zbp0Qel XZKg6SwWaqNFdb4d/3RLqyU5NzQzVlYtg0q+w46x2wyp91M9DwyQJPVjsECyLrzh76xM q5YgiHAH2YifJDj1vbT/vTgimsnkvZcETZrZXL1OrDXuDgafXFPDkQBqsSswE8JlbTba fUgXcKJi2lsxpIyVLKNxZK6+hgCNuJ8cTtZHBpy/wGFXA3N4YjEMk7qwILzAWNTvv0Et 6QnlQnfphan2mQfLWAeNG3lNZTIHWwEVOZnkPwslVngNeNJig6pVuE62782x95DuN8rE 4Uyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781822787; x=1782427587; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Tv4M/42+FnalTp18d/+ZEM4XjhAXy0aJsItjLvRxgW0=; b=p779NKrMb9Qorohydn7vNHAAMnd0CFms4K22Pi4CVegZa+PcvC+Kgy+Ref7eLHEstQ IrImF2nrQriQPRzvf2vdl9FrqJ2dneOViUQc4lR6+ncmlOya3IYBR09CmSnHsN0cXb11 h1YAnhjkPhTqwLUaDen23BSRIOGjKjgykvKoSSn9Twhhf3wUx/zUa5fceu4cTmpLY1Ji DradzQswZ3GYevtJ1TLgPru4FKVGLnjpFoOw8bAmApk/uLzk4/BZTlnA95i0vb3Qxe8H jRRyBBCxd04xJkqtpxnhtrI4JByak0QgiovyJkiJXeBL4trShsMnAHJFqepXY55oOlqf ZYDg== X-Gm-Message-State: AOJu0YzGkX1DiobAGN7N8yzQwq9WCPg7CCK7HjYa3qKVSH7khbX8JmGc 6dnBUaSzhuejUdiAYFE2aJ9jEvoOECWF9G/ASSNRs3OnT3rWORVbcUwkfXrgxYxIkFJDyaelkBF 35b3uoT77wsrZY60aSRh2eMtiDjn9QZs= X-Gm-Gg: AfdE7cmJjpyUFY4RCSOv1RJR7k8kDJSMU/T155Wki1j88pBpvdUjIB4zY6x1CnzIAA9 TwsyANu4EHBIYHwhRUhyGe2OEpFyV/sWbDqK8+8jjhk+BL4/5zyhkef9GbwKPHEg1Kuf4aqolCu 85G97HxqEfqwf0evdhg8WpDuKgMd+6RMjU1kkizc4Y9Q9mkCBHetHYKf5rN/nAucZPED0ppQ4sx S3lADRRHilRsQEPz0RtIme4rz5C8NCwazsIw889QnqJS3uooO87h4DHbnT/ZJIPm94FfdJRwrnx mKLvWNQ= X-Received: by 2002:a17:907:c09:b0:be5:2bc0:5370 with SMTP id a640c23a62f3a-c097c9c79dcmr47100666b.36.1781822786490; Thu, 18 Jun 2026 15:46:26 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 References: In-Reply-To: From: Joe Schaefer Date: Thu, 18 Jun 2026 18:46:15 -0400 X-Gm-Features: AVVi8Cei7Hiz2SEXY6g-m42CuxwUkC9DpBkK2Rcc4nsKzQ6saCMffQEpO74eIEs Message-ID: Subject: Re: Do we use -fno-omit-frame-pointers by accident? To: Martin Cracauer Cc: freebsd-hackers@freebsd.org Content-Type: multipart/alternative; boundary="0000000000003dd2f606548ef2c8" X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4ghG6x2nBgz4H8V X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated --0000000000003dd2f606548ef2c8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Do you like it when dtrace generates symbolized stack traces? Then you want this flag. On Thu, Jun 18, 2026 at 4:54=E2=80=AFPM Martin Cracauer = wrote: > I was about to propose on BSDCan to turn on -fno-omit-frame-pointer > for the base system userland and most ports.[*] > > So I went benchmarking the performance impact. > > I discovered that CFLAGS+=3D-fno-omit-frame-pointer changes nothing > about our binaries and shared libraries. CFLAGS+=3D-fomit-frame-pointer > makes them a little smaller. So it looks like we default to having > frame pointers... somehow. I verified in the compiler stdout that the > flags I set are in fact in effect. > > Sizes for 16-current 283959bbe0863917c4fc3200a92d1055a4c89bdc /bin/sh: > > text data bss dec hex filename > - default: > 164503 3712 5520 173735 2a6a7 > - -fomit-frame-pointer > 163831 3712 6192 173735 2a6a7 > - -fno-omit-frame-pointer > 164503 3712 5520 173735 2a6a7 > > > [*] The reason why I bring this up now is that Ubuntu is doing the > work for use of determining which pieces of software have actually too > high overhead with FPs. Such as the CPython interpreter. Depending > on further benchmarking the base userland this changes the > effort/benefit balance. > > More words here: > > https://docs.google.com/presentation/d/17AGf6a0IxIzqcgd4-5FWdQhLzBV9DfLEh= NTm-xL0vyc/edit?usp=3Dsharing > > Martin > -- > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > Martin Cracauer http://www.cons.org/cracauer/ > > --0000000000003dd2f606548ef2c8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Do you like it when dtrace generates symbolized stack tra= ces? Then you want this flag.

On Thu, Jun 18, 2026 at 4:54=E2=80=AFPM Martin Cracauer <cracauer@cons.org> wrote:
I was about to propose on BSDCan to turn on -fn= o-omit-frame-pointer
for the base system userland and most ports.[*]

So I went benchmarking the performance impact.

I discovered that CFLAGS+=3D-fno-omit-frame-pointer changes nothing
about our binaries and shared libraries.=C2=A0 CFLAGS+=3D-fomit-frame-point= er
makes them a little smaller.=C2=A0 So it looks like we default to having frame pointers... somehow.=C2=A0 I verified in the compiler stdout that the=
flags I set are in fact in effect.

Sizes for 16-current 283959bbe0863917c4fc3200a92d1055a4c89bdc /bin/sh:

=C2=A0 =C2=A0text=C2=A0 =C2=A0 data=C2=A0 =C2=A0 =C2=A0bss=C2=A0 =C2=A0 =C2= =A0dec=C2=A0 =C2=A0 =C2=A0hex filename
- default:
=C2=A0164503=C2=A0 =C2=A0 3712=C2=A0 =C2=A0 5520=C2=A0 173735=C2=A0 =C2=A02= a6a7
- -fomit-frame-pointer
=C2=A0163831=C2=A0 =C2=A0 3712=C2=A0 =C2=A0 6192=C2=A0 173735=C2=A0 =C2=A02= a6a7
- -fno-omit-frame-pointer
=C2=A0164503=C2=A0 =C2=A0 3712=C2=A0 =C2=A0 5520=C2=A0 173735=C2=A0 =C2=A02= a6a7


[*] The reason why I bring this up now is that Ubuntu is doing the
work for use of determining which pieces of software have actually too
high overhead with FPs.=C2=A0 Such as the CPython interpreter.=C2=A0 Depend= ing
on further benchmarking the base userland this changes the
effort/benefit balance.

More words here:
https://docs.google.com/presentation/d/17AGf6a0IxIzqcgd4-5FWdQhLzBV9DfLEh= NTm-xL0vyc/edit?usp=3Dsharing

Martin
--
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <= cracauer@cons.org>=C2=A0 =C2=A0http://www.cons.org/cracauer/=

--0000000000003dd2f606548ef2c8--