Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Sep 2014 06:41:33 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r272156 - user/pho/stress2/misc
Message-ID:  <201409260641.s8Q6fX22074587@svn.freebsd.org>

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



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