diff options
Diffstat (limited to 'TAO/performance-tests')
-rw-r--r-- | TAO/performance-tests/Protocols/lksctp_params.conf | 9 | ||||
-rwxr-xr-x | TAO/performance-tests/Protocols/set_lksctp_params.sh | 11 | ||||
-rwxr-xr-x | TAO/performance-tests/Protocols/show_lksctp_params.sh | 18 |
3 files changed, 38 insertions, 0 deletions
diff --git a/TAO/performance-tests/Protocols/lksctp_params.conf b/TAO/performance-tests/Protocols/lksctp_params.conf new file mode 100644 index 00000000000..49b79544cb3 --- /dev/null +++ b/TAO/performance-tests/Protocols/lksctp_params.conf @@ -0,0 +1,9 @@ +PREFIX= +association_max_retrans=25 +hb_interval=1 +max_init_retransmits=25 +path_max_retrans=0 +rto_max=0 +rto_initial=0 +rto_min=0 +SETTINGS="association_max_retrans hb_interval max_init_retransmits path_max_retrans rto_max rto_initial rto_min" diff --git a/TAO/performance-tests/Protocols/set_lksctp_params.sh b/TAO/performance-tests/Protocols/set_lksctp_params.sh new file mode 100755 index 00000000000..799f5950d58 --- /dev/null +++ b/TAO/performance-tests/Protocols/set_lksctp_params.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +B_PROC=/proc/sys/net/sctp + +CONF_PATH=/groups/pces/uav_oep/oomworks/lksctp-debug/TAO/performance-tests/Protocols +. ${CONF_PATH}/lksctp_params.conf + +for i in $SETTINGS; do + eval "echo \"echo \$$i > \$B_PROC/\${PREFIX}${i}\"" + eval "echo \$$i > \$B_PROC/\${PREFIX}${i}" +done diff --git a/TAO/performance-tests/Protocols/show_lksctp_params.sh b/TAO/performance-tests/Protocols/show_lksctp_params.sh new file mode 100755 index 00000000000..89cf1e2a5c6 --- /dev/null +++ b/TAO/performance-tests/Protocols/show_lksctp_params.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +max_len=24 +pushd /proc/sys/net/sctp &> /dev/null +echo "SCTP Parameters" +for i in `ls *`; do + ct=0 + tmp_len=`echo ${i} | wc -m` + let "tmp_len=tmp_len-1" + let "spaces=${max_len}-${tmp_len}" + echo -n " $i:" + while [ ${ct} -lt ${spaces} ]; do + echo -n " " + let "ct=${ct}+1" + done + cat $i +done +echo |