svn commit: r295879 - user/pho/stress2/misc
Peter Holm
pho at FreeBSD.org
Mon Feb 22 08:22:10 UTC 2016
Author: pho
Date: Mon Feb 22 08:22:08 2016
New Revision: 295879
URL: https://svnweb.freebsd.org/changeset/base/295879
Log:
Wait for VM pressure startup, before running test.
Sponsored by: EMC / Isilon Storage Division
Modified:
user/pho/stress2/misc/datamove2.sh
Modified: user/pho/stress2/misc/datamove2.sh
==============================================================================
--- user/pho/stress2/misc/datamove2.sh Mon Feb 22 08:18:43 2016 (r295878)
+++ user/pho/stress2/misc/datamove2.sh Mon Feb 22 08:22:08 2016 (r295879)
@@ -43,12 +43,14 @@ mycc -o datamove2 -Wall datamove2.c
rm -f datamove2.c
for i in `jot 2`; do
- $here/../testcases/swap/swap -t 10m -i 200 -h &
- /tmp/datamove2 || { echo FAIL; exit 1; }
- ps | grep swap | grep -v swap | awk '{print $1}' | xargs kill
+ $here/../testcases/swap/swap -t 5m -i 100 -h &
+ sleep 1
+ /tmp/datamove2 || { echo FAIL; r=1; }
+ while pkill -9 swap; do :; done
+ [ -n "$r" ] && break
done
rm -rf /tmp/datamove2
-exit 0
+exit $r
EOF
/*-
* Copyright (c) 2006, Stephan Uphoff <ups at freebsd.org>
More information about the svn-src-user
mailing list