Weird message in dmesg
OriS
site.freebsd at orientalsensation.com
Mon Aug 27 08:52:00 UTC 2012
Yup, that seems to be the issue...
I kept bumping up the value of kern.maxswzone until the warning disappeared.
Should be incorporated into sources I guess.
Thanks! :)
Noor
On Mon, Aug 27, 2012 at 10:26 AM, Sergey Kandaurov <pluknet at freebsd.org>wrote:
> On 27 August 2012 10:48, OriS <site.freebsd at orientalsensation.com> wrote:
> > Hello all,
> >
> > I have a strange warning message in dmesg:
> >
> > warning: total configured swap (15728640 pages) exceeds maximum
> > recommended amount (22369984 pages).
> > warning: increase kern.maxswzone or reduce amount of swap.
> >
> > (The configured pages are actually less than maximum)
> >
> > The value of kern.maxswzone in /boot/loader.conf is:
> >
> > kern.maxswzone=201326592
> >
> > Anyone knows what's going on?!
>
> I think there is a typo. Should be:
>
> Index: /usr/src/sys/vm/swap_pager.c
> ===================================================================
> --- /usr/src/sys/vm/swap_pager.c (revision 239722)
> +++ /usr/src/sys/vm/swap_pager.c (working copy)
> @@ -2135,7 +2135,7 @@ swapon_check_swzone(unsigned long npages)
> if (npages > maxpages / 2) {
> printf("warning: total configured swap (%lu pages) "
> "exceeds maximum recommended amount (%lu pages).\n",
> - npages, maxpages);
> + npages, maxpages / 2);
> printf("warning: increase kern.maxswzone "
> "or reduce amount of swap.\n");
> return (-1);
>
> --
> wbr,
> pluknet
>
More information about the freebsd-stable
mailing list