📄 mstone1.sh.skel
字号:
#!/bin/sh## Skeleton for a script intended to run the mstone1(N) # performance test.## Get the name of the programprogram=`echo $0 | sed 's#.*/##g'`usage="\Usage: $program [options]This shell script is used to run the mstone 1 (factor) performance test. It is not intended to test the megaco stack but instead to give a \"performance value\" of the host on which it is run.Options: -help display this help and exit. -h <num> default process heap size -a <num> async thread pool size (default is 0) -f <factor> normally the test is run with 16 processes (factor 1), one for each codec config. The test can however be run with other factors, e.g. factor 10 means that 10 processes will be started for each megaco codec config. -- everything after this is just passed on to erl."ERL_HOME=<path to otp top dir>MEGACO_HOME=$ERL_HOME/lib/erlang/lib/<megaco dir>MEAS_HOME=$MEGACO_HOME/examples/measPATH=$ERL_HOME/bin:$PATHMODULE=megaco_codec_mstone1MSTONE="-s $MODULE"while test $# != 0; do # echo "DBG: Value = $1" case $1 in -help) echo "$usage" ; exit 0;; -h) PHS="+h $2"; shift ; shift ;; -a) ATP="+A $2"; shift ; shift ;; -f) MSTONE="-s $MODULE start $2"; shift ; shift ;; --) shift ; break;; *) echo "unknown option: $1"; echo "$usage" ; exit 0 esacdonefor i in no_smp 01 02 04 08 16 32 64; do case $i in no_smp) SMP_INFO="No SMP" SMP_OPTS="" LOG="mstone1-00.log" ;; 01) SMP_INFO="SMP: 1 scheduler" SMP_OPTS="-smp +S $i" LOG="mstone1-$i.log" ;; *) SMP_INFO="SMP: $i schedulers" SMP_OPTS="-smp +S $i" LOG="mstone1-$i.log" ;; esac echo "" echo "---------------------------------------------" echo "$SMP_INFO" echo "" ERL="erl \ -noshell \ $PHS \ $ATP \ $SMP_OPTS \ -pa $MEAS_HOME \ $MSTONE \ $* \ -s init stop" echo $ERL $ERL | tee $LOGdone
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -