Date: Wed, 16 Jan 2019 09:20:46 +0700 From: Victor Sudakov <vas@mpeks.tomsk.su> To: freebsd-questions@freebsd.org Subject: The mysterious kern.maxswzone Message-ID: <20190116022046.GA45024@admin.sibptus.ru>
next in thread | raw e-mail | index | archive | help
--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/--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190116022046.GA45024>