15184Sek110237# 25184Sek110237# CDDL HEADER START 35184Sek110237# 45184Sek110237# The contents of this file are subject to the terms of the 55184Sek110237# Common Development and Distribution License (the "License"). 65184Sek110237# You may not use this file except in compliance with the License. 75184Sek110237# 85184Sek110237# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 95184Sek110237# or http://www.opensolaris.org/os/licensing. 105184Sek110237# See the License for the specific language governing permissions 115184Sek110237# and limitations under the License. 125184Sek110237# 135184Sek110237# When distributing Covered Code, include this CDDL HEADER in each 145184Sek110237# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 155184Sek110237# If applicable, add the following below this CDDL HEADER, with the 165184Sek110237# fields enclosed by brackets "[]" replaced with your own identifying 175184Sek110237# information: Portions Copyright [yyyy] [name of copyright owner] 185184Sek110237# 195184Sek110237# CDDL HEADER END 205184Sek110237# 215184Sek110237# 225184Sek110237# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 235184Sek110237# Use is subject to license terms. 245184Sek110237# 255184Sek110237# ident "%Z%%M% %I% %E% SMI" 265184Sek110237 275184Sek110237set $dir=/tmp 285184Sek110237set $nfiles=1000 295184Sek110237set $dirwidth=20 305184Sek110237set $filesize=16k 315184Sek110237set $nthreads=100 32*5673Saw148015set $iosize=1m 335184Sek110237 345184Sek110237define fileset name=bigfileset,path=$dir,size=$filesize,entries=$nfiles,dirwidth=$dirwidth,prealloc=100 355184Sek110237define fileset name=logfiles,path=$dir,size=$filesize,entries=1,dirwidth=$dirwidth,prealloc 365184Sek110237 375184Sek110237define process name=filereader,instances=1 385184Sek110237{ 395184Sek110237 thread name=filereaderthread,memsize=10m,instances=$nthreads 405184Sek110237 { 415184Sek110237 flowop openfile name=openfile1,filesetname=bigfileset,fd=1 42*5673Saw148015 flowop readwholefile name=readfile1,fd=1,iosize=$iosize 435184Sek110237 flowop closefile name=closefile1,fd=1 445184Sek110237 flowop openfile name=openfile2,filesetname=bigfileset,fd=1 45*5673Saw148015 flowop readwholefile name=readfile2,fd=1,iosize=$iosize 465184Sek110237 flowop closefile name=closefile2,fd=1 475184Sek110237 flowop openfile name=openfile3,filesetname=bigfileset,fd=1 48*5673Saw148015 flowop readwholefile name=readfile3,fd=1,iosize=$iosize 495184Sek110237 flowop closefile name=closefile3,fd=1 505184Sek110237 flowop openfile name=openfile4,filesetname=bigfileset,fd=1 51*5673Saw148015 flowop readwholefile name=readfile4,fd=1,iosize=$iosize 525184Sek110237 flowop closefile name=closefile4,fd=1 535184Sek110237 flowop openfile name=openfile5,filesetname=bigfileset,fd=1 54*5673Saw148015 flowop readwholefile name=readfile5,fd=1,iosize=$iosize 555184Sek110237 flowop closefile name=closefile5,fd=1 565184Sek110237 flowop openfile name=openfile6,filesetname=bigfileset,fd=1 57*5673Saw148015 flowop readwholefile name=readfile6,fd=1,iosize=$iosize 585184Sek110237 flowop closefile name=closefile6,fd=1 595184Sek110237 flowop openfile name=openfile7,filesetname=bigfileset,fd=1 60*5673Saw148015 flowop readwholefile name=readfile7,fd=1,iosize=$iosize 615184Sek110237 flowop closefile name=closefile7,fd=1 625184Sek110237 flowop openfile name=openfile8,filesetname=bigfileset,fd=1 63*5673Saw148015 flowop readwholefile name=readfile8,fd=1,iosize=$iosize 645184Sek110237 flowop closefile name=closefile8,fd=1 655184Sek110237 flowop openfile name=openfile9,filesetname=bigfileset,fd=1 66*5673Saw148015 flowop readwholefile name=readfile9,fd=1,iosize=$iosize 675184Sek110237 flowop closefile name=closefile9,fd=1 685184Sek110237 flowop openfile name=openfile10,filesetname=bigfileset,fd=1 69*5673Saw148015 flowop readwholefile name=readfile10,fd=1,iosize=$iosize 705184Sek110237 flowop closefile name=closefile10,fd=1 715184Sek110237 flowop appendfilerand name=appendlog,filesetname=logfiles,iosize=16k,fd=2 725184Sek110237 } 735184Sek110237} 745184Sek110237 75*5673Saw148015echo "Webserver Version 2.1 personality successfully loaded" 765184Sek110237usage "Usage: set \$dir=<dir>" 775184Sek110237usage " set \$filesize=<size> defaults to $filesize" 785184Sek110237usage " set \$nfiles=<value> defaults to $nfiles" 795184Sek110237usage " set \$dirwidth=<value> defaults to $dirwidth" 805184Sek110237usage " set \$nthreads=<value> defaults to $nthreads" 81*5673Saw148015usage " set \$iosize=<size> defaults to $iosize" 825184Sek110237usage " run runtime (e.g. run 60)" 83