Sergey Kandaurov <[email protected]> writes:
> 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);

Correct.  The theoretical maximum is maxpages, but due to fragmentation,
you can run out of space well before that.

DES
-- 
Dag-Erling Smørgrav - [email protected]
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[email protected]"

Reply via email to