From owner-freebsd-arm@freebsd.org Wed Mar 24 00:08:36 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 1D82D579325 for ; Wed, 24 Mar 2021 00:08:36 +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 4F4pVV6KnCz4gxl for ; Wed, 24 Mar 2021 00:08:34 +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 12O08Z4E081812 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 23 Mar 2021 17:08:36 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.16.1/8.15.2/Submit) id 12O08ZFP081810; Tue, 23 Mar 2021 17:08:35 -0700 (PDT) (envelope-from fbsd) Date: Tue, 23 Mar 2021 17:08:35 -0700 From: bob prohaska To: Mark Millard Cc: freebsd-arm , bob prohaska Subject: Re: RPi and powerd, was: Re: RPI4 clock speeds and serial port ( temperatures idle and -j4 buildworld buildkernel ) Message-ID: <20210324000833.GA79438@www.zefox.net> References: <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> <20210321181339.GA56351@www.zefox.net> <1BBF6487-227A-428B-9B23-539AC8AB7661@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1BBF6487-227A-428B-9B23-539AC8AB7661@yahoo.com> X-Rspamd-Queue-Id: 4F4pVV6KnCz4gxl 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 [-1.10 / 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(-1.00)[-1.000]; 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: Wed, 24 Mar 2021 00:08:36 -0000 On Tue, Mar 23, 2021 at 02:38:25PM -0700, Mark Millard wrote: > [This did not get sent when I wrote it. So sending way late.] > > On 2021-Mar-21, at 11:13, bob prohaska wrote: > > > 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 > That problem seems to have gone away, at least for now. Once the system updated it seemed to run buildworld successfully with powerd turned on. > It might be that if you set the speed in /etc/sysctl.conf > instead of using powerd (so the arm running at a constant > rate), that the problem would repeat on the RPi2. > That sounds like it might help distinguish between a problem with my setup and a problem with powerd. If both sysctl acceleration and powerd acceleration cause a hang, it isn't powerd's fault. > Were you monitoring temperature on the RPi2? Voltage? > Temperature, casually, 55-60C, room below 20C. Voltage, not at all. Stick-on heat sinks but no fan. I'll simply leave powerd enabled and wait to see if the trouble comes back. Thanks for writing! bob prohaska