summaryrefslogtreecommitdiff
path: root/Microbenchmarks/CPU-DPU/run-alloc.sh
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2023-12-11 12:11:49 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2023-12-11 12:11:49 +0100
commitf1fbecc7a02aafdba953479f5c91f09c4a195484 (patch)
tree54d53ec76fbac13365c8e9b4ca31360521133c32 /Microbenchmarks/CPU-DPU/run-alloc.sh
parent7effe7d6ea085bd9bc80c60589e5f9cbe2471249 (diff)
CPU-DPU run scrips: kill stress and mpstat
Diffstat (limited to 'Microbenchmarks/CPU-DPU/run-alloc.sh')
-rwxr-xr-xMicrobenchmarks/CPU-DPU/run-alloc.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/Microbenchmarks/CPU-DPU/run-alloc.sh b/Microbenchmarks/CPU-DPU/run-alloc.sh
index 9c553b1..3ffd59e 100755
--- a/Microbenchmarks/CPU-DPU/run-alloc.sh
+++ b/Microbenchmarks/CPU-DPU/run-alloc.sh
@@ -2,7 +2,12 @@
NCORES=$(grep -c '^processor' /proc/cpuinfo)
-trap "pkill -f 'stress -c ${NCORES}'" INT
+cleanexit() {
+ pkill -f "stress -c ${NCORES}"
+ pkill -f mpstat
+}
+
+trap cleanexit TERM INT
set -e