summaryrefslogtreecommitdiff
path: root/Microbenchmarks/CPU-DPU/run-transfer-rank-stress.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Microbenchmarks/CPU-DPU/run-transfer-rank-stress.sh')
-rwxr-xr-xMicrobenchmarks/CPU-DPU/run-transfer-rank-stress.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/Microbenchmarks/CPU-DPU/run-transfer-rank-stress.sh b/Microbenchmarks/CPU-DPU/run-transfer-rank-stress.sh
new file mode 100755
index 0000000..e2f4020
--- /dev/null
+++ b/Microbenchmarks/CPU-DPU/run-transfer-rank-stress.sh
@@ -0,0 +1,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 -v -9 -M 800M "$(hostname)-transfer/rank-stress-c${NCORES}.txt"