3 # Copyright (c) 2003-2004 Silicon Graphics, Inc. All Rights Reserved.
8 Measure scaling of multiple cpus readin the same set of files.
10 Usage: $0 [-b <bytes>] [-f <files>] [-s] [-B] [-v] cpus ...
12 $0 -i [-b <bytes>] [-f <files>]
16 -s keep processes synchronized when reading files
17 -B use bcfree to free buffer cache pages before each run
35 while getopts "$OPTS" c ; do
49 shift `expr $OPTIND - 1`
51 if [ $INIT -gt 0 ] ; then
52 echo "Initializing $BYTES bytes, $FILES files"
53 ./scaleread $VERBOSE -i -b $BYTES -f $FILES
57 echo "Testing $BYTES bytes, $FILES files"
59 [ $BCFREE -eq 0 ] || bcfree -a
60 /usr/bin/time -f "$CPUS: %e wall, %S sys, %U user" ./scaleread \
61 $SYNC $STRIDED $VERBOSE -b $BYTES -f $FILES -c $CPUS