From 2bcf38830e79c2e492c7ec0ee8a2f79470722ff3 Mon Sep 17 00:00:00 2001 From: mquinson Date: Wed, 12 Jul 2006 12:32:32 +0000 Subject: [PATCH] some people don't have 1Gb of RAM, apparently. Play nice with them too and limit msg_size to 64Mb instead of 128Mb git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2542 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/amok/Bandwidth/bandwidth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/amok/Bandwidth/bandwidth.c b/src/amok/Bandwidth/bandwidth.c index 74400db016..b2774aa1d8 100644 --- a/src/amok/Bandwidth/bandwidth.c +++ b/src/amok/Bandwidth/bandwidth.c @@ -118,7 +118,7 @@ void amok_bw_bw_leave() { * launched. Sizes (both \a exp_size and \a msg_size) will be multiplicated by * (\a min_duration / measured_duration) (plus 10% to be sure to eventually * reach the \a min_duration). In that case, the reported bandwidth and - * duration are the ones of the last run. \a msg_size cannot go over 128Mb + * duration are the ones of the last run. \a msg_size cannot go over 64Mb * because we need to malloc a block of this size in RL to conduct the * experiment, and we still don't want to visit the swap. * @@ -184,8 +184,8 @@ void amok_bw_test(gras_socket_t peer, double meas_duration=*sec; request->exp_size = request->exp_size * (min_duration / meas_duration) * 1.1; request->msg_size = request->msg_size * (min_duration / meas_duration) * 1.1; - if (request->msg_size > 128*1024*1024) - request->msg_size = 128*1024*1024; + if (request->msg_size > 64*1024*1024) + request->msg_size = 64*1024*1024; VERB5("The experiment was too short (%f sec<%f sec). Redo it with exp_size=%ld msg_size=%ld (got %fkb/s)", meas_duration,min_duration,request->exp_size,request->msg_size,((double)exp_size) / *sec/1024); -- 2.20.1