From nobody Sun Aug 25 08:09:29 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 4Ws60X1wPHz5VYf8 for ; Sun, 25 Aug 2024 08:09:32 +0000 (UTC) (envelope-from SRS0=cvou=PY=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (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 4Ws60W6SWDz4tZH for ; Sun, 25 Aug 2024 08:09:31 +0000 (UTC) (envelope-from SRS0=cvou=PY=klop.ws=ronald-lists@realworks.nl) Authentication-Results: mx1.freebsd.org; none Date: Sun, 25 Aug 2024 10:09:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1724573370; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=IvYsOwZddqt9/kBymYr46WbTh3NNNEi5hXZ6g1PcSmQ=; b=Nz9VwhSyB7CNhz9ZGqrZT74taxXBs5gkFVj6SFS7BdCzLp/5DY5sw2GNHq6sawJ1Pxl3SQ 2Xk3cLtSd0z/O7eHKLqbB2WhJeQTj0MIhrud+JAfTMGnMRczWAKgYCtvyRUA0lecMVSzbQ 852wBz8mYvJKdhD3uCiqngdDW3gT4PYqxWeTdWWtSAovyeNH5i2+DYF9C6vmyRAdcadvd0 ZlQudWo7ZJSfErZkZBQKJeOv3Z9ZpH6yeWrbGWgOMAQHKaR6FLesnP3F1zossu5HuthWFh jUsgxqIJCw3ESA16Uu5TmC/892UG7iIbeUGKnDVHeeoL+rUAOSBG+i/9Os3tIw== From: Ronald Klop To: Poul-Henning Kamp Cc: Bob Bishop , "current@freebsd.org" Message-ID: <1264471055.10452.1724573369940@localhost> In-Reply-To: <202408250513.47P5DDZF029200@critter.freebsd.dk> References: <202408241706.47OH6LfG023651@critter.freebsd.dk> <202408250513.47P5DDZF029200@critter.freebsd.dk> Subject: Re: powerd forgets top CPU frequency ? 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: multipart/alternative; boundary="----=_Part_10451_1828013607.1724573369937" X-Mailer: Realworks (717.35) Importance: Normal X-Priority: 3 (Normal) 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:3265, ipnet:194.109.0.0/16, country:NL] X-Rspamd-Queue-Id: 4Ws60W6SWDz4tZH ------=_Part_10451_1828013607.1724573369937 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Van: Poul-Henning Kamp Datum: zondag, 25 augustus 2024 07:13 Aan: Bob Bishop CC: "current@freebsd.org" Onderwerp: Re: powerd forgets top CPU frequency ? > > -------- > Bob Bishop writes: > > > Possibly buggy ACPI on the Thinkpad not reporting any frequency higher > > than it's actually running at? > > But that wouldn't explain why restarting powerd helps ? > > > -- > 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. > > > > Hi, A bit weird to try to give suggestions knowing how experienced you are in FreeBSD. But here we go, 1. What does the sysctl about cpu frequencies say. Does that value decrease 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 2. Does https://www.freshports.org/sysutils/powerdxx/ exhibit the same issue? To rule out if it is in the binary or in the kernel. 3. out-of-the-box: are your CPUs similar? So, do both have the same top frequency? 4. And powerd(8) mentions a -v option: "Verbose mode. Messages about power changes will be printed to stdout and powerd will operate in the foreground." Does that print anything useful? Regards, Ronald. ------=_Part_10451_1828013607.1724573369937 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit

Van: Poul-Henning Kamp <phk@phk.freebsd.dk>
Datum: zondag, 25 augustus 2024 07:13
Aan: Bob Bishop <rb@gid.co.uk>
CC: "current@freebsd.org" <current@FreeBSD.org>
Onderwerp: Re: powerd forgets top CPU frequency ?

--------
Bob Bishop writes:

> Possibly buggy ACPI on the Thinkpad not reporting any frequency higher
> than it's actually running at?

But that wouldn't explain why restarting powerd helps ?


-- 
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.
 



Hi,

A bit weird to try to give suggestions knowing how experienced you are in FreeBSD. But here we go,

1. What does the sysctl about cpu frequencies say. Does that value decrease 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

2. Does https://www.freshports.org/sysutils/powerdxx/ exhibit the same issue? To rule out if it is in the binary or in the kernel.

3. out-of-the-box: are your CPUs similar? So, do both have the same top frequency?

4. And powerd(8) mentions a -v option: "Verbose mode.  Messages about power changes will be printed to stdout and powerd will operate in the foreground."
Does that print anything useful?

Regards,
Ronald.
  ------=_Part_10451_1828013607.1724573369937--