Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Aug 2012 12:26:49 +0400
From:      Sergey Kandaurov <pluknet@freebsd.org>
To:        OriS <site.freebsd@orientalsensation.com>
Cc:        freebsd-stable@freebsd.org, =?ISO-8859-1?Q?Dag=2DErling_Sm=F8rgrav?= <des@freebsd.org>
Subject:   Re: Weird message in dmesg
Message-ID:  <CAE-mSOJWWELwi=gduOOrwfGUrmox1sy8PSm=CXgZ45xLNu78cA@mail.gmail.com>
In-Reply-To: <CALazp%2BVajMK8FgqJSr5KRB3y2bpH=ZxL2PNLCqPrKD34LM%2BVqw@mail.gmail.com>
References:  <CALazp%2BVajMK8FgqJSr5KRB3y2bpH=ZxL2PNLCqPrKD34LM%2BVqw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 27 August 2012 10:48, OriS <site.freebsd@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAE-mSOJWWELwi=gduOOrwfGUrmox1sy8PSm=CXgZ45xLNu78cA>