From owner-freebsd-arm@freebsd.org Thu Feb 22 01:54:38 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 B07F0F17F7D for ; Thu, 22 Feb 2018 01:54:38 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [69.239.235.194]) (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 2FD6680A07 for ; Thu, 22 Feb 2018 01:54:38 +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 w1M1sZnu001940 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 21 Feb 2018 17:54:36 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id w1M1sZ01001939; Wed, 21 Feb 2018 17:54:35 -0800 (PST) (envelope-from fbsd) Date: Wed, 21 Feb 2018 17:54:35 -0800 From: bob prohaska To: tech-lists Cc: freebsd-arm@freebsd.org, bob prohaska Subject: Re: Pi3 out of swap at < 50% Message-ID: <20180222015435.GA1904@www.zefox.net> References: <20180217162732.GA93736@www.zefox.net> <1518885801.91697.2.camel@freebsd.org> <9bf0ca6e-1916-3f4d-71fe-0515fe6a717f@zyxst.net> <20180218003840.GD93736@www.zefox.net> <3d2bd5e3-4567-cdfe-04d4-b572371a212e@zyxst.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3d2bd5e3-4567-cdfe-04d4-b572371a212e@zyxst.net> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Feb 2018 01:54:38 -0000 On Sun, Feb 18, 2018 at 03:38:49AM +0000, tech-lists wrote: > > In that situation I'd deactivate the swap on the card, and make a few > swap partitions on the flash drive. I used to run into the sort of > difficulty you're seeing if swap was on the microsd. It's not just swap > though; enough i/o activity on the card and it starts blocking. You can > tell it's happening if in another terminal if you type sync. It takes > several seconds (sometimes tens of seconds) to return. > Simply disabling the swap partition on the microSD card eliminated the vast majority of "indefinite wait..." errors. It seems to have reduced, but not eliminated, the "out of swap" errors. Unfornately, clang seems to keep crashing and asking for a bug report, even when backed down to -j2. It's running -j1 now, it'll be a long time finishing. Unfortunately I wasn't watching top when the last couple out of swap incidents happened, so I don't know if it was really out. Thanks for the suggestion, it helped a great deal. bob prohaska