From owner-freebsd-arm@freebsd.org Wed Aug 15 22:17:20 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 4403C107263B for ; Wed, 15 Aug 2018 22:17:20 +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 8FA697F326; Wed, 15 Aug 2018 22:17:19 +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 w7FMHTN1059183 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 15 Aug 2018 15:17:30 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id w7FMHScU059182; Wed, 15 Aug 2018 15:17:28 -0700 (PDT) (envelope-from fbsd) Date: Wed, 15 Aug 2018 15:17:28 -0700 From: bob prohaska To: Mark Millard Cc: Mark Johnston , John Kennedy , freebsd-arm , bob prohaska Subject: Re: RPI3 swap experiments ["was killed: out of swap space" with: "v_free_count: 5439, v_inactive_count: 1"] Message-ID: <20180815221728.GA59074@www.zefox.net> References: <20180808153800.GF26133@www.zefox.net> <20180808204841.GA19379@raichu> <2DC1A479-92A0-48E6-9245-3FF5CFD89DEF@yahoo.com> <20180809033735.GJ30738@phouka1.phouka.net> <20180809175802.GA32974@www.zefox.net> <20180812173248.GA81324@phouka1.phouka.net> <20180812224021.GA46372@www.zefox.net> <20180813021226.GA46750@www.zefox.net> <0D8B9A29-DD95-4FA3-8F7D-4B85A3BB54D7@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0D8B9A29-DD95-4FA3-8F7D-4B85A3BB54D7@yahoo.com> 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: Wed, 15 Aug 2018 22:17:20 -0000 On Sun, Aug 12, 2018 at 08:36:01PM -0700, Mark Millard wrote: [snip] > > I'd keep multiplying by 10 until it works (or fails some > other way), then back off by smaller factors if you want > a narrower range to be known between failing and working > (or failing differently). > [snip] > > The factor of 10 rule makes the number of tests > logarithmic to find an sufficient upper bound (if > there is an upper bound). After that with high/low > bounds binary searching is a possibility. > Updated to r337688 with 2 GB of swap divided between USB and microSD. Using vm.pageout_oom_seq=1024, a -j4 buildworld failed with da0 errors reported, panic'd and rebooted. A -j3 buildworld ran to completion with several dozen "indefinite wait..." messages but no other complaints. IIRC, this swap configuration wouldn't even run -j2 to completion with vm.pageout_oom_seq=12, so the increase to 1024 clearly helps and the da0 errors suggest something else gives up if taxed to -j4. During the -j3 buildworld, at about the 26 MB point in the log file top reported ld.lld having "size" of 1037 MB, but only 60 MB of swap were in use. With only 1 GB of main memory, is that to be believed? The backtrace emitted by the -j4 panic is somewhat longer than usual, it's in the file named console at http://www.zefox.net/~fbsd/rpi3/swaptests/r337688/1gbsd_1gbusb/ in case it's of interest. Thanks for reading! bob prohaska