summaryrefslogtreecommitdiff
path: root/Microbenchmarks/CPU-DPU/run-transfer-rank-stress.sh
blob: b18c8765e424646181079c59d1b82e6b8049343a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

mkdir -p "$(hostname)-transfer"

NCORES=$(grep -c '^processor' /proc/cpuinfo)
cleanexit() {
	pkill -f "stress -c ${NCORES}"
}

trap cleanexit TERM INT

stress -c ${NCORES} &

./run-transfer-rank.sh | tee "$(hostname)-transfer/rank-stress-c${NCORES}.txt"

cleanexit

xz -f -v -9 -M 800M "$(hostname)-transfer/rank-stress-c${NCORES}.txt"