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