From owner-freebsd-arm@freebsd.org Sun Feb 18 00:38:35 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 8522AF21F66 for ; Sun, 18 Feb 2018 00:38:35 +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 03FF376FDD for ; Sun, 18 Feb 2018 00:38:34 +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 w1I0ce4a094946 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 17 Feb 2018 16:38:41 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id w1I0ceGC094945; Sat, 17 Feb 2018 16:38:40 -0800 (PST) (envelope-from fbsd) Date: Sat, 17 Feb 2018 16:38:40 -0800 From: bob prohaska To: tech-lists Cc: freebsd-arm@freebsd.org, bob prohaska Subject: Re: Pi3 out of swap at < 50% Message-ID: <20180218003840.GD93736@www.zefox.net> References: <20180217162732.GA93736@www.zefox.net> <1518885801.91697.2.camel@freebsd.org> <9bf0ca6e-1916-3f4d-71fe-0515fe6a717f@zyxst.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9bf0ca6e-1916-3f4d-71fe-0515fe6a717f@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: Sun, 18 Feb 2018 00:38:35 -0000 On Sat, Feb 17, 2018 at 10:57:25PM +0000, tech-lists wrote: > I have a portable 1TB HD plugged into one of the USB ports with 2GB > configured as swap.. and things like /tmp and /var/tmp are mounted on > the ufs filesystem on the HD in order to reduce I/O on the sd card. > Seems to work. > > Also have GPU memory set to 32 iirc as it's running headless. > -- > J. That's how I started out with a Pi2 a couple of years ago....well, not quite: only 32GB of disk. It worked, so I tried Sandisk Extreme USB flash drives. They worked too, and were smaller, neater and used less power. Starting around the time of the armv6/armv7 split and use of the unified GENERIC kernel (which is somewhat larger than the RPI2 kernel) I started seeing "out of swap" errors. On my RPI2 running armv7 it looks like the out of swap error is real: 2 GB are configured, around 1.5 GB are usable (limited by internal table sizes) and I see "out of swap" with about 1.5GB usage showing in top. The arm64 RPI3 also has 2 GB configured in two equal partitions, one on the USB flash drive and one on the microSD card used for booting. It's claiming "out of swap" with only about 50% usage. Swapinfo shows both partitions are being used, so that's not the problem. Kernel and world are a couple weeks out of sync, which might be a problem but it can't be checked until buildworld runs to completion, which it hasn't. The best part is that a Pi2 running 11.0 managed to build world and kernel using 256 MB of md99 swap. It was using j2, but that's the only difference. IIRC it took about three days. Thanks for reading, and any ideas! bob prohaska