total configured swap exceeds maximum

tech-lists tech-lists at zyxst.net
Sun May 19 12:55:17 UTC 2019


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) 
and N=1 is usual for a system not doing heavy compiling work like poudriere. 
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
-- 
J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20190519/f94f2a0f/attachment.sig>


More information about the freebsd-hackers mailing list