svn commit: r272156 - user/pho/stress2/misc

Peter Holm pho at FreeBSD.org
Fri Sep 26 06:41:34 UTC 2014


Author: pho
Date: Fri Sep 26 06:41:33 2014
New Revision: 272156
URL: http://svnweb.freebsd.org/changeset/base/272156

Log:
  Simplify page stealer cleanup.
  
  Sponsored by:	 EMC / Isilon storage division

Modified:
  user/pho/stress2/misc/mmap5.sh
  user/pho/stress2/misc/mmap6.sh

Modified: user/pho/stress2/misc/mmap5.sh
==============================================================================
--- user/pho/stress2/misc/mmap5.sh	Fri Sep 26 06:02:35 2014	(r272155)
+++ user/pho/stress2/misc/mmap5.sh	Fri Sep 26 06:41:33 2014	(r272156)
@@ -44,10 +44,9 @@ cp /tmp/mmap5  /tmp/mmap5.inputfile
 (cd ../testcases/swap; ./swap -t 1m -i 2) &
 cp /tmp/mmap5 /tmp/mmap5.inputfile
 /tmp/mmap5  /tmp/mmap5.inputfile
-while ps auxww | grep -v grep | grep -qw swap; do
-	killall -9 swap 2>/dev/null
+while killall -9 swap; do
 	sleep .1
-done
+done > /dev/null 2>&1
 wait
 rm -f /tmp/mmap5  /tmp/mmap5.inputfile
 exit

Modified: user/pho/stress2/misc/mmap6.sh
==============================================================================
--- user/pho/stress2/misc/mmap6.sh	Fri Sep 26 06:02:35 2014	(r272155)
+++ user/pho/stress2/misc/mmap6.sh	Fri Sep 26 06:41:33 2014	(r272156)
@@ -43,10 +43,9 @@ cp /tmp/mmap6  /tmp/mmap6.inputfile
 (cd ../testcases/swap; ./swap -t 1m -i 2) &
 cp /tmp/mmap6 /tmp/mmap6.inputfile
 /tmp/mmap6  /tmp/mmap6.inputfile
-while ps auxww | grep -v grep | grep -qw swap; do
-	killall -9 swap 2>/dev/null
+while killall -9 swap; do
 	sleep .1
-done
+done > /dev/null 2>&1
 wait
 rm -f /tmp/mmap6  /tmp/mmap6.inputfile
 exit


More information about the svn-src-user mailing list