From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (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) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1AB3415812D for ; Mon, 30 Dec 2024 23:55:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 899A5E0794; Mon, 30 Dec 2024 23:55:29 +0000 (UTC) Received: from crocodile.elm.relay.mailchannels.net (crocodile.elm.relay.mailchannels.net [23.83.212.45]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9CE72E0769 for ; Mon, 30 Dec 2024 23:55:28 +0000 (UTC) X-Sender-Id: thundermail|x-authsender|confabulate@kintzios.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 02065825DF for ; Mon, 30 Dec 2024 23:55:27 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1735602926; a=rsa-sha256; cv=none; b=LsVXWTkGAxNkW2v1ziktV6lMIS+wCU2EoZXid0JHWX4I4Hg4H3fWt+Jvc0zSVTnmymYFtz 8bqUECzR69STlQ5vdAPP2JJfs6AOrtix40qdilU8doQfVGOXeXzcscgYAcaiQvfUGNAhQa e0ly3osWQ/DHGb3WbRecQe0yZen7GbsFKHFRlozrDxMd1zDZxFCnVfNamo+26D6SpOxddA enGA2Znpx0ay6g3U9Linwk7eMy3Kd3PmfRDYD47KkjJ/W2IGeUAulgqiRJPH+dqHj/h7Aq FfylyribPa1P1PGWVgzE1iPIQ3ZlNqIC/Z3I2FOWBlGQBWPGfxbYl2kpBV3rrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1735602926; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=17XnIio9rK2YxYxq5g7AMoygfn0hBAxlBANaWVWxdFw=; b=qhdpf9vChADcuH93/05cRhI6UzQsXLZnheSTD4U2iIedRbvxcF3KJj/LlmQWp/aVqk4I+0 QLtBjg4ViFyJ6YjCWb0G75zsEWOFG1/DfD/j/PYAhMozRTmnAIxHH1wHxzcllbsxq4Xfrc uIm2T4IiCIVNZ0rj0yIbySJ+Iggd9bmTbpB1ncPt0nyVenCsKrNUL8pIBz8PEx2+B3WG7n ehtc4D5cN7Adtbzbdduer7zUD2fbOQoT8VSYEes0DgziySSOCnL/awIQmRqDG/LVjbc/YT d1Q5iGZlRX+axovkZmeBBzzH4Xk33zxpBb7Z2E4SQFOL8U2M/aReTLZdPQCnVw== ARC-Authentication-Results: i=1; rspamd-7d788bbf85-q54db; auth=pass smtp.auth=thundermail smtp.mailfrom=confabulate@kintzios.com X-Sender-Id: thundermail|x-authsender|confabulate@kintzios.com X-MC-Relay: Neutral X-MailChannels-SenderId: thundermail|x-authsender|confabulate@kintzios.com X-MailChannels-Auth-Id: thundermail X-Irritate-Madly: 71039ffc39ef3aec_1735602926629_2382278049 X-MC-Loop-Signature: 1735602926629:4059666712 X-MC-Ingress-Time: 1735602926629 Received: from mailclean11.thundermail.uk (mailclean11.thundermail.uk [149.255.60.66]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.109.30.75 (trex/7.0.2); Mon, 30 Dec 2024 23:55:26 +0000 Received: from cloud238.thundercloud.uk (cloud238.thundercloud.uk [149.255.62.116]) by mailclean11.thundermail.uk (Postfix) with ESMTPS id 2B4651E0003 for ; Mon, 30 Dec 2024 23:55:24 +0000 (GMT) Authentication-Results: cloud238.thundercloud.uk; spf=pass (sender IP is 217.169.3.230) smtp.mailfrom=confabulate@kintzios.com smtp.helo=rogueboard.localnet Received-SPF: pass (cloud238.thundercloud.uk: connection is authenticated) From: Michael To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] CPU clock frequency crashing. Date: Mon, 30 Dec 2024 23:55:15 +0000 Message-ID: <24450761.ouqheUzb2q@rogueboard> In-Reply-To: <8d762a5d-2ff1-f954-41a6-b7643b642d41@verizon.net> References: <8d762a5d-2ff1-f954-41a6-b7643b642d41.ref@verizon.net> <8d762a5d-2ff1-f954-41a6-b7643b642d41@verizon.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2137840.KlZ2vcFHjT"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-PPP-Message-ID: <173560292326.2676927.15396047510829737659@cloud238.thundercloud.uk> X-PPP-Vhost: kintzios.com X-Rspamd-Server: mailclean11 X-Rspamd-Queue-Id: 2B4651E0003 X-Rspamd-Action: no action X-Spamd-Result: default: False [-1.51 / 999.00]; SIGNED_PGP(-2.00)[]; MID_RHS_NOT_FQDN(0.50)[]; ONCE_RECEIVED(0.20)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; MX_GOOD(-0.01)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[]; DMARC_POLICY_ALLOW(0.00)[kintzios.com,none]; FROM_HAS_DN(0.00)[]; FUZZY_RATELIMITED(0.00)[rspamd.com]; REPLYTO_DOM_NEQ_TO_DOM(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:34931, ipnet:149.255.60.0/22, country:GB]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_DN_NONE(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[gentoo-user@lists.gentoo.org]; R_DKIM_NA(0.00)[]; NEURAL_HAM(-0.00)[-0.996]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(0.00)[+mx]; HAS_REPLYTO(0.00)[confabulate@kintzios.com] X-Archives-Salt: 4cc0c276-7880-442e-8394-e2e2de558621 X-Archives-Hash: ae7220d28571308fef107f0326ce5e04 --nextPart2137840.KlZ2vcFHjT Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Michael To: gentoo-user@lists.gentoo.org Reply-To: confabulate@kintzios.com Subject: Re: [gentoo-user] CPU clock frequency crashing. Date: Mon, 30 Dec 2024 23:55:15 +0000 Message-ID: <24450761.ouqheUzb2q@rogueboard> In-Reply-To: <8d762a5d-2ff1-f954-41a6-b7643b642d41@verizon.net> MIME-Version: 1.0 On Monday 30 December 2024 21:51:29 Greenwich Mean Time Alan Grimes wrote: > Hey, I'm having usability problems in applications as my CPU clock > frequency crashes down to about 530 mhz... I need it lock in a floor > frequency of 1.25 ghz... I used > cpupower frequency-set -d 1.25GHz which does lift it up to a usable > frequency but a day later it crashes down to garbage again. The machine > is capable of 4.5 ghz or better on 32 cores. (it's a $3,200 processor, I > shouldn't have to experience anything resembling a slowdown while the > load average is under about 128...) > > Basically, if it's not about to catch fire, then I need it to honor that > frequency floor. You haven't mentioned which CPU you are using. If we're talking about AMD, then without diving into the weeds of the amd_pstate settings to understand the combination and interactions of CPPC and Pstate with your chosen scaling governor, I wouldn't know why a day later your minimum frequency setting has been reset. I'd guess your scaling governor took over, but someone more studied on this topic can chime in. >From what I recall the userspace governor allows root to set the frequency statically by using a sysfs file. Other governors e.g. schedutil will scale down the frequency by sampling the current load and make suitable predictions on impending demand. > The next question is why it's even trying to scale down that low when > there are a bunch of threads running flat out trying to show me youtube > ads and crap. =\ Probably because a single thread plus some GPU cycles will process the youtube ads adequately, while the rest of the cores are not lifting any weight at the time. Setting a floor frequency for the CPU when it does not need it is both unnecessary and wasteful when any and all variations in frequency are being controlled as needed by the firmware. When I emerge big packages with all cores set in MAKEOPTS, I can observe individual cores boosting selectively for a few seconds before they drop slightly back waiting for their turn to max out again. I have noticed the same round-robin behaviour boosts CPU cores momentarily when running cpuburn and other load maximizing benchmarking software. I understand this is how the chipset algo controls the thermal load of the CPU. Some tweaking is offered by the BIOS firmware, but the general recommendation is to leave it alone to do its thing, unless you are trying to achieve some wild benchmarking record for bragging rights and the $3,200 price tag going up in smoke is not a significant consideration for you. --nextPart2137840.KlZ2vcFHjT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmdzMuMACgkQseqq9sKV ZxlVyg//UenH10PRH5237QDoHj4HjS2++KRzrM3qfJk3R0FNDjimbM8mIGQDEwtJ dDcUykdLrANfbeGrxqw0WbkLEpWhq9eShBfHqSvD3NjGYTDoMAwOefp6h0VHwS36 5FK/OQz5xsbreNi7+6FHPvVtm+SLfWLoE+arhl3yW4/gkVUO+oBX4uAndaHJahYX ZY28Hc9DAXJMA8ZQ2/Fkoa6fgIQp6EEef8zlO4zdQiCoPs1Rnn5WL9fyZhc0PcHD 9DyAvnmQGxzgBiCke/dJ7opBo5FcM+3s2MigkKYUP8gp6khT6hRIe+7OUl7+McQL zw5ZQtt3fMh9lsfJDryzk1H34CMXYBht/vsRbBbEZsgEapq/HwZfqxgd0Sxn5Zc+ 8NQyoS0AQyoo1i8A+Bqhp4fZtiEbpvDwHlaeG1M55xeMAu7whlineNeHGAyilHFv 7wZpycM2SsersQn7+P0IgydlSzhQLRCa2PkDFsLLIh0L7YaNqQ9S6omngWUTxy3r 83HnU1MksQyvZ6mXLYHARxKE+peMq1pP4P4ooxhn31LyC6WsdTQYjGUBWxkvWaLS mAloAqGhoDtedGwc7turug6DEPiPxhbhHymZggmXKsG6ScoMFcVqBewfhTgKAZFb xKh0/Vr+U5GOQfayH8kUniHxm/Elw9koQvY1cWPHc3WdnOotNRU= =TwNF -----END PGP SIGNATURE----- --nextPart2137840.KlZ2vcFHjT--