186d7f5d3SJohn Marino# $FreeBSD$ 286d7f5d3SJohn Marino 386d7f5d3SJohn Marino# Stress Test Suite Configuration 486d7f5d3SJohn Marino 586d7f5d3SJohn Marino# Default values 686d7f5d3SJohn Marinoexport RUNDIR=${RUNDIR:-/tmp/stressX} 786d7f5d3SJohn Marinoexport RUNTIME=${RUNTIME:-2m} 886d7f5d3SJohn Marinoexport VERBOSE=${VERBOSE:-1} 986d7f5d3SJohn Marinoexport LOAD=20 1086d7f5d3SJohn Marino 1186d7f5d3SJohn Marino# The INCARNATIONS variable should be set to match the number of CPUs and 1286d7f5d3SJohn Marino# the amount of RAM in the test box. 1386d7f5d3SJohn Marino# 10 for a 1,8 GHz Celeron with 256 Mb of RAM 1486d7f5d3SJohn Marino# 100 for a dual Xeon 1,8 GHz with 1024 Gb of RAM 1586d7f5d3SJohn Marino 1686d7f5d3SJohn Marinoexport INCARNATIONS=${INCARNATIONS:-20} 1786d7f5d3SJohn Marino 1886d7f5d3SJohn Marino# Change hostname! 1986d7f5d3SJohn Marino#export BLASTHOST=192.168.1.2 # host with udp disacard enabled in inetd.conf 2086d7f5d3SJohn Marinoexport BLASTHOST=192.168.1.3 # host with udp disacard enabled in inetd.conf 2186d7f5d3SJohn Marino 2286d7f5d3SJohn Marino 2386d7f5d3SJohn Marino# Run all test cases: 2486d7f5d3SJohn Marinoexport runRUNTIME=${runRUNTIME:-3d} # Run tests for three days 2586d7f5d3SJohn Marinoexport runINCARNATIONS=1 2686d7f5d3SJohn Marinoexport runLOAD=100 2786d7f5d3SJohn Marino 2886d7f5d3SJohn Marinoexport swapINCARNATIONS=$((2 * INCARNATIONS)) 2986d7f5d3SJohn Marinoexport swapLOAD=80 3086d7f5d3SJohn Marino 3186d7f5d3SJohn Marinoexport syscallKILL=1 3286d7f5d3SJohn Marino 3386d7f5d3SJohn Marinoexport rwLOAD=70 3486d7f5d3SJohn Marinoexport mkdirLOAD=80 3586d7f5d3SJohn Marinoexport creatLOAD=80 3686d7f5d3SJohn Marino 3786d7f5d3SJohn Marinoexport symlinkLOAD=20 3886d7f5d3SJohn Marino 3986d7f5d3SJohn Marinoexport tcpKILL=1 4086d7f5d3SJohn Marino#export shmKILL=1 4186d7f5d3SJohn Marinoexport shmINCARNATIONS=5 4286d7f5d3SJohn Marino 4386d7f5d3SJohn Marinoexport TESTPROGS=" 4486d7f5d3SJohn Marinotestcases/rw/rw 4586d7f5d3SJohn Marinotestcases/swap/swap 4686d7f5d3SJohn Marinotestcases/creat/creat 4786d7f5d3SJohn Marinotestcases/mkdir/mkdir 4886d7f5d3SJohn Marinotestcases/thr1/thr1 4986d7f5d3SJohn Marinotestcases/udp/udp 5086d7f5d3SJohn Marinotestcases/tcp/tcp 5186d7f5d3SJohn Marino" 5286d7f5d3SJohn Marino 5386d7f5d3SJohn Marino[ -r default.cfg ] && ulimit -t 200 # Do not run this for the misc sub directory 5486d7f5d3SJohn Marino 5586d7f5d3SJohn Marino# 5686d7f5d3SJohn Marino# Defaults for ./misc tests 5786d7f5d3SJohn Marino# 5886d7f5d3SJohn Marino 5986d7f5d3SJohn Marinodiskimage=/var/tmp/diskimage # Location of 1G disk image 6086d7f5d3SJohn Marinomntpoint=/mnt # Disk image mount point 6186d7f5d3SJohn Marinotestuser=pho # Name of non root test user 6286d7f5d3SJohn Marinomdstart=5 # Start of free md units 6386d7f5d3SJohn Marinopart=a # partitition to use on a md FS 6486d7f5d3SJohn Marino 6586d7f5d3SJohn Marino# Wrapper for dd 6686d7f5d3SJohn Marinodede () { # file, blocksize, count 6786d7f5d3SJohn Marino local log=/tmp/$0.$$ 6886d7f5d3SJohn Marino dd if=/dev/zero of=$1 bs=$2 count=$3 > $log 2>&1 6986d7f5d3SJohn Marino local status=$? 7086d7f5d3SJohn Marino egrep -v "records in|records out|bytes transferred" $log 7186d7f5d3SJohn Marino rm -f $log 7286d7f5d3SJohn Marino return $status 7386d7f5d3SJohn Marino} 7486d7f5d3SJohn Marino 7586d7f5d3SJohn Marino[ -f "./`hostname`" ] && . "./`hostname`" # source in local configuration 7686d7f5d3SJohn Marino[ -f "../`hostname`" ] && . "../`hostname`" # source in local configuration 77