Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jan 2022 21:12:58 -0800
From:      Kevin Oberman <rkoberman@gmail.com>
To:        FreeBSD Stable ML <stable@freebsd.org>
Subject:   Odd performance problems with Lenovo L15
Message-ID:  <CAN6yY1sK%2BxOi6Hy5KXefFa9cHhmTirCOmFFanZrRF8LzYbOUNQ@mail.gmail.com>

index | next in thread | raw e-mail

[-- Attachment #1 --]
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

And, it never changes back to faster speeds. This is while the system is
idle and the temps  are all back as expected in an idle system (low 40s). I
suspect that the change occurs when the system is very warm. The cores
reach about 90C and then start to drop back to near idle temps (<50C).

This is a 4 core system, but cpu 0 and 1 are running at very different
speeds... 0 at max frequency and 1 at minimum. I don't think that it is
possible as that is different clock rates on the threads of a single core.
Everything seems messed up with super-slow IO and processes simply locking
up. They can't be killed and the system will not even shut down with the
inability to terminate the "stuck" process.

This is one of the Lenovo systems that will lock-up with P-States enabled,
so they are disabled. I suspect that running without P-States is not well
tested. As far as I know, no progress has been made as to why this happens
on FreeBSD, but not on Linux. It may or may not be related to this issue.
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683

[-- Attachment #2 --]
<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">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.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Normally, on an idle system I see all CPUs running at full speed.</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">dev.cpu.7.freq: 2101<br>dev.cpu.6.freq: 2101<br>dev.cpu.5.freq: 2101<br>dev.cpu.4.freq: 2101<br>dev.cpu.3.freq: 2101<br>dev.cpu.2.freq: 2101<br>dev.cpu.1.freq: 2101<br>dev.cpu.0.freq: 2101</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">But, during a large compile (e.g. llvm or firefox), things sometimes go wonky. Everything slows to a crawl. And, I see:</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">dev.cpu.7.freq: 400<br>dev.cpu.6.freq: 400<br>dev.cpu.5.freq: 400<br>dev.cpu.4.freq: 400<br>dev.cpu.3.freq: 400<br>dev.cpu.2.freq: 400<br>dev.cpu.1.freq: 400<br>dev.cpu.0.freq: 2101</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">And, it never changes back to faster speeds. This is while the system is idle and the tempsĀ  are all back as expected in an idle system (low 40s). I suspect that the change occurs when the system is very warm. The cores reach about 90C and then start to drop back to near idle temps (&lt;50C).<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">This is a 4 core system, but cpu 0 and 1 are running at very different speeds... 0 at max frequency and 1 at minimum. I don&#39;t think that it is possible as that is different clock rates on the threads of a single core. Everything seems messed up with super-slow IO and processes simply locking up. They can&#39;t be killed and the system will not even shut down with the inability to terminate the &quot;stuck&quot; process. <br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">This is one of the Lenovo systems that will lock-up with P-States enabled, so they are disabled. I suspect that running without P-States is not well tested. As far as I know, no progress has been made as to why this happens on FreeBSD, but not on Linux. It may or may not be related to this issue.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">--<br clear="all"></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Kevin Oberman, Part time kid herder and retired Network Engineer<br>E-mail: <a href="mailto:rkoberman@gmail.com" target="_blank">rkoberman@gmail.com</a><br></div><div>PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683</div></div></div></div></div></div></div></div></div></div>
help

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