ddn-ime-evaluation/benchmark/ior_wrapper.sh

25 lines
451 B
Bash
Raw Normal View History

2018-11-13 11:36:15 +00:00
#!/bin/bash
. ./config.sh
IOR_PARAMS=$1
2018-11-13 14:48:24 +00:00
NETOUTDIR=$2
2018-11-13 11:36:15 +00:00
HOST="$hostname"
PID=$$
2018-11-14 11:27:24 +00:00
NETOUTFILE="$NETOUTDIR/HOST:$HOST-PID:$PID-LABEL:"
2018-11-13 11:36:15 +00:00
function capture_network_state {
echo "TIMESTAMP $(date +%s)"
perfquery -x
cat /proc/net/dev
2018-11-13 14:48:24 +00:00
free -m
cat /proc/fs/lustre/llite/esfs-*/max_cached_mb
2018-11-13 11:36:15 +00:00
}
2018-11-14 11:27:24 +00:00
echo "$( capture_network_state )" &> "${NETOUTFILE}start.txt"
2018-11-13 11:36:15 +00:00
$IOR $IOR_PARAMS
2018-11-14 11:27:24 +00:00
echo "$( capture_network_state )" &> "${NETOUTFILE}stop.txt"
exit 0