The mysterious kern.maxswzone
phascolarctos at protonmail.ch
Sun Jan 20 17:02:09 UTC 2019
> Victor Sudakov wrote:
> > 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 amount (113792 pages).
> > warning: increase kern.maxswzone or reduce amount of swap.
I am not an expert on the topic, but since you lack an answer I'll try.
What is the problem exactly?
You only want to get rid of the warnings or something does
not work properly?
Assuming you just want to get rid of the warnings try to do as suggested.
According to the output of "sysctl -d kern.maxswzone" this variabile regulates
the maximum memory for swap metadata. In my case it is 0: probably this means
"do not set any maximum", "use as much memory as you need". You might
want to set the same value. In any case, I suggest you write us what your value is.
This might be related (not sure):
More information about the freebsd-questions