Weird message in dmesg
Dag-Erling Smørgrav
des at des.no
Mon Aug 27 09:19:58 UTC 2012
Sergey Kandaurov <pluknet at freebsd.org> 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 - des at des.no
More information about the freebsd-stable
mailing list