# ssh-keygen
# cat ~/.ssh/id_rsa.pub | ssh mazet@192.168.1.1 "cat >> ~/.ssh/authorized_keys"
-for f in cyclictest getinfo.sh gettable.awk hackbench load.exe mq.exe mutex.exe pipe.exe semaphore.exe test.sh thread.exe udp.exe; do
+for f in cyclictest hackbench '*.exe' '*.sh'; do
scp mazet@192.168.1.1:benchmarks/$f .
done
function run() {
load=$1
- for test in mutex semaphore thread mq pipe udp; do
+ for exe in *.exe; do
+ test=${exe/.exe/}
./getinfo.sh | tee $test-$load.log
pid=-1
- { ./$test.exe -d 1 -n 10000 -s -o $test-$load.dat | tee -a $test-$load.log; \
+ { ./$exe -d 1 -n 10000 -s -o $test-$load.dat | tee -a $test-$load.log; \
kill -2 $(ps -e | awk '/[h]ackbench/ || /[s]leep/ { print $1 }') 2>/dev/null; } &
case "$load" in
0%) sleep 60;;