From 28b226035552d36a6d3e666a1f1080c56d9d58a2 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Sat, 22 Mar 2014 22:53:48 +0000 Subject: [PATCH] - optimizations for runtime --- src/mesh/gnunet-mesh-profiler.c | 7 ++++--- src/mesh/profiler.conf | 3 ++- src/mesh/run_profiler.sh | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/mesh/gnunet-mesh-profiler.c b/src/mesh/gnunet-mesh-profiler.c index 15fcc3f2b..96ea9b67c 100644 --- a/src/mesh/gnunet-mesh-profiler.c +++ b/src/mesh/gnunet-mesh-profiler.c @@ -46,7 +46,7 @@ /** * Time to wait for stuff that should be rather fast */ -#define SHORT_TIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 60) +#define SHORT_TIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 300) /** * Total number of rounds. @@ -982,7 +982,8 @@ peer_id_cb (void *cls, test_task = GNUNET_SCHEDULER_add_delayed (delay, &start_test, NULL); return; /* start_test from incoming_channel */ } - test_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, + GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Starting in a minute...\n"); + test_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES, &start_test, NULL); } @@ -1024,7 +1025,7 @@ tmain (void *cls, GNUNET_TESTBED_PIT_IDENTITY, &peer_id_cb, (void *) i); } - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "requested peer ids\n"); + GNUNET_log (GNUNET_ERROR_TYPE_INFO, "requested peer ids\n"); /* Continues from pi_cb -> do_test */ } diff --git a/src/mesh/profiler.conf b/src/mesh/profiler.conf index 0cdd2d9e7..8817802d1 100644 --- a/src/mesh/profiler.conf +++ b/src/mesh/profiler.conf @@ -11,8 +11,9 @@ SETUP_TIMEOUT = 60 m MANIPULATE_DELAY_OUT = 10 ms [mesh] -REFRESH_CONNECTION_TIME = 600 s +REFRESH_CONNECTION_TIME = 1 h DISABLE_TRY_CONNECT = YES +ID_ANNOUNCE_TIME = 240 s [dht] FORCE_NSE = %NSE% diff --git a/src/mesh/run_profiler.sh b/src/mesh/run_profiler.sh index 63407c134..aba6ce4d4 100755 --- a/src/mesh/run_profiler.sh +++ b/src/mesh/run_profiler.sh @@ -17,7 +17,7 @@ fi LINKS=`echo "l($PEERS)/l(2) * $PEERS" | bc -l` LINKS=`printf "%.0f" $LINKS` -NSE=`echo "l($PEERS)/l(10)" | bc -l` +NSE=`echo "l($PEERS)/l(2)" | bc -l` echo "using $PEERS peers, $LINKS links"; sed -e "s/%LINKS%/$LINKS/;s/%NSE%/$NSE/" profiler.conf > .profiler.conf -- 2.25.1