From owner-freebsd-questions@freebsd.org Wed Jan 16 02:20:49 2019 Return-Path: Delivered-To: freebsd-questions@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 58708149ED9C for ; Wed, 16 Jan 2019 02:20:49 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 61A0F86876 for ; Wed, 16 Jan 2019 02:20:48 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=Message-ID:Subject:To:From:Date:In-Reply-To; bh=QFtQJ7SPxU5k50ASsC+w1b0HPGmAvWJqjC5URnvDVRs=; b=bC4r+z70XgGGFbewNSli1mXJqt lS63/XEKpT9qFRkDrSfGoeHqCp5oOTXrcenEEsXb6SkBewFhEeSn+56OPRVF4eYm3j1PmL8Wz6Kin WP2y5N1Rg7QRDWlfsI+dkhUU5ceAhH+mW+2QU1PJ34FZsrxEJESDl195M9+aB5Mp3aHU=; Received: from vas by admin.sibptus.ru with local (Exim 4.91 (FreeBSD)) (envelope-from ) id 1gjaow-000Bn1-JW for freebsd-questions@freebsd.org; Wed, 16 Jan 2019 09:20:46 +0700 Date: Wed, 16 Jan 2019 09:20:46 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: The mysterious kern.maxswzone Message-ID: <20190116022046.GA45024@admin.sibptus.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pWyiEgJYm5f9v55/" Content-Disposition: inline X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: Victor Sudakov X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2019 02:20:49 -0000 --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dear Colleagues, I have a small 11.2-RELEASE-p8 i386 system with 512M swap and 256M RAM: # swapinfo Device 1K-blocks Used Avail Capacity /dev/mirror/gm0s1b 524288 29656 494632 6% I guess it's not an extraordinary amount of swap for this amount of RAM. However, on boot I see the warning: warning: total configured swap (131072 pages) exceeds maximum recommended a= mount (113792 pages). warning: increase kern.maxswzone or reduce amount of swap. # sysctl kern.maxswzone kern.maxswzone: 36175872 I have some questions: 1. Where is this kern.maxswzone tunable documented? 2. In what units is it measured? What is 36175872, are these bytes? 3. How do I calculate kern.maxswzone to suit my amount of RAM and swap? 36175872/113792=3D317.91 which confuses me even more (division with remainder?) --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --pWyiEgJYm5f9v55/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJcPpT+AAoJEA2k8lmbXsY0x/cH/2cH5g1MbVA3VYIT/R9QmvOa trdvLKTA+GdKWB7j9DyVQU+XMkx5BWqTbizQOumzAltgYNi3al/H4B6EWlvjS7HK v/eOzEgmv6eQap9G8pRvnaIlxQ+P+m2Ir7gN2oBc6qzlepANLh5Pct7UiY4t0vYu rLScqEPVTmuL37bvaSx707Bv+DEgp/j/oml346b8Y723wMj9HVKsVCeGB+XUdnOM rXAdeZTJllAl3PauRAIMEPkQA2Ue9QRz3aTRpHWKX8SDLFL4Od5GV6jb8JUjdGpo 9ixG2DJ8UU8vvYkBoDOBI7vn9zsBeGOh0wHPgTkq1708ZA6CfLiI5Yj8zZZvasQ= =vaqN -----END PGP SIGNATURE----- --pWyiEgJYm5f9v55/--