diff options
Diffstat (limited to 'Microbenchmarks/CPU-DPU/run-alloc-rank-stress.sh')
-rwxr-xr-x | Microbenchmarks/CPU-DPU/run-alloc-rank-stress.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Microbenchmarks/CPU-DPU/run-alloc-rank-stress.sh b/Microbenchmarks/CPU-DPU/run-alloc-rank-stress.sh new file mode 100755 index 0000000..cf90174 --- /dev/null +++ b/Microbenchmarks/CPU-DPU/run-alloc-rank-stress.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +mkdir -p "$(hostname)-alloc" + +NCORES=$(grep -c '^processor' /proc/cpuinfo) +cleanexit() { + pkill -f "stress -c ${NCORES}" +} + +trap cleanexit TERM INT + +stress -c ${NCORES} & + +./run-alloc-rank.sh | tee "$(hostname)-alloc/rank-stress-c${NCORES}.txt" + +cleanexit + +xz -v -9 -M 800M "$(hostname)-alloc/rank-stress-c${NCORES}.txt" |