From nobody Sun Aug 25 08:29:36 2024 X-Original-To: current@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 4Ws6Rn3jkCz5Vb7p for ; Sun, 25 Aug 2024 08:29:41 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ws6Rn1bSTz42Km for ; Sun, 25 Aug 2024 08:29:39 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Authentication-Results: mx1.freebsd.org; none Received: from critter.freebsd.dk (unknown [192.168.55.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by phk.freebsd.dk (Postfix) with ESMTPS id A6E8D892B6; Sun, 25 Aug 2024 08:29:37 +0000 (UTC) Received: (from phk@localhost) by critter.freebsd.dk (8.18.1/8.16.1/Submit) id 47P8TawP031885; Sun, 25 Aug 2024 08:29:36 GMT (envelope-from phk) Message-Id: <202408250829.47P8TawP031885@critter.freebsd.dk> To: Ronald Klop cc: Bob Bishop , "current@freebsd.org" Subject: Re: powerd forgets top CPU frequency ? In-reply-to: <1264471055.10452.1724573369940@localhost> From: "Poul-Henning Kamp" References: <202408241706.47OH6LfG023651@critter.freebsd.dk> <202408250513.47P5DDZF029200@critter.freebsd.dk> <1264471055.10452.1724573369940@localhost> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31883.1724574576.1@critter.freebsd.dk> Content-Transfer-Encoding: quoted-printable Date: Sun, 25 Aug 2024 08:29:36 +0000 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:1835, ipnet:130.225.0.0/16, country:EU] X-Rspamd-Queue-Id: 4Ws6Rn1bSTz42Km -------- Ronald Klop writes: > A bit weird to try to give suggestions knowing how experienced you are i= n FreeBSD. But here we go, I'm not very experienced with how modern CPU's are modulated :-) > 1. What does the sysctl about cpu frequencies say. Does that value decre= ase too? > On my machine it is this: > # sysctl dev.cpu | grep freq > dev.cpu.0.freq_levels: 1500/-1 600/-1 > dev.cpu.0.freq: 1500 Right now: dev.cpu.7.freq_levels: 2803/-1 dev.cpu.7.freq: 3103 dev.cpu.5.freq_levels: 2803/-1 dev.cpu.5.freq: 3103 dev.cpu.3.freq_levels: 2803/-1 dev.cpu.3.freq: 3103 dev.cpu.1.freq_levels: 2803/-1 dev.cpu.1.freq: 3103 dev.cpu.6.freq_levels: 2803/-1 dev.cpu.6.freq: 3103 dev.cpu.4.freq_levels: 2803/-1 dev.cpu.4.freq: 3103 dev.cpu.2.freq_levels: 2803/-1 dev.cpu.2.freq: 3103 dev.cpu.0.freq_levels: 2803/-1 dev.cpu.0.freq: 3103 > 2. Does https://www.freshports.org/sysutils/powerdxx/ exhibit the same i= ssue? To rule out if it is in the binary or in the kernel. Will try. > 3. out-of-the-box: are your CPUs similar? So, do both have the same top = frequency? Yes, it's a: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz > 4. And powerd(8) mentions a -v option: "Verbose mode. Messages about po= wer changes will be printed to stdout and powerd will operate in the foreg= round." > Does that print anything useful? Yes, that's where I noticed the "gradually run slower and slower"... Initially I thought it was some kind of thermal throttling, but leaving th= e computer idle overnight did not lead to automatic recovery, whereas reboots and as = far as I can tell, restarting powerd does. -- = Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe = Never attribute to malice what can adequately be explained by incompetence= .