Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jan 2019 22:13:35 +0000
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: The mysterious kern.maxswzone
Message-ID:  <20190120221335.45174d3b@gumby.homeunix.com>
In-Reply-To: <iEZ_NWrsBteUEwMtKDxQZojCIftaHztEdEcJ3hIi50EzjkI2sICA-GD9jCugGWgAiZcwn30fd1hQH3SHdaCbYTX48ZyAjiewUIU8Tam0I7Q=@protonmail.ch>
References:  <20190116022046.GA45024@admin.sibptus.ru> <20190120094948.GA7774@admin.sibptus.ru> <iEZ_NWrsBteUEwMtKDxQZojCIftaHztEdEcJ3hIi50EzjkI2sICA-GD9jCugGWgAiZcwn30fd1hQH3SHdaCbYTX48ZyAjiewUIU8Tam0I7Q=@protonmail.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
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.




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