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 2009 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26
27 #
28 # Stress assertions
29 #
30
31
32 st_0001:
33 -------
34 a test user open()s and write()s a file (size defined
35 as a parameter) then read()s it back to verify content
36 and delete it.
37
38 st_0001 -T 10 -Q 30 -I 10 -u 0.1 -f ${MNTDIR}/$$.st_0001 -d 1
39
40
41 st_0002:
42 -------
43 Open a large number of files. Writes some bytes (with size
44 defined as an option), closes the files, waits some time and
45 reopens the files checks their content and deletes them.
46 Optionally, write locks and spawns a child that attempts
47 to access file.
48
49 st_0002 -u 0.1 -b ${MNTDIR} -n 128 -W 12 -d 1
50
51
52 st_0003:
53 -------
54 a) Open a large enumber of files. Acquire a write lock then
55 fork a child that hammers to get a write lock, in the
56 meantime parent sleeps, wakes up releases the initial
57 write lock and waits for the child to exit.
58
59 st_0003 -S 1 -b ${MNTDIR} -n 128 -W 30 -d 1
60
61
62 st_0003:
63 -------
64 b) Open a large number of files read donly, close and open write
65 only, close and then open read only finally close and
66 unlink.
67
68 st_0003 -S 2 -b ${MNTDIR} -n 512 -d 1
69
70
71 st_0003:
72 -------
73 c) Open a large number of files, acquire write lock then unlink
74 file _without_ a close.
75
76 st_0003 -S 4 -b ${MNTDIR} -n 512 -d 1
77
78 st_0003:
79 -------
80 d) Open a large number of files read/write, read_lock the entire
81 file, write_lock the first and last 1024 bytes, release the
82 1st read_lock, get a write_lock on thte rest of the file
83 (middle bit) unlock everythihng and delete file.
84
85 st_0003 -S 3 -b ${NFStestDir} -n 512 -d 1
86
87 NOTE: Solaris doesn't support the negative seek with fcntl(2) for NFS;
88 so this assertion is now commented out.
89
90
91 st_0004:
92 -------
93 Spawn N processes, each process traverses a directory tree
94 and stats each file.
95
96
97 st_0005:
98 -------
99 sit in a loop mounting, readdir and unmounting a file system
100