Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Aug 2012 10:59:49 +0000 (UTC)
From:      Sergey Kandaurov <pluknet@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r239723 - head/sys/vm
Message-ID:  <201208271059.q7RAxnK7085267@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208271059.q7RAxnK7085267>