stress revision 7c478bd95313f5f23a4c958a745db2134aa03244
a34684a59b60a4173c25035d0c627ef17e6dc215rpluem# CDDL HEADER START
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic# The contents of this file are subject to the terms of the
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic# Common Development and Distribution License, Version 1.0 only
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic# (the "License"). You may not use this file except in compliance
4da61833a1cbbca94094f9653fd970582b97a72etrawick# with the License.
4da61833a1cbbca94094f9653fd970582b97a72etrawick# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4da61833a1cbbca94094f9653fd970582b97a72etrawick# See the License for the specific language governing permissions
4789804be088bcd86ae637a29cdb7fda25169521jailletc# and limitations under the License.
4789804be088bcd86ae637a29cdb7fda25169521jailletc# When distributing Covered Code, include this CDDL HEADER in each
4789804be088bcd86ae637a29cdb7fda25169521jailletc# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e50c3026198fd496f183cda4c32a202925476778covener# If applicable, add the following below this CDDL HEADER, with the
e50c3026198fd496f183cda4c32a202925476778covener# fields enclosed by brackets "[]" replaced with your own identifying
e50c3026198fd496f183cda4c32a202925476778covener# information: Portions Copyright [yyyy] [name of copyright owner]
5b88c8507d5ef6d0c4cfbc78230294968175b638minfrin# CDDL HEADER END
6c3b9cebb551140fbb25d58bae08b539b3802133ylavic# ident "%Z%%M% %I% %E% SMI"
0a0df13b7f1f4f1a74fe295253d89ca3911b301aylavic# Copyright (c) 1992 by Sun Microsystems, Inc.
69301145375a889e7e37caf7cc7321ac0f91801erpluem# Volume management stress test
506bfe33206b2fece40ef25f695af39dd4130facjkaluza# Have 50 processes concurrently read and write 10Mbytes
d58a848a016d401b965111e50ef829e1641f7834minfrin# on 25 test units.
17e6c95f3b22d18acdf8380fb26a8d0e10c80767ylavic# Insert/eject 1,000 times on 25 units, and every 10 iterations,
17e6c95f3b22d18acdf8380fb26a8d0e10c80767ylavic# we remove all the volumes.
17e6c95f3b22d18acdf8380fb26a8d0e10c80767ylavicwhile ($i < 500)
e8bd80a4bb88199d2f9a24a50345688e52d9c116ylavic while ($j < 2)
e8bd80a4bb88199d2f9a24a50345688e52d9c116ylavic echo inserting i=$i j=$j
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavic echo ejecting i=$i j=$j
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavic @ j = $j + 1
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavic foreach n (/vol/rdsk/unit*)
d7205b1a86c51c27b71a2c458dc453fd53a261c1covener echo removing i=$i j=$j
d7205b1a86c51c27b71a2c458dc453fd53a261c1covener @ i = $i + 1