From 913a64fa09cecb0932cfc2d5fd6df8c1b2dc4ca3 Mon Sep 17 00:00:00 2001 From: Eduardo Ramos Testillano Date: Mon, 23 Nov 2015 17:27:36 +0100 Subject: [PATCH] Optimize --- example/diameter/launcher/deployments/st-client/program.sh | 6 +++--- example/diameter/launcher/resources/scripts/clone.sh | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/example/diameter/launcher/deployments/st-client/program.sh b/example/diameter/launcher/deployments/st-client/program.sh index f3aa539..b02fd2d 100755 --- a/example/diameter/launcher/deployments/st-client/program.sh +++ b/example/diameter/launcher/deployments/st-client/program.sh @@ -60,9 +60,9 @@ TESTCASE=( `ls $TESTCASE_DIR/testcase*msk 2>/dev/null` ) TESTCASE_FILES=${#TESTCASE[@]} [ $TESTCASE_FILES -ne 1 ] && _exit "One and only one 'testcase*msk' file must be present !!" -#MAX_NUMBER_GROUPS=$(grep ^MAX_NUMBER_GROUPS= clone.sh | cut -d= -f2) -#CLONE_GROUPS=$((MAX_NUMBER_GROUPS/ADML_INSTANCES)) -CLONE_GROUPS=1 +MAX_NUMBER_GROUPS=$(grep ^MAX_NUMBER_GROUPS= clone.sh | cut -d= -f2) +CLONE_GROUPS=$((MAX_NUMBER_GROUPS/ADML_INSTANCES)) +#CLONE_GROUPS=1 children_before=$(children) while read -r line diff --git a/example/diameter/launcher/resources/scripts/clone.sh b/example/diameter/launcher/resources/scripts/clone.sh index ad89977..d392097 100755 --- a/example/diameter/launcher/resources/scripts/clone.sh +++ b/example/diameter/launcher/resources/scripts/clone.sh @@ -4,7 +4,8 @@ # VARIABLES # ############# CLONE_WKDIR=$(mktemp -d) -MAX_NUMBER_GROUPS=400 +#MAX_NUMBER_GROUPS=400 +MAX_NUMBER_GROUPS=200 # (depends on the machine) ############# @@ -16,7 +17,8 @@ _exit (){ echo # Background jobs: - kill -9 $(jobs -p) >/dev/null 2>/dev/null + #remaining_jobs=$(jobs -p) + (kill -9 $(jobs -p) 2>&1) >/dev/null # Cleanup: rm -rf $CLONE_WKDIR -- 2.20.1