Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 May 2019 13:55:06 +0100
From:      tech-lists <tech-lists@zyxst.net>
To:        freebsd-hackers@freebsd.org
Subject:   Re: total configured swap  exceeds maximum
Message-ID:  <20190519125505.GB6971@rpi3.zyxst.net>
In-Reply-To: <alpine.BSF.2.20.1905191204540.4805@puchar.net>
References:  <alpine.BSF.2.20.1905191204540.4805@puchar.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--K8nIJk4ghYZn606h
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, May 19, 2019 at 12:06:38PM +0200, Wojciech Puchar wrote:
>got this after configuring 160GB in 2 page partitions on 32GB RAM system.
>
>
>warning: total configured swap (36700158 pages) exceeds maximum
>recommended amount (32536376 pages).
>warning: increase kern.maxswzone or reduce amount of swap.
>
>
>what should i set kern.maxswzone to ? it is 0
>
># sysctl  kern.maxswzone
>kern.maxswzone: 0

Hi,

Not sure if this answers your question, but my experience of swap was
that it "likes"[1] (4 or 8 or 16GB) * N(umber of swapfiles/partitions)=20
and N=3D1 is usual for a system not doing heavy compiling work like poudrie=
re.=20
It doesn't "like" 32GB or 64GB etc etc

So on one poudriere system there is 32GB ram and 2*16GB swap partitions
and one 16GB swapfile. On another there is 192GB RAM and 3* 16GB swap
partitions. On a regular workstation with 8GB there's just one 8GB
swap partition which is almost never used it seems.

If it's one huge swapfile, it never seems to clear after the build
completes. I have no idea why this might be.

Then there's the thing about dump/panic. IIRC doesn't total swap have to
be at least size_of_ram ?

Like I say, I don't know if the above is "correct" or not. It's just my
experience.

[1] by which I mean "is effective"
[2] swap partition or file is on SSD hardware
--=20
J.

--K8nIJk4ghYZn606h
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAlzhUh8ACgkQs8o7QhFz
NAUJNw/9Efr8NVTghKAftLQzj7f39R/T6VZhEGvM9Qex6sBpTM3zih6DekcKOrNS
fY8tTHr/ETJe2uOZLgOoW07dtQ4vaAD06R39OkJ++rWmBq4dEHPQR5gVixx5Lzge
Ziwx0ND7GnGl1Xo5lFVIp65GwVbfwweqbY9G7eF6vC/mh6AcE/hnJnGbpLpAlIEC
sQmA6xedKIV9VGETzJYPoZe7Blu7OuAJHBcIlCXVYREIxxdIykTIHaEhUj+tu48f
IzjReyWgR1n9ah2+v0anLZMOvI6fqsIftJNBHRdkHM4pnSPS2Rb19XEB3FNs71Rr
Dwc+NmvppRq0t4pKZs9gO4Yy8Bxo3C0paYuGenooLD14xmv2oTSd8MobQkf/M04+
W7nYpxcwt4Y3rLTC/zKxcLZF5I+UBmMYeGhifdUDZHkT3pNSPuTVo/xFS9SaqS3f
Zb+YQr0GbPkB953EkIVgRyuW58xe97sXP3dVKYswub6xz30NAHTD8BXJlb9XyU6U
cHhjui+/uPfoqwpN8kasyYFfLB4cSSe14jpVjTU7tWsLI1s2FBU6F8Bd+QxKcYAa
Df07vJhTu7mDhh060byJlu+Q1j+jGVyuvS0OkN8x7Dg330ylMSMh0juwJVR36R/i
GHlm7yDtJ/z/XLDy4H0D9GW/HzEOldgnVeeMI3ugRj9V7xHgWgY=
=WIuP
-----END PGP SIGNATURE-----

--K8nIJk4ghYZn606h--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190519125505.GB6971>