stress revision 18c2aff776a775d34a4c9893a4c72e0434d68e36
98N/A#!/bin/csh
98N/A#
287N/A# CDDL HEADER START
98N/A#
98N/A# The contents of this file are subject to the terms of the
98N/A# Common Development and Distribution License, Version 1.0 only
98N/A# (the "License"). You may not use this file except in compliance
98N/A# with the License.
98N/A#
98N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
98N/A# or http://www.opensolaris.org/os/licensing.
98N/A# See the License for the specific language governing permissions
98N/A# and limitations under the License.
98N/A#
98N/A# When distributing Covered Code, include this CDDL HEADER in each
98N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
98N/A# If applicable, add the following below this CDDL HEADER, with the
98N/A# fields enclosed by brackets "[]" replaced with your own identifying
98N/A# information: Portions Copyright [yyyy] [name of copyright owner]
98N/A#
98N/A# CDDL HEADER END
98N/A#
98N/A
98N/A# ident "%Z%%M% %I% %E% SMI"
98N/A
98N/A#
98N/A# Copyright (c) 1992 by Sun Microsystems, Inc.
98N/A#
98N/A
98N/A#
341N/A# Volume management stress test
98N/A#
98N/A
98N/Aset path=($path .)
98N/A
98N/A#
98N/A# Have 50 processes concurrently read and write 10Mbytes
98N/A# on 25 test units.
98N/Aecho big read/write
98N/A/bin/time vttest -n 25 -r -w -b 10240
341N/Aecho ejecting
325N/Aeject /vol/rdsk/unit*
325N/A#
98N/A# Insert/eject 1,000 times on 25 units, and every 10 iterations,
278N/A# we remove all the volumes.
98N/A#
98N/A@ i = 0
98N/Awhile ($i < 500)
151N/A @ j = 0
137N/A while ($j < 2)
153N/A echo inserting i=$i j=$j
210N/A /bin/time vttest -n 25 -r -w -b 1
98N/A echo ejecting i=$i j=$j
179N/A eject /vol/rdsk/unit*
269N/A @ j = $j + 1
126N/A end
98N/A echo renaming
98N/A foreach n (/vol/rdsk/unit*)
98N/A mv $n /vol/rdsk/foo_`basename $n`
287N/A end
123N/A echo removing i=$i j=$j
98N/A rm /vol/rdsk/foo*
98N/A @ i = $i + 1
98N/Aend
98N/A
98N/A