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

ts="$(date +%Y%m%d)"

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/${ts}-stress-c${NCORES}.txt"

cleanexit

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