view distributed/weighttp/weighttp_write_jungle.sh @ 21:a972a5814b0b

loop_qsub.sh for jungle benchmark
author Nobuyasu
date Wed, 29 Jan 2014 16:22:02 +0900
parents 61221984aa56
children d6d3b7180e6d
line wrap: on
line source

#!/bin/sh
#
#PBS -q bqueue
#PBS -N write_jungle
#PBS -l walltime=00:05:00

command=/home/mass/share/student/k128576/jungle_benchmark/distributed/weighttp/stress_weighttp.sh

function run() {
 i=0
 while read serv
 do
  ssh $serv "$command $i $nodesFile $schedule $requests $concurrent $thread" &
  i=`expr $i + 1`
 done   
 wait
}

uniq $PBS_NODEFILE /tmp/nodes
run < /tmp/nodes