From c625f480c00bfb32f6cb18a44cf0e067bfbc7f5b Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Thu, 28 Mar 2019 18:03:14 +0100 Subject: [PATCH] Update script and README.md --- README.md | 1 + scripts/xp-instance-runner | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0ac9f9b..3d2ca0f 100644 --- a/README.md +++ b/README.md @@ -175,5 +175,6 @@ The idea is to generate a sequence like the following: `orig naive rr rrh orig n ``` parallel -j 12 bash -c './xp-instance-runner $1 6000 100 100' -- `xp0=orig xp1=naive xp2=rr xp3=rrh; for i in {0..99}; do q='xp'$((i % 4)); echo ${!q}; done` +parallel.moreutils -j 16 bash -c './xp-instance-runner $0 6000 100 100' -- `xp0=orig xp1=naive xp2=rr xp3=rrh; for i in {0..219}; do q='xp'$((i % 4)); echo ${!q}; done` ``` diff --git a/scripts/xp-instance-runner b/scripts/xp-instance-runner index e5da46a..7e0a996 100755 --- a/scripts/xp-instance-runner +++ b/scripts/xp-instance-runner @@ -10,7 +10,7 @@ INTERVAL=$3 SIZE=$4 ALLOWED_BOOTSTRAP=190 ALLOWED_TIME=`expr $(expr ${COUNT} * ${INTERVAL}) / 1000 + ${ALLOWED_BOOTSTRAP}` -echo "Will run for ${ALLOWED_TIME} (count=$1, interval=$2)" +echo "Will run for ${ALLOWED_TIME} (count=$COUNT, interval=$INTERVAL)" # Create folders docker run \