novell-bwliu:/usr/lib/ctcs2/tools # cat bonnie-run
#!/bin/sh
ctcsdir="/usr/lib/ctcs2"
basedir="/usr/share/qa/bonnie"
/etc/init.d/cron stop
$ctcsdir/tools/run $basedir/tcf/bonnie-default.tcf
novell-bwliu:/usr/lib/ctcs2/tools # cat reaim-run
#!/bin/bash
CTCS2_DIR=/usr/lib/ctcs2
TCF_DIR=/usr/lib/ctcs2/tcf
$CTCS2_DIR/tools/run $TCF_DIR/reaim.tcf
novell-bwliu:/usr/lib/ctcs2/tools # cd tcf
-bash: cd: tcf: No such file or directory
novell-bwliu:/usr/lib/ctcs2/tools # ls
bonnie-run ltp-run netperf-run stress-run
libmicro-bench-run ltp-run-sles8 newburn-run tiobench-bench-run
libmicro-run ltp-stress.py openposix_wrapper.sh tiobench-run
lmbench-run ltp_wrapper.sh reaim-run
ltp-fstests-run memeat-run report.py
ltp-generator memtester-run run
novell-bwliu:/usr/lib/ctcs2/tools # cd ../tcf
novell-bwliu:/usr/lib/ctcs2/tcf # ls
fs_stress.tcf memeat.tcf process_stress.tcf stress.tcf
libmicro-bench.tcf memtester.tcf reaim.tcf tiobench-bench.tcf
libmicro.tcf netperf.tcf sched_stress.tcf tiobench.tcf
novell-bwliu:/usr/lib/ctcs2/tcf # cat reaim.tcf
fg 1 reaim /usr/lib/reaim/reaim
wait
novell-bwliu:/usr/lib/ctcs2/tcf #
--
novell-bwliu:/usr/share/qa/bonnie/tcf # cat bonnie-default.tcf
# run the bonnie dbench
#
#timer 750
fg 1 bonnie-default /usr/share/qa/bonnie/do_bonnie -s 100 -v 1
wait
fg 1 bonnie-default /usr/share/qa/bonnie/do_bonnie -s 256 -v 1
wait
fg 1 bonnie-default /usr/share/qa/bonnie/do_bonnie -s 512 -v 1
wait
--
fg 1 bonnie-default /usr/share/qa/bonnie/do_bonnie -s 1024 -v 1
wait
fg 1 bonnie-default /usr/share/qa/bonnie/do_bonnie -s 1024 -v 2
wait
fg 1 bonnie-default /usr/share/qa/bonnie/do_bonnie -s 1024 -v 4
wait
fg 1 bonnie-default /usr/share/qa/bonnie/do_bonnie -s 1024 -v 8
wait
--
fg 1 bonnie-default /usr/share/qa/bonnie/do_bonnie -s 1024 -v 16
wait
本文出自 “Novell工作积累” 博客,谢绝转载!