Bring in FreeBSD's stress2 stress testing suite.
[dragonfly.git] / test / stress / stress2 / default.cfg
CommitLineData
1365b5f1
SW
1# $FreeBSD$
2
3# Stress Test Suite Configuration
4
5# Default values
6export RUNDIR=${RUNDIR:-/tmp/stressX}
7export RUNTIME=${RUNTIME:-2m}
8export VERBOSE=${VERBOSE:-1}
9export LOAD=20
10
11# The INCARNATIONS variable should be set to match the number of CPUs and
12# the amount of RAM in the test box.
13# 10 for a 1,8 GHz Celeron with 256 Mb of RAM
14# 100 for a dual Xeon 1,8 GHz with 1024 Gb of RAM
15
16export INCARNATIONS=${INCARNATIONS:-20}
17
18# Change hostname!
19#export BLASTHOST=192.168.1.2 # host with udp disacard enabled in inetd.conf
20export BLASTHOST=192.168.1.3 # host with udp disacard enabled in inetd.conf
21
22
23# Run all test cases:
24export runRUNTIME=${runRUNTIME:-3d} # Run tests for three days
25export runINCARNATIONS=1
26export runLOAD=100
27
28export swapINCARNATIONS=$((2 * INCARNATIONS))
29export swapLOAD=80
30
31export syscallKILL=1
32
33export rwLOAD=70
34export mkdirLOAD=80
35export creatLOAD=80
36
37export symlinkLOAD=20
38
39export tcpKILL=1
40#export shmKILL=1
41export shmINCARNATIONS=5
42
43export TESTPROGS="
44testcases/rw/rw
45testcases/swap/swap
46testcases/creat/creat
47testcases/mkdir/mkdir
48testcases/thr1/thr1
49testcases/udp/udp
50testcases/tcp/tcp
51"
52
53[ -r default.cfg ] && ulimit -t 200 # Do not run this for the misc sub directory
54
55#
56# Defaults for ./misc tests
57#
58
59diskimage=/var/tmp/diskimage # Location of 1G disk image
60mntpoint=/mnt # Disk image mount point
61testuser=pho # Name of non root test user
62mdstart=5 # Start of free md units
63part=a # partitition to use on a md FS
64
65# Wrapper for dd
66dede () { # file, blocksize, count
67 local log=/tmp/$0.$$
68 dd if=/dev/zero of=$1 bs=$2 count=$3 > $log 2>&1
69 local status=$?
70 egrep -v "records in|records out|bytes transferred" $log
71 rm -f $log
72 return $status
73}
74
75[ -f "./`hostname`" ] && . "./`hostname`" # source in local configuration
76[ -f "../`hostname`" ] && . "../`hostname`" # source in local configuration