Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jan 2022 07:19:16 -0800
From:      Kevin Oberman <rkoberman@gmail.com>
To:        Eugene Grosbein <eugen@grosbein.net>
Cc:        FreeBSD Stable ML <stable@freebsd.org>
Subject:   Re: Odd performance problems with Lenovo L15
Message-ID:  <CAN6yY1vqgmdmZA18LBYtHCQAe0vRLMp3fDLpRJUA_a6ZMH2TMg@mail.gmail.com>
In-Reply-To: <3d702fac-6177-b881-5084-decce2aa52bb@grosbein.net>
References:  <CAN6yY1sK%2BxOi6Hy5KXefFa9cHhmTirCOmFFanZrRF8LzYbOUNQ@mail.gmail.com> <3d702fac-6177-b881-5084-decce2aa52bb@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000b09f6505d5783622
Content-Type: text/plain; charset="UTF-8"

On Mon, Jan 10, 2022 at 9:46 AM Eugene Grosbein <eugen@grosbein.net> wrote:

> 10.01.2022 12:12, Kevin Oberman wrote:
>
> > I continue to see odd performance issues and just noticed something I
> can put my finger on that may explain it. It has gone from odd to totally
> off the rails. Any ideas will be appreciated.
> >
> > Normally, on an idle system I see all CPUs running at full speed.
> > dev.cpu.7.freq: 2101
> > dev.cpu.6.freq: 2101
> > dev.cpu.5.freq: 2101
> > dev.cpu.4.freq: 2101
> > dev.cpu.3.freq: 2101
> > dev.cpu.2.freq: 2101
> > dev.cpu.1.freq: 2101
> > dev.cpu.0.freq: 2101
> >
> > But, during a large compile (e.g. llvm or firefox), things sometimes go
> wonky. Everything slows to a crawl. And, I see:
> > dev.cpu.7.freq: 400
> > dev.cpu.6.freq: 400
> > dev.cpu.5.freq: 400
> > dev.cpu.4.freq: 400
> > dev.cpu.3.freq: 400
> > dev.cpu.2.freq: 400
> > dev.cpu.1.freq: 400
> > dev.cpu.0.freq: 2101
>
> Did you set by any chance sysctl hw.acpi.thermal.tz0.passive_cooling=1 ?
> Maybe, some other non-default settings for any of hw.acpi.thermal.* in
> /etc/sysctl.conf or /boot/loader.conf?
> Is powerd(8) started?
>
> Also, you did not mention your FreeBSD version


Sorry for the long delay in responding.

No changes from the default hw.acpi.thermal settings.
FreeBSD ptavv 13.0-STABLE FreeBSD 13.0-STABLE #1
stable/13-n248149-87c8d285397: Sat Nov 20 17:00:28 PST 2021
root@ptavv:/usr/obj/usr/src/amd64.amd64/sys/GENERIC.4BSD
 amd64

I have been seeing strange performance problems for some time; probably
since about when 13.0 was released, maybe since I started using the system
after it was discovered that disabling P-States stopped the system freezes
I had been experiencing.

This is not regularly reproducible. I built llvm90 and then did a
buildworld yesterday without the issue showing up.

Normally a large build will show temperatures rise and fall between about
45C and 92C. The fan will speed up as the temperature rises and slow when
it falls. This happens over a period of minutes and never seems to find a
"medium" point where the temperature stabilizes. When the problem shows up,
the temperature drops to near idle levels and the build takes a very long
time.

I have not tried forcing the frequency back to the 2.1G max speed.

I'm probably still missing some behaviors, but I think this is most of it.

Thanks for the response. Sorry again for the long delay in respoinding.
-- 
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683

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

<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:tahoma,sans-serif;font-size:small">On Mon, Jan 10, 2022 at 9:46 AM=
 Eugene Grosbein &lt;<a href=3D"mailto:eugen@grosbein.net">eugen@grosbein.n=
et</a>&gt; wrote:<br></div></div><div class=3D"gmail_quote"><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid =
rgb(204,204,204);padding-left:1ex">10.01.2022 12:12, Kevin Oberman wrote:<b=
r>
<br>
&gt; I continue to see odd performance issues and just noticed something I =
can put my finger on that may explain it. It has gone from odd to totally o=
ff the rails. Any ideas will be appreciated.<br>
&gt; <br>
&gt; Normally, on an idle system I see all CPUs running at full speed.<br>
&gt; dev.cpu.7.freq: 2101<br>
&gt; dev.cpu.6.freq: 2101<br>
&gt; dev.cpu.5.freq: 2101<br>
&gt; dev.cpu.4.freq: 2101<br>
&gt; dev.cpu.3.freq: 2101<br>
&gt; dev.cpu.2.freq: 2101<br>
&gt; dev.cpu.1.freq: 2101<br>
&gt; dev.cpu.0.freq: 2101<br>
&gt; <br>
&gt; But, during a large compile (e.g. llvm or firefox), things sometimes g=
o wonky. Everything slows to a crawl. And, I see:<br>
&gt; dev.cpu.7.freq: 400<br>
&gt; dev.cpu.6.freq: 400<br>
&gt; dev.cpu.5.freq: 400<br>
&gt; dev.cpu.4.freq: 400<br>
&gt; dev.cpu.3.freq: 400<br>
&gt; dev.cpu.2.freq: 400<br>
&gt; dev.cpu.1.freq: 400<br>
&gt; dev.cpu.0.freq: 2101<br>
<br>
Did you set by any chance sysctl hw.acpi.thermal.tz0.passive_cooling=3D1 ?<=
br>
Maybe, some other non-default settings for any of hw.acpi.thermal.* in /etc=
/sysctl.conf or /boot/loader.conf?<br>
Is powerd(8) started?<br>
<br>
Also, you did not mention your FreeBSD version</blockquote><div><br></div><=
div style=3D"font-family:tahoma,sans-serif;font-size:small" class=3D"gmail_=
default">Sorry for the long delay in responding.</div><div style=3D"font-fa=
mily:tahoma,sans-serif;font-size:small" class=3D"gmail_default"><br></div><=
div style=3D"font-family:tahoma,sans-serif;font-size:small" class=3D"gmail_=
default">No changes from the default hw.acpi.thermal settings.</div><div st=
yle=3D"font-family:tahoma,sans-serif;font-size:small" class=3D"gmail_defaul=
t">FreeBSD ptavv 13.0-STABLE FreeBSD 13.0-STABLE #1 stable/13-n248149-87c8d=
285397: Sat Nov 20 17:00:28 PST 2021 =C2=A0 =C2=A0 root@ptavv:/usr/obj/usr/=
src/amd64.amd64/sys/GENERIC.4BSD =C2=A0amd64</div><div style=3D"font-family=
:tahoma,sans-serif;font-size:small" class=3D"gmail_default"><br></div><div =
style=3D"font-family:tahoma,sans-serif;font-size:small" class=3D"gmail_defa=
ult">I have been seeing strange performance problems for some time; probabl=
y since about when 13.0 was released, maybe since I started using the syste=
m after it was discovered that disabling P-States stopped the system freeze=
s I had been experiencing. <br></div><div style=3D"font-family:tahoma,sans-=
serif;font-size:small" class=3D"gmail_default"><br></div><div style=3D"font=
-family:tahoma,sans-serif;font-size:small" class=3D"gmail_default">This is =
not regularly reproducible. I built llvm90 and then did a buildworld yester=
day without the issue showing up.</div><div style=3D"font-family:tahoma,san=
s-serif;font-size:small" class=3D"gmail_default"><br></div><div style=3D"fo=
nt-family:tahoma,sans-serif;font-size:small" class=3D"gmail_default">Normal=
ly a large build will show temperatures rise and fall between about 45C and=
 92C. The fan will speed up as the temperature rises and slow when it falls=
. This happens over a period of minutes and never seems to find a &quot;med=
ium&quot; point where the temperature stabilizes. When the problem shows up=
, the temperature drops to near idle levels and the build takes a very long=
 time.</div><div style=3D"font-family:tahoma,sans-serif;font-size:small" cl=
ass=3D"gmail_default"><br></div><div style=3D"font-family:tahoma,sans-serif=
;font-size:small" class=3D"gmail_default">I have not tried forcing the freq=
uency back to the 2.1G max speed.</div><div style=3D"font-family:tahoma,san=
s-serif;font-size:small" class=3D"gmail_default"><br></div><div style=3D"fo=
nt-family:tahoma,sans-serif;font-size:small" class=3D"gmail_default">I&#39;=
m probably still missing some behaviors, but I think this is most of it.</d=
iv><div style=3D"font-family:tahoma,sans-serif;font-size:small" class=3D"gm=
ail_default"><br></div><div style=3D"font-family:tahoma,sans-serif;font-siz=
e:small" class=3D"gmail_default">Thanks for the response. Sorry again for t=
he long delay in respoinding.<br></div></div>-- <br><div dir=3D"ltr" class=
=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=
=3D"ltr"><div><div dir=3D"ltr">Kevin Oberman, Part time kid herder and reti=
red Network Engineer<br>E-mail: <a href=3D"mailto:rkoberman@gmail.com" targ=
et=3D"_blank">rkoberman@gmail.com</a><br></div><div>PGP Fingerprint: D03FB9=
8AFA78E3B78C1694B318AB39EF1B055683</div></div></div></div></div></div></div=
></div></div>

--000000000000b09f6505d5783622--



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