[PC-BSD Commits] r5280 - pcbsd/trunk/system-overlay/usr/PCBSD/Scripts
svn at pcbsd.org
svn at pcbsd.org
Mon Dec 7 10:27:19 PST 2009
Author: kris
Date: 2009-12-07 10:27:19 -0800 (Mon, 07 Dec 2009)
New Revision: 5280
Modified:
pcbsd/trunk/system-overlay/usr/PCBSD/Scripts/swapmonitor.sh
Log:
Fixed out of control swap file generation when using amd64 and LOTS of ram on 8.x
Modified: pcbsd/trunk/system-overlay/usr/PCBSD/Scripts/swapmonitor.sh
===================================================================
--- pcbsd/trunk/system-overlay/usr/PCBSD/Scripts/swapmonitor.sh 2009-12-07 17:13:26 UTC (rev 5279)
+++ pcbsd/trunk/system-overlay/usr/PCBSD/Scripts/swapmonitor.sh 2009-12-07 18:27:19 UTC (rev 5280)
@@ -23,7 +23,7 @@
sleep 5
# Run the swapctl command and save output
-SWAPOUTPUT="`swapctl -s -h`"
+SWAPOUTPUT="`swapctl -s -m`"
SWAPTOTAL="`echo ${SWAPOUTPUT} | awk '{ print $2 }' | sed -e 's|M||g' | sed -e 's|B||g' | sed -e 's|G||g'`"
SWAPUSED="`echo ${SWAPOUTPUT} | awk '{ print $3 }' | sed -e 's|M||g' | sed -e 's|B||g' | sed -e 's|G||g'`"
SWAPAVAIL="`expr ${SWAPTOTAL} - ${SWAPUSED}`"
More information about the Commits
mailing list