Commit | Line | Data |
---|---|---|
1365b5f1 SW |
1 | # $FreeBSD$ |
2 | ||
3 | # Stress Test Suite Configuration | |
4 | ||
5 | # Default values | |
6 | export RUNDIR=${RUNDIR:-/tmp/stressX} | |
7 | export RUNTIME=${RUNTIME:-2m} | |
8 | export VERBOSE=${VERBOSE:-1} | |
9 | export 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 | ||
16 | export INCARNATIONS=${INCARNATIONS:-20} | |
17 | ||
18 | # Change hostname! | |
19 | #export BLASTHOST=192.168.1.2 # host with udp disacard enabled in inetd.conf | |
20 | export BLASTHOST=192.168.1.3 # host with udp disacard enabled in inetd.conf | |
21 | ||
22 | ||
23 | # Run all test cases: | |
24 | export runRUNTIME=${runRUNTIME:-3d} # Run tests for three days | |
25 | export runINCARNATIONS=1 | |
26 | export runLOAD=100 | |
27 | ||
28 | export swapINCARNATIONS=$((2 * INCARNATIONS)) | |
29 | export swapLOAD=80 | |
30 | ||
31 | export syscallKILL=1 | |
32 | ||
33 | export rwLOAD=70 | |
34 | export mkdirLOAD=80 | |
35 | export creatLOAD=80 | |
36 | ||
37 | export symlinkLOAD=20 | |
38 | ||
39 | export tcpKILL=1 | |
40 | #export shmKILL=1 | |
41 | export shmINCARNATIONS=5 | |
42 | ||
43 | export TESTPROGS=" | |
44 | testcases/rw/rw | |
45 | testcases/swap/swap | |
46 | testcases/creat/creat | |
47 | testcases/mkdir/mkdir | |
48 | testcases/thr1/thr1 | |
49 | testcases/udp/udp | |
50 | testcases/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 | ||
59 | diskimage=/var/tmp/diskimage # Location of 1G disk image | |
60 | mntpoint=/mnt # Disk image mount point | |
61 | testuser=pho # Name of non root test user | |
62 | mdstart=5 # Start of free md units | |
63 | part=a # partitition to use on a md FS | |
64 | ||
65 | # Wrapper for dd | |
66 | dede () { # 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 |