From nobody Sun Nov 20 19:37:48 2022 X-Original-To: questions@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 4NFgmW2pMgz4j28M for ; Sun, 20 Nov 2022 19:38:19 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from se6.syd.hostingplatform.net.au (se6.syd.hostingplatform.net.au [IPv6:2400:b800:5::52]) (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 4NFgmW0cf3z4XP9 for ; Sun, 20 Nov 2022 19:38:18 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Authentication-Results: mx1.freebsd.org; none Received: from s121.syd3.hostingplatform.net.au ([103.27.34.4]) by se6.syd.hostingplatform.net.au with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1owq8e-0000J3-K3 for questions@freebsd.org; Mon, 21 Nov 2022 06:38:06 +1100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nimnet.asn.au; s=default; h=Message-ID:From:CC:To:Subject: Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To: Date:Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XDKbrgQhGb2IOp2dPs/+l4rH+RFSbgqqbTAKIIzBB9I=; b=GY7OVCDfDrTZbZAbB9Dr07kxqi Xe49HNYQu3qf8j1OwHnzWd8QQCCZxHBlPUixTLjCRh10csz7oG/IF2a4gNqFDEMPArQvPfw6S9u4L 4nH+4rMGm0jhE8JCW/bzcSklkYCUyKtmtvAan0OSlQNsTzLMdM48ORODadomy6wI0Hz7teQcVn9VA u2BLmJ1IQ1ogxR7UPEvEr4vJhYml71p+p/HmQbeFefrXDRvBmXSxk6G23vbxOQyzgLmSXS3V9xj4V aReGJX2rUN+eAQYR0jv7DK9fNug3QiOZ3xroa8+8JPvKiH2mzyaGct0mQ7Gn5ExDgiz6cl7dDy07Y K14G4RTg==; Received: from [1.129.210.53] (port=56266 helo=Galaxy-J5-Pro) by s121.syd3.hostingplatform.net.au with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1owq8c-004K2P-0O; Mon, 21 Nov 2022 06:37:58 +1100 Date: Mon, 21 Nov 2022 06:37:48 +1100 User-Agent: K-9 Mail for Android In-Reply-To: References: <9d17ea30-4b10-2aa3-9d09-017da7423844@sentex.net> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: RELENG_13 and min cpu frequency To: Kevin Oberman CC: mike tancsa ,questions@freebsd.org From: Ian Smith Message-ID: <5E64A5AC-3634-4336-B0A9-E98962D8BE79@nimnet.asn.au> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - s121.syd3.hostingplatform.net.au X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - nimnet.asn.au X-Get-Message-Sender-Via: s121.syd3.hostingplatform.net.au: authenticated_id: smithi@nimnet.asn.au X-Authenticated-Sender: s121.syd3.hostingplatform.net.au: smithi@nimnet.asn.au X-Source: X-Source-Args: X-Source-Dir: X-Originating-IP: 103.27.34.4 X-SpamExperts-Domain: out-3.hostingplatform.net.au X-SpamExperts-Username: 103.27.34.4 X-Sp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Ukdr3oHZsGDOnC5s/4F8e5uR/xqqfZWkNKQUobI7huBVoZeJJKD+WKEsmgNU80KTDQcWwe0S 4mB30j5nlErnGbOGRQ3KaeE391IyW7bVDpANUQvyZzPgihL3FhyCT+8vOSJGHGnDZXw8f9eIYW4H Vh/UxFgv3Vl8SugHuMPfP9NtOxkpv0M3bEqPjumnp8Gmev19nmuGQVM= X-Report-Abuse-To: spam@se.syd.hostingplatform.net.au X-Rspamd-Queue-Id: 4NFgmW0cf3z4XP9 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:45638, ipnet:2400:b800:5::/48, country:AU] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On 20 November 2022 9:48:04 am AEDT, Kevin Oberman = wrote: > On Fri, Nov 18, 2022 at 9:41 PM Ian Smith > wrote: >=20 > > On 19 November 2022 8:28:45 am AEDT, mike tancsa > wrote: [=2E=2E=2E] > > > dev=2Ecpu=2E0=2Efreq_levels: 3400/-1 > > > dev=2Ecpu=2E0=2Efreq: 1302 > > > > So, hmm=2E powerd reads and sets values in dev=2Ecpu=2E0=2Efreq_leve= ls, > hence > > can't change it to anything but 3400=2E > > > > So how is cpu=2E0=2Efreq changing at all? Is cpufreq using est(4)?= =20 > Are there > > more freqs in dev=2Eest=2E0=2Efreq_settings? > > > > Or is it using a _relative_ driver like acpi_throttle or p4tcc?=20 > Default > > /boot/device=2Ehints has both of these disabled for good reason > (Kevin > > Oberman can elaborate) > > > > > sysctl -A debug=2Ecpufreq > > > debug=2Ecpufreq=2Everbose: 0 > > > debug=2Ecpufreq=2Elowest: 0 > > > > > > > > > CPU is CPU: Intel(R) Xeon(R) E-2226G CPU @ 3=2E40GHz > > > (3400=2E00-MHz K8-class CPU) > > > > Also noted that the usual +1 freq for turbo mode isn't there=2E=20 > Strange? > > (I don't speak Xeon though) > In recent processors, things have changed radically WRT CPU frequency > and thermal behavior=2E >=20 > I have an Alder Lake system (12th gen) and a Comet Lake (10th gen)=2E > Both > now show a single frequency=2E On my Alder Lake I see: > dev=2Ecpu=2E?=2Efreq_levels: 2496/-1 > This is shown for all CPU devices (threads) whether P or E cores=2E > Thermal > control does change these seeds continually=2E I have seen E cores at > 900M, > but rarely=2E I see them as 1=2E2G during buildworld=2E The P cores are= at > 1=2E3G=2E > I have never seen ANY core running at over 2=2E5G=2E When I ordered my > T16, the > specs showed minimum, default, and maximum frequencies, but I can't > find > them any longer=2E All I can find are "Minimum" and "Max Turbo"=2E It's > not > clear to me what the significance of this is, but it was clearly a > decision > of Intel=2E To me, it implies that Turbo is really no longer distinct , > but > considered a portion of a continuum of frequencies=2E >=20 > Just looked again=2E buildworld is still running, and see all CPUs are > at > 2094, 2095, 2096, and 2097=2E A few seconds later, 1997 to 2094=2E Al= l > CPUs > are not always running at very similar speeds=2E This is very different > from > anything I have seen on older processors=2E I see no distinction > between P > and E cores=2E I also suspect that powerd is no longer relevant for > modern > CPUs=2E Anyone have a pointer to information on CPU frequency and > thermal > management on newer Intel processors? Thanks Kevin=2E I went hunting through freebsd-acpi archives, and found y= our related comments in https://bugs=2Efreebsd=2Eorg/bugzilla/show_bug=2Ecgi?id=3D264775 Seems we need some overview on what FreeBSD can and can't do regarding cha= nging CPU speeds, or whether it's even appropriate to try doing so on these= latest processors? I'm well behind; few years ago there wasn't even the concept of different = cores running different frequencies=2E=20 Maybe the best we can do with these is making sure that fans are up to kee= ping the system cool enough =2E=2E Not that this helps mike's problem with apparent packet loss, but it's har= d to see if that may be related=2E=20 cheers, Ian