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=$$
|
|
|
|
|
|
|
|
NETOUTFILE="$NETOUTDIR/HOST:$HOST#PID:$PID.txt"
|
|
|
|
|
|
|
|
function capture_network_state {
|
|
|
|
label=$1
|
|
|
|
echo "LABEL $label"
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
echo "" > $NETOUTFILE
|
|
|
|
echo "$( capture_network_state "START" )" &>> $NETOUTFILE
|
|
|
|
$IOR $IOR_PARAMS
|
|
|
|
echo "$( capture_network_state "STOP" )" &>> $NETOUTFILE
|