From nobody Sun Aug 25 17:47:54 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 4WsLrD2Qbjz5TDSX for ; Sun, 25 Aug 2024 17:48:12 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from gid2.gid.co.uk (ns0.gid.co.uk [IPv6:2001:470:94de::240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gid2.gid.co.uk", Issuer "gid2.gid.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WsLrC6bwsz42H0 for ; Sun, 25 Aug 2024 17:48:11 +0000 (UTC) (envelope-from rb@gid.co.uk) Authentication-Results: mx1.freebsd.org; none Received: from mx0.gid.co.uk (mx0.gid.co.uk [194.32.164.250]) by gid2.gid.co.uk (8.15.2/8.15.2) with ESMTP id 47PHmAU6076646; Sun, 25 Aug 2024 18:48:10 +0100 (BST) (envelope-from rb@gid.co.uk) Received: from smtpclient.apple (moriarty.gid.co.uk [194.32.164.17]) by mx0.gid.co.uk (8.14.2/8.14.2) with ESMTP id 47PHm4x1043187; Sun, 25 Aug 2024 18:48:05 +0100 (BST) (envelope-from rb@gid.co.uk) Content-Type: text/plain; charset=utf-8 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 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: powerd forgets top CPU frequency ? From: rb@gid.co.uk In-Reply-To: Date: Sun, 25 Aug 2024 18:47:54 +0100 Cc: Ronald Klop , Poul-Henning Kamp , "current@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <564EE1E4-D38D-4F20-B254-DDB4C7C56ED0@gid.co.uk> References: <202408241706.47OH6LfG023651@critter.freebsd.dk> <202408250513.47P5DDZF029200@critter.freebsd.dk> <1264471055.10452.1724573369940@localhost> <202408250829.47P8TawP031885@critter.freebsd.dk> <1273956903.13647.1724575094919@localhost> To: "Matthew D. Fuller" X-Mailer: Apple Mail (2.3774.600.62) 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:6939, ipnet:2001:470::/32, country:US] X-Rspamd-Queue-Id: 4WsLrC6bwsz42H0 Hi, > On 25 Aug 2024, at 18:01, Matthew D. Fuller = wrote: >=20 > On Sun, Aug 25, 2024 at 10:38:14AM +0200 I heard the voice of > Ronald Klop, and lo! it spake thus: >>=20 >> This is interesting by itself. According to the sysctl the CPU only >> has 1 frequency to select, which is 2803, but it is running on 3103. >> Maybe there is some other mechanism which influences the CPU freq on >> your machine. I hope somebody else can shine some light on this. >=20 > This seems fairly common on more recent Intel stuff. On some systems > (without powerd running, since it apparently doesn't do anything > useful in such cases); >=20 >=20 > dev.cpu.0.freq_levels: 3500/-1 > dev.cpu.0.freq: 1801 > dev.cpu.7.freq_levels: 3500/-1 > dev.cpu.7.freq: 799 >=20 > Xeon E3 v5 (Skylake) >=20 >=20 > dev.cpu.0.freq_levels: 3500/-1 > dev.cpu.0.freq: 900 > dev.cpu.1.freq_levels: 3500/-1 > dev.cpu.1.freq: 799 >=20 > Xeon E-21xx (Coffee Lake) Another data point: dev.cpu.0.freq_levels: 2401/100000 2400/100000 2300/93921 2200/88941 = 2100/84058 2000/79269 1900/74574 1800/69972 1700/64541 1600/60135 = 1500/55820 1400/51595 1300/47460 1200/43413 1100/38596 1000/34736 dev.cpu.0.freq: 2400 Xeon Silver 4210R (Cascade Lake) (2 packages) =E2=80=A6but this system is running 12.2R (and not powerd). Another = similar system, running powerd (but only 1 package) shows dev.cpu.0.freq = varying between 2400 and 1000 as expected. FWIW these are Intel boards. > Seems to just all be done by the hardware. >=20 >=20 > --=20 > Matthew Fuller (MF4839) | fullermd@over-yonder.net > Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ > On the Internet, nobody can hear you scream. >=20 -- Bob Bishop rb@gid.co.uk