Re: Odd performance problems with Lenovo L15

From: Eugene Grosbein <eugen_at_grosbein.net>
Date: Mon, 10 Jan 2022 17:45:00 UTC
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.