svn commit: r239723 - head/sys/vm

Sergey Kandaurov pluknet at FreeBSD.org
Mon Aug 27 10:59:49 UTC 2012


Author: pluknet
Date: Mon Aug 27 10:59:49 2012
New Revision: 239723
URL: http://svn.freebsd.org/changeset/base/239723

Log:
  Typo in previous change: print half the theoretical maximum as maximum
  recommended amount.
  
  Reported by:	<site freebsd at orientalsensation com>
  Reviewed by:	des

Modified:
  head/sys/vm/swap_pager.c

Modified: head/sys/vm/swap_pager.c
==============================================================================
--- head/sys/vm/swap_pager.c	Mon Aug 27 04:43:30 2012	(r239722)
+++ head/sys/vm/swap_pager.c	Mon Aug 27 10:59:49 2012	(r239723)
@@ -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);


More information about the svn-src-all mailing list