From e76afb01dbfcca2fbb05437274aa2c141dada1dc Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Mon, 17 May 2010 18:42:35 +0200 Subject: [PATCH 1/1] Update stress-cpu script --- build/stress-cpu | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/build/stress-cpu b/build/stress-cpu index 36a3b37..318cf89 100755 --- a/build/stress-cpu +++ b/build/stress-cpu @@ -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 + -- 2.39.2