File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,13 @@ The following individual tests are available:
107107 fsdisk File Copy 4096 bufsize 8000 maxblocks
108108 shell1 Shell Scripts (1 concurrent) (runs "looper 60 multi.sh 1")
109109 shell8 Shell Scripts (8 concurrent) (runs "looper 60 multi.sh 8")
110- shell16 Shell Scripts (8 concurrent) (runs "looper 60 multi.sh 16")
110+ shell16 Shell Scripts (16 concurrent)(runs "looper 60 multi.sh 16")
111+ Environment variable MULTI_SH_WORK_FACTOR (default 1)
112+ can be set to multiply the size of test input data (~8k)
113+ Note: changing MULTI_SH_WORK_FACTOR modifies the test.
114+ However, modifying the user/kernel workload balance may
115+ be useful for comparison with other systems on which the
116+ benchmark was run using the same MULTI_SH_WORK_FACTOR.
111117
112118 2d:
113119 2d-rects 2D graphics: rectangles
Original file line number Diff line number Diff line change 1515# ##############################################################################
1616ID=" @(#)multi.sh:3.4 -- 5/15/91 19:30:24" ;
1717instance=1
18+ sort_src=sort.src
19+ work_factor=${MULTI_SH_WORK_FACTOR:- 1}
20+ if [ $work_factor -gt 1 ]; then
21+ inputs=
22+ for i in $( seq $work_factor ) ; do inputs=" $inputs $sort_src " ; done
23+ cat $inputs > sort.src-alt.$$
24+ sort_src=sort.src-alt.$$
25+ fi
26+
1827while [ $instance -le $1 ]; do
19- /bin/sh " $UB_BINDIR /tst.sh" &
28+ /bin/sh " $UB_BINDIR /tst.sh" $sort_src &
2029 instance=$(( $instance + 1 ))
2130done
2231wait
2332
33+ if [ $work_factor -gt 1 ]; then
34+ rm $sort_src
35+ fi
Original file line number Diff line number Diff line change 1414#
1515# ##############################################################################
1616ID=" @(#)tst.sh:3.4 -- 5/15/91 19:30:24" ;
17- sort > sort.$$ < sort.src
17+ sort > sort.$$ < $1
1818od sort.$$ | sort -n -k 1 > od.$$
1919grep the sort.$$ | tee grep.$$ | wc > wc.$$
2020rm sort.$$ grep.$$ od.$$ wc.$$
You can’t perform that action at this time.
0 commit comments