kern.maxswzone

RW rwmaillists at googlemail.com
Sun Mar 30 20:30:34 UTC 2014


On Fri, 7 Mar 2014 21:57:05 +0100 (CET)
Wojciech Puchar wrote:

> i configured 4.7GB swap on 512MB computer and i see in logs
> 
> warning: total configured swap (1249880 pages) exceeds maximum
> recommended amount (986496 pages). warning: increase kern.maxswzone
> or reduce amount of swap.
> 
> 
> fine, but after increasing maxswzone to 60000000 from less than 40 
> millions of default, no difference in message


kern.maxswzone can only be used to reduce the space used below the
default, not increase it. According to loader(8) the default allows for
a swap size of 8x ram. However, it's not an exact calculation, and there
is a safety margin, so you may be OK if you ignore the warning.   


More information about the freebsd-hackers mailing list