⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gen_throughput

📁 这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用于网络游戏医学图像网关的高qos要求.更详细的内容可阅读相应的材料
💻
字号:
#!/bin/sh
#
# gen_throughput,v 1.1 1998/05/04 17:08:14 coryan Exp
#

HP_CONSUMERS="1 5 10 20"
# The number of high priority consumers.

HP_SUPPLIERS="1 2 10"
# The number of high priority suppliers

for s in $HP_SUPPLIERS; do
  for c in $HP_CONSUMERS; do
    grep TOTAL THR.LCL.S${s}.C${c}.*.log |
      sed -e "s/THR.LCL.S${s}.C${c}.I//" -e 's/\.log:Time\[TOTAL\]://' |
      nawk -v f=$s '{print 1000000 / $1, $2 * f / 500 / $1}' |
      sort -n > THR.LCL.S${s}.C${c}.data
  done
done

cat >/tmp/genthr.$$ <<EOF
set grid xtics ytics
set ylabel "Effective/Expected Event Rate"
set xlabel "Event Rate (Hz)"
set output "THR.LCL.eps"
set terminal postscript eps color
plot 1
EOF
for s in $HP_SUPPLIERS; do
  for c in $HP_CONSUMERS; do
    cat >>/tmp/genthr.$$ <<EOF
replot 'THR.LCL.S${s}.C${c}.data' title "$s supp. $c cons." w l
EOF
  done
done

gnuplot < /tmp/genthr.$$

for i in THR.*.eps; do
  b=`basename $i .eps`
  gs -sDEVICE=jpeg -g640x480 -r110x110 -sNOPAUSE \
      -sOutputFile="${b}.jpg" ${b}.eps quit.ps
done

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -