From owner-freebsd-arm@freebsd.org Sun Mar 21 18:13:34 2021 Return-Path: Delivered-To: freebsd-arm@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 761CE57EB80 for ; Sun, 21 Mar 2021 18:13:34 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "www.zefox.com", Issuer "www.zefox.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F3Qjn1qrzz3l1f for ; Sun, 21 Mar 2021 18:13:32 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.16.1/8.15.2) with ESMTPS id 12LIDdAw056458 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 21 Mar 2021 11:13:40 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.16.1/8.15.2/Submit) id 12LIDd2d056457; Sun, 21 Mar 2021 11:13:39 -0700 (PDT) (envelope-from fbsd) Date: Sun, 21 Mar 2021 11:13:39 -0700 From: bob prohaska To: Mark Millard Cc: freebsd-arm , bob prohaska Subject: RPi and powerd, was: Re: RPI4 clock speeds and serial port ( temperatures idle and -j4 buildworld buildkernel ) Message-ID: <20210321181339.GA56351@www.zefox.net> References: <20210319195019.GA39087@www.zefox.net> <20210320005302.GA40542@www.zefox.net> <81CB0CCA-59AC-49A2-9372-4E2C22E3214D@googlemail.com> <20210320155638.GA41617@www.zefox.net> <63E61033-667C-4A08-9012-7D987B652176@yahoo.com> <20210320182821.GA49050@www.zefox.net> <5BF4DC26-8CCC-48E8-802F-34C42084D47F@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5BF4DC26-8CCC-48E8-802F-34C42084D47F@yahoo.com> X-Rspamd-Queue-Id: 4F3Qjn1qrzz3l1f X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of fbsd@www.zefox.net has no SPF policy when checking 50.1.20.27) smtp.mailfrom=fbsd@www.zefox.net X-Spamd-Result: default: False [-0.44 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; WWW_DOT_DOMAIN(0.50)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zefox.net]; RBL_DBL_DONT_QUERY_IPS(0.00)[50.1.20.27:from]; AUTH_NA(1.00)[]; SPAMHAUS_ZRD(0.00)[50.1.20.27:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.34)[-0.341]; R_SPF_NA(0.00)[no SPF record]; FREEMAIL_TO(0.00)[yahoo.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-arm]; MID_RHS_WWW(0.50)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to ARM processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2021 18:13:34 -0000 On Sat, Mar 20, 2021 at 09:20:36PM -0700, Mark Millard wrote: > > You are getting the vast majority of the time > benefit from powerd use compared to my build > context (based on the world build times). Avoiding > building to allow compiling non-arm could cut > your time noticeably, possibly around 30 minutes > for world. > Half an hour I can wait 8-) More likely I'll botch the changes. After trying powerd on the Pi4 with success it was applied to Pi3 and Pi2. Powerd seemed to work well on the Pi3, but the Pi2 v1.1 stalled consistently in the building libraries phase. The stall was unresponsive to the debugger escape. After power-cycling and disabling powerd, the Pi2 picked up where it left off. Not sure if this is a property of powerd or an artifact of my setup on the Pi2, being 14.0-CURRENT FreeBSD 14.0-CURRENT #13 main-f5e930b369: executing make -j4 -DWITH_META_MODE buildworld There was an effect from powerd on the Pi2, but only 600MHz > 900MHz. The Pi3 went from 600 to 1200, the Pi4 600 to 1500. There was no obvious serial console disruption on any of the three machines. At least on the Pi4 and Pi3 use of -DWITH_META_MODE seems notably faster than before, much more like use of -DNO_CLEAN. Quite a bit has changed since my earlier gripes about needless recompiles so it's hard to fairly credit the improvement. > > > The RPi4 support for powerd (cpufreq) was added > > on 2020-Jun-20 but my RPi4B activity started > > well before then. That is why I did not go down > > the powerd path in how I configured things. It > > will be interesting to compare to your time. > > I always thought of powerd as a complication inflicted to conserve battery life. I had no idea it could be used for performance enhancement. Thank you, Klaus! bob prohaska