From owner-freebsd-arm@freebsd.org Mon Mar 5 04:57: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 BCB72F3082B for ; Mon, 5 Mar 2018 04:57: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 1783082B68; Mon, 5 Mar 2018 04:57: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 w254vOac048265 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 4 Mar 2018 20:57:25 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id w254vN1w048264; Sun, 4 Mar 2018 20:57:23 -0800 (PST) (envelope-from fbsd) Date: Sun, 4 Mar 2018 20:57:23 -0800 From: bob prohaska To: Ian Lepore Cc: Warner Losh , "freebsd-arm@freebsd.org" , bob prohaska Subject: Re: Is maximum swap usage tunable? Message-ID: <20180305045723.GA47820@www.zefox.net> References: <20180228185517.GB26187@www.zefox.net> <8f422161-885e-aa91-eacd-018540222d65@mgm51.com> <20180228214301.GA29481@www.zefox.net> <20180303162605.GA41874@www.zefox.net> <20180304182831.GA44154@www.zefox.net> <1520189171.38056.2.camel@freebsd.org> <20180304214003.GB44154@www.zefox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180304214003.GB44154@www.zefox.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: Mon, 05 Mar 2018 04:57:33 -0000 On Sun, Mar 04, 2018 at 01:40:03PM -0800, bob prohaska wrote: > make -j4 buildworld > > was started with the usb-hosted swap partition turned off, leaving only > the microSD-hosted swap running. It got past the first cycle of llvm-tblgen > showing only half of the one GB available swap in use, with no errors or > warnings. There is some decent chance it'll run to completion, probably > late tomorrow. For now I'll just see how far it gets. > The j4 buildworld using only 1 GB swap on microSD really ran out of swap after a prolonged (half hour or so) interval of swread and pfault status in top and a stream of swap_pager_getswapspace(4): failed swap_pager_getswapspace(4): failed swap_pager_getswapspace(3): failed swap_pager_getswapspace(3): failed Mar 4 20:02:09 www kernel: pid 25154 (c++), uid 0, was killed: out of swap space swap_pager_getswapspace(4): failed swap_pager_getswapspace(4): failed swap_pager_getswapspace(4): failed swap_pager_getswapspace(3): failed swap_pager_getswapspace(2): failed swap_pager_getswapspace(4): failed swap_pager_getswapspace(3): failed swap_pager_getswapspace(4): failed swap_pager_getswapspace(3): failed swap_pager_getswapspace(3): failed swap_pager_getswapspace(3): failed swap_pager_getswapspace(4): failed Mar 4 20:02:49 www kernel: pid 25128 (c++), uid 0, was killed: out of swap space swap_pager_getswapspace(4): failed swap_pager_getswapspace(3): failed swap_pager_getswapspace(7): failed on the console. There were no "indefinite wait" messages at all It appears that swap on microSD worked much better than swap on USB, only failing after hitting 85% or more of utilization and even then not giving up easily. The log files for buildworld and gstat are at http://www.zefox.net/~fbsd/rpi3/swap_issues/ on the chance they're worth looking at. bob prohaska