18404SAndrew.W.Wilson@sun.com# 28404SAndrew.W.Wilson@sun.com# CDDL HEADER START 38404SAndrew.W.Wilson@sun.com# 48404SAndrew.W.Wilson@sun.com# The contents of this file are subject to the terms of the 58404SAndrew.W.Wilson@sun.com# Common Development and Distribution License (the "License"). 68404SAndrew.W.Wilson@sun.com# You may not use this file except in compliance with the License. 78404SAndrew.W.Wilson@sun.com# 88404SAndrew.W.Wilson@sun.com# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 98404SAndrew.W.Wilson@sun.com# or http://www.opensolaris.org/os/licensing. 108404SAndrew.W.Wilson@sun.com# See the License for the specific language governing permissions 118404SAndrew.W.Wilson@sun.com# and limitations under the License. 128404SAndrew.W.Wilson@sun.com# 138404SAndrew.W.Wilson@sun.com# When distributing Covered Code, include this CDDL HEADER in each 148404SAndrew.W.Wilson@sun.com# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 158404SAndrew.W.Wilson@sun.com# If applicable, add the following below this CDDL HEADER, with the 168404SAndrew.W.Wilson@sun.com# fields enclosed by brackets "[]" replaced with your own identifying 178404SAndrew.W.Wilson@sun.com# information: Portions Copyright [yyyy] [name of copyright owner] 188404SAndrew.W.Wilson@sun.com# 198404SAndrew.W.Wilson@sun.com# CDDL HEADER END 208404SAndrew.W.Wilson@sun.com# 21*9801SAndrew.W.Wilson@sun.com# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 228404SAndrew.W.Wilson@sun.com# Use is subject to license terms. 238404SAndrew.W.Wilson@sun.com# 24*9801SAndrew.W.Wilson@sun.com# Exercises the indexed attribute of the fileset_pick() function. 258404SAndrew.W.Wilson@sun.com# 268404SAndrew.W.Wilson@sun.com 278404SAndrew.W.Wilson@sun.comset $dir=/tmp 288404SAndrew.W.Wilson@sun.comset $cached=false 298404SAndrew.W.Wilson@sun.comset $meandirwidth=20 308404SAndrew.W.Wilson@sun.comset $nthreads=5 31*9801SAndrew.W.Wilson@sun.comset $nfiles=10000 328404SAndrew.W.Wilson@sun.comset $sync=false 338404SAndrew.W.Wilson@sun.com 348404SAndrew.W.Wilson@sun.comdefine randvar name=$wrtiosize, min=512, round=512, type=gamma, mean=16k 358404SAndrew.W.Wilson@sun.com 368404SAndrew.W.Wilson@sun.comdefine randvar name=$rdiosize, type=tabular, min=8k, round=1k, randtable = 378404SAndrew.W.Wilson@sun.com{{85, 8k, 8k}, 388404SAndrew.W.Wilson@sun.com {15, 8k, 64k} 398404SAndrew.W.Wilson@sun.com} 408404SAndrew.W.Wilson@sun.com 418404SAndrew.W.Wilson@sun.comdefine randvar name=$filesize, type=tabular, min=1k, randtable = 428404SAndrew.W.Wilson@sun.com{{33, 1k, 1k}, 438404SAndrew.W.Wilson@sun.com {21, 1k, 3k}, 448404SAndrew.W.Wilson@sun.com {13, 3k, 5k}, 458404SAndrew.W.Wilson@sun.com {10, 5k, 11k}, 468404SAndrew.W.Wilson@sun.com {08, 11k, 21k}, 478404SAndrew.W.Wilson@sun.com {05, 21k, 43k}, 488404SAndrew.W.Wilson@sun.com {04, 43k, 85k}, 498404SAndrew.W.Wilson@sun.com {03, 85k, 171k}, 508404SAndrew.W.Wilson@sun.com {02, 171k, 341k}, 518404SAndrew.W.Wilson@sun.com {01, 341k, 1707k} 528404SAndrew.W.Wilson@sun.com} 538404SAndrew.W.Wilson@sun.com 548404SAndrew.W.Wilson@sun.comdefine randvar name=$fileidx, type=gamma, min=0, gamma=100 558404SAndrew.W.Wilson@sun.com 56*9801SAndrew.W.Wilson@sun.comdefine fileset name=bigfileset,path=$dir,size=$filesize,entries=$nfiles,dirwidth=$meandirwidth,prealloc=100,cached=$cached 578404SAndrew.W.Wilson@sun.com 588404SAndrew.W.Wilson@sun.comdefine process name=netclient,instances=1 598404SAndrew.W.Wilson@sun.com{ 608404SAndrew.W.Wilson@sun.com thread name=fileuser,memsize=10m,instances=$nthreads 618404SAndrew.W.Wilson@sun.com { 628404SAndrew.W.Wilson@sun.com flowop openfile name=openfile1,filesetname=bigfileset,indexed=$fileidx,fd=1 638404SAndrew.W.Wilson@sun.com flowop openfile name=openfile2,filesetname=bigfileset,indexed=$fileidx,fd=2 648404SAndrew.W.Wilson@sun.com flowop openfile name=openfile3,filesetname=bigfileset,indexed=$fileidx,fd=3 658404SAndrew.W.Wilson@sun.com flowop appendfilerand name=appendfilerand1,iosize=$wrtiosize,fd=1 668404SAndrew.W.Wilson@sun.com flowop closefile name=closefile1,fd=1 678404SAndrew.W.Wilson@sun.com flowop readwholefile name=readfile1,iosize=$rdiosize,fd=2 688404SAndrew.W.Wilson@sun.com flowop readwholefile name=readfile2,iosize=$rdiosize,fd=3 698404SAndrew.W.Wilson@sun.com flowop closefile name=closefile2,fd=2 708404SAndrew.W.Wilson@sun.com flowop closefile name=closefile3,fd=3 718404SAndrew.W.Wilson@sun.com } 728404SAndrew.W.Wilson@sun.com} 738404SAndrew.W.Wilson@sun.com 74*9801SAndrew.W.Wilson@sun.comecho "NetworkServer Version 1.1 personality successfully loaded" 758404SAndrew.W.Wilson@sun.comusage "Usage: set \$dir=<dir> defaults to $dir" 768404SAndrew.W.Wilson@sun.comusage " set \$cached=<bool> defaults to $cached" 778404SAndrew.W.Wilson@sun.comusage " set \$wrtiosize.type=<type> defaults to $wrtiosize.type" 788404SAndrew.W.Wilson@sun.comusage " set \$wrtiosize.randsrc=<src> defaults to $wrtiosize.randsrc" 798404SAndrew.W.Wilson@sun.comusage " set \$wrtiosize.mean=<mean> defaults to $wrtiosize.mean" 808404SAndrew.W.Wilson@sun.comusage " set \$wrtiosize.gamma=<gamma> defaults to $wrtiosize.gamma" 818404SAndrew.W.Wilson@sun.comusage " set \$rdiosize.type=<type> defaults to $rdiosize.type" 828404SAndrew.W.Wilson@sun.comusage " set \$rdiosize.randsrc=<src> defaults to $rdiosize.randsrc" 838404SAndrew.W.Wilson@sun.comusage " set \$filesize.type=<type> defaults to $filesize.type" 848404SAndrew.W.Wilson@sun.comusage " set \$filesize.randsrc=<src> defaults to $filesize.randsrc" 858404SAndrew.W.Wilson@sun.comusage " set \$nfiles=<value> defaults to $nfiles" 868404SAndrew.W.Wilson@sun.comusage " set \$nthreads=<value> defaults to $nthreads" 878404SAndrew.W.Wilson@sun.comusage " set \$sync=<bool> defaults to $sync" 888404SAndrew.W.Wilson@sun.comusage " " 898404SAndrew.W.Wilson@sun.comusage " run runtime (e.g. run 60)" 90