From owner-freebsd-ppc@freebsd.org Wed Oct 9 16:07:46 2019 Return-Path: Delivered-To: freebsd-ppc@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E6CB814F63B for ; Wed, 9 Oct 2019 16:07:46 +0000 (UTC) (envelope-from koachan@protonmail.com) Received: from mail-40135.protonmail.ch (mail-40135.protonmail.ch [185.70.40.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "protonmail.com", Issuer "SwissSign Server Gold CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46pJyn5kh7z4bsV for ; Wed, 9 Oct 2019 16:07:45 +0000 (UTC) (envelope-from koachan@protonmail.com) Date: Wed, 09 Oct 2019 16:07:30 +0000 To: freebsd-ppc From: Koakuma Reply-To: Koakuma Subject: CPU frequency scaling doesn't work on Mac mini G4 Message-ID: Feedback-ID: vx60_H1LlvJmanXig0QfOhp9v83abB6nMHXt02uALA-NQlyNWqBIpoEjWQ90DxSDCfENqXm1HFsRez1WMA7FOQ==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch X-Rspamd-Queue-Id: 46pJyn5kh7z4bsV X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.10 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[koachan@protonmail.com]; R_DKIM_ALLOW(-0.20)[protonmail.com:s=default]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24]; FREEMAIL_FROM(0.00)[protonmail.com]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[protonmail.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; MIME_TRACE(0.00)[0:+]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[protonmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[protonmail.com,quarantine]; TO_MATCH_ENVRCPT_ALL(0.00)[]; IP_SCORE(0.00)[ip: (-9.86), ipnet: 185.70.40.0/24(-4.90), asn: 19905(-3.91), country: US(-0.05)]; RCVD_COUNT_ZERO(0.00)[0]; RCVD_IN_DNSWL_LOW(-0.10)[135.40.70.185.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[protonmail.com]; ASN(0.00)[asn:19905, ipnet:185.70.40.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Oct 2019 16:07:47 -0000 Hi, I've just noticed a strange behavior regarding frequency scaling on the Mac mini G4. When I tried to set the CPU frequency using powerd, it (and "sysctl dev.cpu.0.freq") reports that the frequency has been changed, yet a test using "openssl speed" shows similar performance between the two frequencies. Here's the result of running "openssl speed -evp chacha20" with "powerd -n maximum" (1416 MHz): type=09=0916 bytes=0964 bytes=09256 bytes=091024 bytes=098192 bytes=0916384= bytes chacha20=0940326.69k=0961947.78k=0970339.29k=0972921.32k=0973479.72k=097330= 7.48k And with "powerd -n minimum" (708 MHz): type=09=0916 bytes=0964 bytes=09256 bytes=091024 bytes=098192 bytes=0916384= bytes chacha20=0940314.57k=0962121.26k=0970303.44k=0972740.17k=0973468.76k=097352= 0.78k I expect that openssl would run slower when the CPU frequency is set to minimum, but that's not the case here. Is it a bug or did I use the wrong program to measure it? The system is a freshly-installed 12.0-RELEASE on the 1.4 GHz model.