]> rtime.felk.cvut.cz Git - frescor/demo.git/commitdiff
Update stress-cpu script
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 17 May 2010 16:42:35 +0000 (18:42 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 17 May 2010 16:42:35 +0000 (18:42 +0200)
build/stress-cpu

index 36a3b37c18fe1a94104a7e4ee9bbc437ad66a416..318cf89e9513b1f596d04fc19ac0dd645ec3f85a 100755 (executable)
@@ -1,11 +1,9 @@
 #!/bin/sh
 
-set -x
-
-while true; do
-    if ! pidof -x setup; then
-       ./hackbench 5 thread;
-    else
-       sleep 0.1;
-    fi
+for i in `seq 20`; do 
+       ( while true; do ./_compiled/bin/loadcpu 0 "Executing process $i"; done ) &
+       pids="$pids $!"
 done
+trap "kill $pids; killall loadcpu" 0
+wait
+