blob: e166a4ea10b663586b24b0f26939eee9a9ec9030 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/sh
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
stress -c ${NCORES} &
./run-alloc-rank.sh | tee "$(hostname)-alloc/rank-stress-c${NCORES}.txt"
cleanexit
|