forked from HEPCompSim/DCSim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_benchmark.sh
executable file
·34 lines (28 loc) · 1.16 KB
/
run_benchmark.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
if [ ! $# -eq 4 ]; then
echo "Usage: ${0} <# of jobs> <# of files per job> <xrootd block size> <buffer size>"
exit 1
fi
NJOBS="${1}"
NINFILES="${2}"
XRDBLOCKSIZE="${3}"
BUFFERSIZE="${4}"
AVGINSIZE=$(bc -l <<< "8554379000/20")
SIGMAINSIZE=$(bc -l <<< "10000")
FLOPS=$(bc -l <<< "1.95*1480*1000*1000*1000")
SIGMAFLOPS=10000000
MEM=2400
OUTSIZE=$(bc -l <<< "50000000")
SIGMAOUTSIZE=$(bc -l <<< "1000000")
DUPLICATIONS=1
HITRATE=0.05
PLATFORM="../data/platform-files/ETPbatch_faster"
LD_PRELOAD=/usr/local/lib/libprofiler.so CPUPROFILE=prof_${NJOBS}_${XRDBLOCKSIZE}_${BUFFERSIZE}.out ./dc-sim --platform ${PLATFORM}.xml \
--njobs ${NJOBS} --ninfiles ${NINFILES} --insize ${AVGINSIZE} --sigma-insize ${SIGMAINSIZE} \
--flops ${FLOPS} --sigma-flops ${SIGMAFLOPS} --mem ${MEM} \
--outsize ${OUTSIZE} --sigma-outsize ${SIGMAOUTSIZE} \
--duplications ${DUPLICATIONS} \
--hitrate 0.0 \
--storage-buffer-size ${BUFFERSIZE} \
--xrd-blocksize ${XRDBLOCKSIZE} \
--output-file ${PLATFORM}${NJOBS}.csv
pprof --text `pwd`/dc-sim prof_${NJOBS}_${XRDBLOCKSIZE}_${BUFFERSIZE}.out > prof_${NJOBS}_${XRDBLOCKSIZE}_${BUFFERSIZE}.txt