summaryrefslogtreecommitdiff
path: root/Microbenchmarks/CPU-DPU/run-alloc-rank-stress.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Microbenchmarks/CPU-DPU/run-alloc-rank-stress.sh')
-rwxr-xr-xMicrobenchmarks/CPU-DPU/run-alloc-rank-stress.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/Microbenchmarks/CPU-DPU/run-alloc-rank-stress.sh b/Microbenchmarks/CPU-DPU/run-alloc-rank-stress.sh
index da136c0..e166a4e 100755
--- a/Microbenchmarks/CPU-DPU/run-alloc-rank-stress.sh
+++ b/Microbenchmarks/CPU-DPU/run-alloc-rank-stress.sh
@@ -5,6 +5,8 @@ mkdir -p "$(hostname)-alloc"
NCORES=$(grep -c '^processor' /proc/cpuinfo)
cleanexit() {
pkill -f "stress -c ${NCORES}"
+ xz -f -v -9 -M 800M "$(hostname)-alloc/rank-stress-c${NCORES}.txt"
+ exit 0
}
trap cleanexit TERM INT
@@ -14,5 +16,3 @@ stress -c ${NCORES} &
./run-alloc-rank.sh | tee "$(hostname)-alloc/rank-stress-c${NCORES}.txt"
cleanexit
-
-xz -f -v -9 -M 800M "$(hostname)-alloc/rank-stress-c${NCORES}.txt"