The mysterious kern.maxswzone

RW rwmaillists at googlemail.com
Sun Jan 20 22:13:41 UTC 2019


On Sun, 20 Jan 2019 17:01:50 +0000
Lorenzo Salvadore via freebsd-questions wrote:

> > 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.  
> >
> > Anyone?  

> 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". 

0 means use the calculated default value. If you set kern.maxswzone
above the default it's ignored, so there's little reason for setting it.

I'm surprised the warning is showing below 2*RAM, it used to allow for
4*RAM.



More information about the freebsd-questions mailing list