stress revision 7c478bd95313f5f23a4c958a745db2134aa03244
1e1539a1e7d64b1af92636b81aac5aa50ee3163bminfrin# CDDL HEADER START
179565be4043d7e5f9161aa75271fa0a001866d9covener# The contents of this file are subject to the terms of the
179565be4043d7e5f9161aa75271fa0a001866d9covener# Common Development and Distribution License, Version 1.0 only
111436a32ba1254291e4883292fb116d15fe8f64covener# (the "License"). You may not use this file except in compliance
cc06c8e7a7e785b46083984731b701d0c5447c72covener# with the License.
cc06c8e7a7e785b46083984731b701d0c5447c72covener# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
111436a32ba1254291e4883292fb116d15fe8f64covener# See the License for the specific language governing permissions
111436a32ba1254291e4883292fb116d15fe8f64covener# and limitations under the License.
fce4949fb0b309a5744afcd503c6ed2d35621ee2covener# When distributing Covered Code, include this CDDL HEADER in each
fce4949fb0b309a5744afcd503c6ed2d35621ee2covener# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fce4949fb0b309a5744afcd503c6ed2d35621ee2covener# If applicable, add the following below this CDDL HEADER, with the
7b7430e701e9a31ce809da7c220bb8dfcf68c86etrawick# fields enclosed by brackets "[]" replaced with your own identifying
7b7430e701e9a31ce809da7c220bb8dfcf68c86etrawick# information: Portions Copyright [yyyy] [name of copyright owner]
ccc20788c1e5fc973f36df634399c89acb70deaejerenkrantz# CDDL HEADER END
a370a774825bc89fc6b0d8e45035a590e39b0bd6minfrin# ident "%Z%%M% %I% %E% SMI"
60998c490ad3334eb07ae63b23b479ac564dec94kbrand# Copyright (c) 1992 by Sun Microsystems, Inc.
60998c490ad3334eb07ae63b23b479ac564dec94kbrand# Volume management stress test
1e1539a1e7d64b1af92636b81aac5aa50ee3163bminfrin# Have 50 processes concurrently read and write 10Mbytes
273e512f20f262e5e2aa8e0e83371d1929fb76adjkaluza# on 25 test units.
81849cd8925f6ffaf57412aaaac8a6df0d33cbb6covener# Insert/eject 1,000 times on 25 units, and every 10 iterations,
c8e4ae58e7b9eb27e5158d6980770d5064c50ba7trawick# we remove all the volumes.
c8e4ae58e7b9eb27e5158d6980770d5064c50ba7trawickwhile ($i < 500)
fe83f60b41477b14a37edcfcd1f7f5c5a1ebfe44minfrin while ($j < 2)
fe83f60b41477b14a37edcfcd1f7f5c5a1ebfe44minfrin echo inserting i=$i j=$j
7f6bfe455bd605a6401d2fcc9423972a24266b16jim echo ejecting i=$i j=$j
7f6bfe455bd605a6401d2fcc9423972a24266b16jim @ j = $j + 1
993d1261a278d7322bccef219101220b7b4fb8c5jkaluza foreach n (/vol/rdsk/unit*)
3b995de5609b15115a0764e6979ba43071a2988fjim echo removing i=$i j=$j
ba050a6f942b9fa0e81ed73437588005c569655ccovener @ i = $i + 1