From owner-freebsd-arm@freebsd.org Mon Jul 23 15:52:58 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 44FC4104EB7A for ; Mon, 23 Jul 2018 15:52:58 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.zefox.org", Issuer "www.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9A4E6824FB for ; Mon, 23 Jul 2018 15:52:57 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id w6NFrCW4047728 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 23 Jul 2018 08:53:13 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id w6NFrCt7047727; Mon, 23 Jul 2018 08:53:12 -0700 (PDT) (envelope-from fbsd) Date: Mon, 23 Jul 2018 08:53:11 -0700 From: bob prohaska To: Mark Millard Cc: Trev , freebsd-arm@freebsd.org, bob prohaska Subject: Re: RPI3 swap experiments Message-ID: <20180723155311.GB45726@www.zefox.net> References: <20180629233937.GC35717@www.zefox.net> <0f137e06-214a-3e8c-a216-f061ec04ac2c@sentry.org> <20180630005145.GA43801@www.zefox.net> <6f3406e2-71f3-d0c2-2b65-703e1a1d3c25@sentry.org> <8e92b2b7-da61-3efb-7231-9fac76b2c1d4@sentry.org> <2deaaec3-f78f-0b09-5ca7-27e14c6979f9@sentry.org> <20180723063526.GA45726@www.zefox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jul 2018 15:52:58 -0000 On Mon, Jul 23, 2018 at 12:11:19AM -0700, Mark Millard wrote: > > > On 2018-Jul-22, at 11:35 PM, bob prohaska wrote: > > >> . . . > > There is some reason to think "newer" Sandisk Extreme devices differ, perhaps > > in a bad way, from older devices. The older device in my tests is model > > SDCZ80-064G and is simply labeled USB3.0. The newer, troublesome device > > is model SDCZ800-064G and is labeled Extreme Go USB 3.1. There are reports > > that the Extreme Go is slower, advising to buy the older devices if possible. > > > > The USB3.1 flash drive is back in test, with the results of a j4 buildworld > > under r336567 at > > http://www.zefox.net/~fbsd/rpi3/swaptests/r336567/ > > > > The worst case results are still fairly dismal, close to a minute. All the > > swap was on microSD, so OOMA didn't strike and buildworld completed successfully. > > Near as I can tell no errors were reported on the console. > > > Rebuilds that do not rebuild the llvm materials (clang, lld, lldb, etc.) are not all that > comparable to ones that do. (This is visible in the time differences in the builds that > complete.) The llvm related build activity likely involves most of the potential > swapping, for example. Also: lots of I/O. > > There can be two rebuilds of some of the llvm material. One stage with such is the > cross-compiler: > --- buildworld --- > make[1]: "/usr/src/Makefile.inc1" line 341: SYSTEM_COMPILER: Determined that CC=cc matches the source tree. Not bootstrapping a cross-compiler. > make[1]: "/usr/src/Makefile.inc1" line 346: SYSTEM_LINKER: Determined that LD=ld matches the source tree. Not bootstrapping a cross-linker. > (it was not rebuilt in the example). The other involves the build of the system llvm materials for > use in the (potentially) installed system, such as the system's clang. > > Taking an environment that worked for lack of llvm related rebuilds may not > well indicate the result for rebuilds that would try to rebuild the llvm related > materials. > > It is something to consider in what builds are compared, how they are > compared, and what one infers from comparisons. > The first step in the experiment is to run a cleanup script, consisting of make -j8 cleandir > cleandir.log && make -j8 cleandir > cleandir.log && rm -rf /usr/obj/usr/src && rm *.log Might this be insufficient to ensure a clean start? There's no obvious reason to build a cross compiler, since this is an RPI3 building world for itself. Is there an error in the cleanup script? Thanks for reading! bob prohaska