1 #
2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26
27 export MAX_BLOCKSIZE=$((128 * 1024))
28 export TOTAL_COUNT=5
29 export COUNT=10000
30
31 # To avoid hitting the timeout, the value of STRESS_TIMEOUT must be lower than
32 # the one set in the runfile. Currently 30 mins.
33 export STRESS_TIMEOUT=1800
34
35 typeset -i NUMBER_OF_DISKS=0
36 for i in $DISKS; do
37 (( NUMBER_OF_DISKS = NUMBER_OF_DISKS + 1 ))
38 done
39
40
41 # 1 Pool per GB of memory
42 MEMORY=`prtconf | grep Memory | nawk '{ print $3 }'`
43 MAXPOOLS=$(( (MEMORY / 1024) + 1 ))
44
45 echo "MAXPOOLS=$MAXPOOLS"
46 echo "NUMBER_OF_DISKS=$NUMBER_OF_DISKS"
47
48 # Number of Mirrors = MIN(NUMBER_OF_DISKS, MAXPOOLS)
49 NUMBER_OF_MIRRORS=$(( NUMBER_OF_DISKS / 2 ))
50 if (( MAXPOOLS < NUMBER_OF_MIRRORS )); then
51 NUMBER_OF_MIRRORS=$MAXPOOLS
52 fi
53
54 # Assume 10 Processes per 1gb of memory
55 NUM_CREATORS=10
56
57 echo "NUMBER_OF_MIRRORS=$NUMBER_OF_MIRRORS"
58 echo "NUM_CREATORS=$NUM_CREATORS"
59
60 export NUMBER_OF_MIRRORS
61 export NUMBER_OF_DISKS
62 export NUM_CREATORS