From f1fbecc7a02aafdba953479f5c91f09c4a195484 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Mon, 11 Dec 2023 12:11:49 +0100 Subject: CPU-DPU run scrips: kill stress and mpstat --- Microbenchmarks/CPU-DPU/run-alloc.sh | 7 ++++++- Microbenchmarks/CPU-DPU/run-transfer.sh | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'Microbenchmarks') 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 diff --git a/Microbenchmarks/CPU-DPU/run-transfer.sh b/Microbenchmarks/CPU-DPU/run-transfer.sh index f835f0c..e247105 100755 --- a/Microbenchmarks/CPU-DPU/run-transfer.sh +++ b/Microbenchmarks/CPU-DPU/run-transfer.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 -- cgit v1.2.3