}
nids_list () {
- local list
- for i in ${1//,/ }; do
- list="$list $i@$NETTYPE"
- done
- echo $list
+ local list
+ local escape="$2"
+ for i in ${1//,/ }; do
+ if [ "$list" = "" ]; then
+ list="$i@$NETTYPE"
+ else
+ list="$list$escape $i@$NETTYPE"
+ fi
+ done
+ echo $list
}
# FIXME: all setup/cleanup can be done without rpc.sh
# compile dir kernel-0 ~1GB
# required space ~1GB * cbench_IDIRS
+ local dir=${1:-$DIR}
+
cbench_DIR=${cbench_DIR:-""}
cbench_IDIRS=${cbench_IDIRS:-2}
cbench_RUNS=${cbench_RUNS:-2}
[ -e $cbench_DIR/compilebench ] || \
{ skip_env "No compilebench build" && return; }
- local space=$(df -P $DIR | tail -n 1 | awk '{ print $4 }')
+ local space=$(df -P $dir | tail -n 1 | awk '{ print $4 }')
if [[ $space -le $((1024 * 1024 * cbench_IDIRS)) ]]; then
cbench_IDIRS=$((space / 1024 / 1024))
[[ $cbench_IDIRS -eq 0 ]] &&
# t-f _base needs to be modifyed to set properly tdir
# for new "test_foo" functions names
# local testdir=$DIR/$tdir
- local testdir=$DIR/d0.compilebench
+ local testdir=$dir/d0.compilebench
mkdir -p $testdir
local savePWD=$PWD
mbench_NFILES=${mbench_NFILES:-30400}
# threads per client
mbench_THREADS=${mbench_THREADS:-4}
+ mbench_OPTIONS=${mbench_OPTIONS:-}
[ x$METABENCH = x ] &&
{ skip_env "metabench not found" && return; }
# -S Run the file stat tests.
# -c nfile Number of files to be used in each test.
# -k Cleanup. Remove the test directories.
- local cmd="$METABENCH -w $testdir -c $mbench_NFILES -C -S -k"
+ local cmd="$METABENCH -w $testdir -c $mbench_NFILES -C -S -k $mbench_OPTIONS"
echo "+ $cmd"
# find out if we need to use srun by checking $SRUN_PARTITION
# mpi_run uses mpiuser
chmod 0777 $testdir
- do_nodes $clients "lctl set_param llite.*.max_rw_chunk=0" ||
- error "set_param max_rw_chunk=0 failed "
-
local cmd
local status=0
local subtest