mobject-regression.qsub 819 Bytes
Newer Older
Rob Latham's avatar
Rob Latham committed
1 2 3 4 5 6 7
#!/bin/bash
#COBALT -n 2
#COBALT -t 5
#COBALT --mode script
#COBALT -A radix-io
#COBALT -q ibleaf3-debug

8
export HOME=$SANDBOX
Rob Latham's avatar
Rob Latham committed
9
export FI_FORK_UNSAFE=1
10
. ${SANDBOX}/spack/share/spack/setup-env.sh
11
spack load -r ior@develop +mobject
Rob Latham's avatar
Rob Latham committed
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

module list

# make half the nodes servers, half clients
nnodes=$(wc -l <$COBALT_NODEFILE)
head -n $((nnodes/2)) $COBALT_NODEFILE > server_nodes
tail -n $((nnodes/2)) $COBALT_NODEFILE > client_nodes

echo " ==== running server "
export MOBJECT_CLUSTER_FILE=mobject-cluster.gid
mpirun -f $COBALT_NODEFILE -n 2 mobject-server-daemon verbs:// $MOBJECT_CLUSTER_FILE &
# give the mobject-server nodes a chance to set up
sleep 5

echo " ==== running benchmark "
mpirun -f $COBALT_NODEFILE -n 2 ior -g -a RADOS -t 64k -b 128k --rados.user=foo --rados.pool=bar --rados.conf $MOBJECT_CLUSTER_FILE