From owner-freebsd-arm@freebsd.org Wed Feb 28 17:03:14 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 572BBF35593 for ; Wed, 28 Feb 2018 17:03:14 +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 CC0E682FFB for ; Wed, 28 Feb 2018 17:03:13 +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 w1SH3Bs5028782 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 28 Feb 2018 09:03:12 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id w1SH3BNo028781; Wed, 28 Feb 2018 09:03:11 -0800 (PST) (envelope-from fbsd) Date: Wed, 28 Feb 2018 09:03:11 -0800 From: bob prohaska To: freebsd-arm@freebsd.org Subject: Is maximum swap usage tunable? Message-ID: <20180228170311.GA26187@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: Wed, 28 Feb 2018 17:03:14 -0000 In watching system compilations on an RPi3 it looks as if the system starts killing processes with "out of swap" warnings well below 50% of full utilization (in this case, 2 GB). One recent instance of make -j4 kernel-toolchain killed llvm-tblgen with only 34% of the swap in use. Is the maximum swap usage limit adjustable in any way? I didn't recognize anything useful in the page at https://www.freebsd.org/cgi/man.cgi?query=sysctl(8)&sektion=&manpath=freebsd-release-ports It's possible the problem is really swap speed, rather than size, so I'd like to try changing size limits if possible. The swap media claims 2-3 MB/sec random write speed and observations with gstat seem to support the claim, but transient stalls are hard to observe. An RPi2 with similar hardware seems to have no problems. Thanks for reading, bob prohaska