Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Sep 2025 23:27:07 +0100
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        Colin Percival <cperciva@freebsd.org>
Cc:        src-committers@freebsd.org, dev-commits-src-all@freebsd.org,  dev-commits-src-main@freebsd.org
Subject:   Re: git: af60084978a4 - main - Add description for WITH_PTHREADS_ASSERTIONS
Message-ID:  <CAFDf7UJbOO8zuMg9WTCkm-xaVZaZjE48PKardu3EYb4vqQ5ECg@mail.gmail.com>
In-Reply-To: <61bbeec6-6784-4c17-ac14-c1f5f5b68366@freebsd.org>
References:  <202509052136.585La5mx020210@gitrepo.freebsd.org> <CAFDf7UKymJ_3YefuHzO6ri=_GU44PcDZEQKSmGoMrmrBmxdttw@mail.gmail.com> <61bbeec6-6784-4c17-ac14-c1f5f5b68366@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000003f5638063e155769
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thanks for the hint, I missed 642cd511028b .

Think I'm good now:

/etc/src.conf
WITH_MALLOC_PRODUCTION=3Dyes
WITHOUT_LLVM_ASSERTIONS=3Dyes
WITHOUT_PTHREADS_ASSERTIONS=3Dyes

Cheers!


Colin Percival <cperciva@freebsd.org> escreveu (sexta, 5/09/2025 =C3=A0(s)
23:07):

> On 9/5/25 14:57, Nuno Teixeira wrote:
> > For people that turn off debug on main, should WITH_PTHREADS_ASSERTIONS
> be
> > turned off?
> >
> > e.g.
> > /etc/src.conf:
> > WITH_MALLOC_PRODUCTION=3Dyes
> > WITHOUT_LLVM_ASSERTIONS=3Dyes
>
> According to commit 642cd511028b running WITHOUT_PTHREADS_ASSERTIONS
> improves
> mutex performance by 5-18%.  So yes if you want maximal performance on HE=
AD
> you should probably turn this off.
>
> Colin Percival

--0000000000003f5638063e155769
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Thanks for the hint, I missed=C2=A0642cd511028b .</di=
v><div><br></div><div>Think I&#39;m good now:</div><div><br></div><div>/etc=
/src.conf</div><div>WITH_MALLOC_PRODUCTION=3Dyes<br>WITHOUT_LLVM_ASSERTIONS=
=3Dyes</div><div>WITHOUT_PTHREADS_ASSERTIONS=3Dyes</div><div><br></div><div=
>Cheers!</div><div><br></div><div><br></div><div class=3D"gmail_quote gmail=
_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">Colin Percival &lt;=
<a href=3D"mailto:cperciva@freebsd.org">cperciva@freebsd.org</a>&gt; escrev=
eu (sexta, 5/09/2025 =C3=A0(s) 23:07):<br></div><blockquote class=3D"gmail_=
quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,=
204);padding-left:1ex">On 9/5/25 14:57, Nuno Teixeira wrote:<br>
&gt; For people that turn off debug on main, should=C2=A0WITH_PTHREADS_ASSE=
RTIONS be <br>
&gt; turned off?<br>
&gt; <br>
&gt; e.g.<br>
&gt; /etc/src.conf:<br>
&gt; WITH_MALLOC_PRODUCTION=3Dyes<br>
&gt; WITHOUT_LLVM_ASSERTIONS=3Dyes<br>
<br>
According to commit 642cd511028b running WITHOUT_PTHREADS_ASSERTIONS improv=
es<br>
mutex performance by 5-18%.=C2=A0 So yes if you want maximal performance on=
 HEAD<br>
you should probably turn this off.<br>
<br>
Colin Percival</blockquote></div></div>

--0000000000003f5638063e155769--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UJbOO8zuMg9WTCkm-xaVZaZjE48PKardu3EYb4vqQ5ECg>