blob: a07c8076a512647ae38cb839feec24e4d0ce398b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
##########################################################################
#This script will pass arguments to stress script based on the stress type
##########################################################################
#!/bin/bash
source host-config
stress_type=$1
timeout=10m
case $stress_type in
cpu) # processor
ARGS="--cpu=100"
;;
memory)
ARGS="--vm=100"
;;
io)
ARGS="--io 10 --hdd 100"
;;
*)
echo $"Usage: $0 {cpu|memory|io}"
exit 1
esac
#stress_isolcpus will hold range as a value i.e, eg :24-43
sh stress_scripts.sh -c ${stress_isolcpus} -t $timeout -a $ARGS
|