From nobody Thu Jan 13 15:19:16 2022 X-Original-To: stable@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 D136D1945268 for ; Thu, 13 Jan 2022 15:19:41 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) (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 "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JZSld1H5mz3GnJ for ; Thu, 13 Jan 2022 15:19:41 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-wr1-x433.google.com with SMTP id k30so10712487wrd.9 for ; Thu, 13 Jan 2022 07:19:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OcHHPlMQ4yzqhgPVNuDzILMj9RI/YO+e+xmwbPkaoq0=; b=OohvDAVc0nLtIrt4uC7w0JyKzhaDjHeCv636kbydR+vvpiDIG0x5qPJhP7KU76ym0U fm9gXfskOuiVO/fsr7NdQwSHfclalZwhPXxsiDYtQ2Wq7Oz4Jjlqbe52FkrW4fHm6ny5 VPmc6yjxfxgy1ja0ZtTnmmmFjXTfWYY+LPlfToPTddqSbAzbyPQHKR9e9J4iNpIfOdtb uhYdcE+Dcghn57hzvYQOqTY0Vh4vmEdTAvaYvJFG2lyZdc+4I9SVxvSOKTUv3y2Ccsq7 kdgYTLOrbdOmX7DJautMziRCA+1nF6wxspwSIEMsfc7umadUNRyZIalDILzMPrwO4PY3 +z0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OcHHPlMQ4yzqhgPVNuDzILMj9RI/YO+e+xmwbPkaoq0=; b=j8MvrI9SOh+yOn5u57vs3aCO/pzOHXpI/D5UvYSMXWsSiuv37+CUT9HJ45eNH5OaiI 5HNpf8PlAMyl5qFeoAi/wYADvZCeyWvMXoi3O8kkZy7aXhXLWbg+5LraI+XsaWrjQ1iV jj6KwQStBZlYMjbU985GKWRd90CnwefqYeS0kZYmE2lijzFgcXREHjC8a11P8yYSPfSw hBg0WLc4iO4FnkC0+7q1ASFKxd8ab30EQ9RA5YSBjomb4P4Tyno5r1wbyxnOmcCN2JHh 04Sb5p88feHjSXpN8vX986a+3tSU1q53MK9vCR/oCYiI4b9yCyMBljv8DYSc6wFvIx6w e3AQ== X-Gm-Message-State: AOAM5319kXeBchWpdWm2eVoTUT/wG6mxpa3dZvsKqOi7QBzvssZJ6iHy a8JNmgQtSE30naRKlXFFGj19XZFI7RMRoTfUWG9bTNpMwSz7ZA== X-Google-Smtp-Source: ABdhPJxq5VkHWiNPqMvdGvnVjvsDYXA/MyPvekfBUa+LgGLIpI3pQWPxOUawGdhm3syLWfVaCiTGAN559sdVHDxI2JA= X-Received: by 2002:a5d:6586:: with SMTP id q6mr4557633wru.62.1642087173888; Thu, 13 Jan 2022 07:19:33 -0800 (PST) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 References: <3d702fac-6177-b881-5084-decce2aa52bb@grosbein.net> In-Reply-To: <3d702fac-6177-b881-5084-decce2aa52bb@grosbein.net> From: Kevin Oberman Date: Thu, 13 Jan 2022 07:19:16 -0800 Message-ID: Subject: Re: Odd performance problems with Lenovo L15 To: Eugene Grosbein Cc: FreeBSD Stable ML Content-Type: multipart/alternative; boundary="000000000000b09f6505d5783622" X-Rspamd-Queue-Id: 4JZSld1H5mz3GnJ X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=OohvDAVc; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kob6558@gmail.com designates 2a00:1450:4864:20::433 as permitted sender) smtp.mailfrom=kob6558@gmail.com X-Spamd-Result: default: False [-1.67 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[stable@freebsd.org]; NEURAL_SPAM_MEDIUM(0.03)[0.033]; NEURAL_HAM_SHORT(-1.00)[-1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::433:from]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[stable]; FORGED_SENDER(0.30)[rkoberman@gmail.com,kob6558@gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[rkoberman@gmail.com,kob6558@gmail.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --000000000000b09f6505d5783622 Content-Type: text/plain; charset="UTF-8" On Mon, Jan 10, 2022 at 9:46 AM Eugene Grosbein 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
On Mon, Jan 10, 2022 at 9:46 AM= Eugene Grosbein <eugen@grosbein.n= et> 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 o= ff 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 g= o 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=3D1 ?<= br> 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

<= div style=3D"font-family:tahoma,sans-serif;font-size:small" class=3D"gmail_= default">Sorry for the long delay in responding.

<= div style=3D"font-family:tahoma,sans-serif;font-size:small" class=3D"gmail_= default">No changes from the default hw.acpi.thermal settings.
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

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.

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

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 "med= ium" 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 freq= uency 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 t= he long delay in respoinding.
--
Kevin Oberman, Part time kid herder and reti= red Network Engineer
E-mail: rkoberman@gmail.com
PGP Fingerprint: D03FB9= 8AFA78E3B78C1694B318AB39EF1B055683
--000000000000b09f6505d5783622--