From owner-freebsd-arm@freebsd.org Sat Feb 17 16:27:33 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 7302EF1D8EC for ; Sat, 17 Feb 2018 16:27:33 +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 E681987E5B for ; Sat, 17 Feb 2018 16:27:32 +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 w1HGRXif093787 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 17 Feb 2018 08:27:33 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id w1HGRW8k093786; Sat, 17 Feb 2018 08:27:32 -0800 (PST) (envelope-from fbsd) Date: Sat, 17 Feb 2018 08:27:32 -0800 From: bob prohaska To: freebsd-arm@freebsd.org Subject: Pi3 out of swap at < 50% Message-ID: <20180217162732.GA93736@www.zefox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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: Sat, 17 Feb 2018 16:27:33 -0000 Running make -j4 buildworld on a Pi3 at r329360 tends to result in messages similar to: pid 33492 (llvm-tblgen), uid 0, was killed: out of swap space swap_pager: indefinite wait buffer: bufobj: 0, blkno: 11764, size: 28672 swap_pager: indefinite wait buffer: bufobj: 0, blkno: 16080, size: 4096 swap_pager: indefinite wait buffer: bufobj: 0, blkno: 15721, size: 20480 swap_pager: indefinite wait buffer: bufobj: 0, blkno: 28139, size: 65536 swap_pager: indefinite wait buffer: bufobj: 0, blkno: 40544, size: 4096 swap_pager: indefinite wait buffer: bufobj: 0, blkno: 58384, size: 65536 pid 49735 (c++), uid 0, was killed: out of swap space swap_pager: indefinite wait buffer: bufobj: 0, blkno: 28470, size: 4096 swap_pager: indefinite wait buffer: bufobj: 0, blkno: 24889, size: 8192 swap_pager: indefinite wait buffer: bufobj: 0, blkno: 28736, size: 4096 swap_pager: indefinite wait buffer: bufobj: 0, blkno: 29736, size: 4096 even though swap usage appears to be less than one GB out of two available. So far it's been possible to use the -DNO_CLEAN option with make to pick up where things left off and I've backed down to -j3 to see if that helps. There are two 1 GB swap partitions, one on USB flash and one on the microSD card and both appear to be in use according to swapinfo. There are no warnings in the boot messages and no explicit changes have been made to configuration files apart from adding the swap entries to /etc/fstab. World and kernel are about two weeks out of sync, so top isn't perfectly up-to-date with this kernel; could that account for the mismatch between apparent swap usage and the "out of swap" messages? Thanks for reading, and any ideas! bob prohaska