From owner-freebsd-stable@freebsd.org Fri Jun 26 10:23:49 2020 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 57342354067 for ; Fri, 26 Jun 2020 10:23:49 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vtr.rulingia.com (vtr.rulingia.com [IPv6:2001:19f0:5801:ebe:5400:1ff:fe53:30fd]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vtr.rulingia.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49tXzS1qG4z4QR7 for ; Fri, 26 Jun 2020 10:23:47 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from server.rulingia.com (ppp239-208.static.internode.on.net [59.167.239.208]) by vtr.rulingia.com (8.15.2/8.15.2) with ESMTPS id 05QANbYE034263 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 26 Jun 2020 20:23:43 +1000 (AEST) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.15.2/8.15.2) with ESMTPS id 05QANVG6009034 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 26 Jun 2020 20:23:32 +1000 (AEST) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.15.2/8.15.2/Submit) id 05QANVOi009033; Fri, 26 Jun 2020 20:23:31 +1000 (AEST) (envelope-from peter) Date: Fri, 26 Jun 2020 20:23:31 +1000 From: Peter Jeremy To: Donald Wilde Cc: Paul Mather , freebsd-stable Subject: Re: swap space issues Message-ID: <20200626102331.GA6406@server.rulingia.com> References: <20200625000410.GA10210@eureka.lemis.com> <20200625025248.GB10210@eureka.lemis.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Qxx1br4bt0+wmkIi" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://www.rulingia.com/keys/peter.pgp X-Rspamd-Queue-Id: 49tXzS1qG4z4QR7 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of peter@rulingia.com designates 2001:19f0:5801:ebe:5400:1ff:fe53:30fd as permitted sender) smtp.mailfrom=peter@rulingia.com X-Spamd-Result: default: False [-4.91 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.02)[-1.020]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.03)[-1.032]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[rulingia.com]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.46)[-0.461]; SIGNED_PGP(-2.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5800::/38, country:US]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jun 2020 10:23:49 -0000 --Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2020-Jun-25 11:30:31 -0700, Donald Wilde wrote: >Here's 'pstat -s' on the i3 (which registers as cpu HAMMER): > >Device 1K-blocks Used Avail Capacity >/dev/ada0s1b 33554432 0 33554432 0% >/dev/ada0s1d 33554432 0 33554432 0% >Total 67108864 0 67108864 0% I strongly suggest you don't have more than one swap device on spinning rust - the VM system will stripe I/O across the available devices and that will give particularly poor results when it has to seek between the partitions. Also, you can't actually use 64GB swap with 4GB RAM. If you look back through your boot messages, I expect you'll find messages like: warning: total configured swap (524288 pages) exceeds maximum recommended a= mount (498848 pages). warning: increase kern.maxswzone or reduce amount of swap. or maybe: WARNING: reducing swap size to maximum of xxxxMB per unit The absolute limit on swap space is vm.swap_maxpages pages but the realistic limit is about half that. By default the realistic limit is about 4=D7RAM = (on 64-bit architectures), but this can be adjusted via kern.maxswzone (which defines the #bytes of RAM to allocate to swzone structures - the actual space allocated is vm.swzone). As a further piece of arcana, vm.pageout_oom_seq is a count that controls the number of passes before the pageout daemon gives up and starts killing processes when it can't free up enough RAM. "out of swap space" messages generally mean that this number is too low, rather than there being a shortage of swap - particularly if your swap device is rather slow. --=20 Peter Jeremy --Qxx1br4bt0+wmkIi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE2M6l8vfIeOACl4uUHZIUommfjLIFAl71zJVfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQ4 Q0VBNUYyRjdDODc4RTAwMjk3OEI5NDFEOTIxNEEyNjk5RjhDQjIACgkQHZIUommf jLIBGg/+M/QMpqdHrXkKWEseuc4T8URFNbrJJc/gIJGvUZ7d7yKawYRnZvdy3LcS AkCKFougUF5NEPa4XcDs/Mz1PRX0shaK3XWrXtaBLq4T+EwPNhNTrhzfTbzLjqEq O5sFxyutT4UenGUHUZafi6M/1M1OCFrmnwPFrorftC0uLgb04yhjCywzNNgmAeqv XtTdF7QguHDsD9Z5zIgqLqmaUl+pybiB2AOmUA9vnZM+XYJXxy5kXAH4fSaFof3Y UO32wTWEWvpNy6vIaQ6HsXYeLP6pzRQ8Lj05MchkCB/1ahhT2i8eEzSU3QiZcbJE 8kNzaQk0PzGLNmkHWRI4Sr/6mJiIWTmTco5v7ao7W/pwoYE4ILdrMzwDLZiZpx7G 9IAm0JKhufbxxiPLHNJWb0kNlWcHY6E7eltDneGPGM8h8yxyoHRkuTd35O0RCWBN Qgu+Rh1r4GJH1QoMJFFXkpr0uTnytT8h7oHF8b20evMD/8rn9VQL0oaQkN+G8t1+ S8PqskbWdH7capbdVzRALTuzA7LBcTyMx4jk/btdv8uCZFPFoD/apsmulgLlBSDL OdOkFkPTS8ahTVS3zggyrVKmFmBG2dR8e3cwF9vrJ+oE95x6mBCq5tEHkQSSsZqS nmtQX41S+Wk++ueJQavaglBPi4h2ubTOdkhSw4+a3nkvsuwp/tE= =esio -----END PGP SIGNATURE----- --Qxx1br4bt0+wmkIi--