Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Actually use the autocomputed saturation size, too
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 12 Jul 2006 06:44:47 +0000 (06:44 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 12 Jul 2006 06:44:47 +0000 (06:44 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2534 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/amok/Bandwidth/saturate.c

index efa150c..84d65e4 100644 (file)
@@ -156,7 +156,8 @@ void amok_bw_saturate_begin(const char* to_name,unsigned int to_port,
                 0,512*1024, 512*1024, /* 512k as first guess */
                 1, /* at least one sec */
                 &sec, &bw);
-    request->msg_size = (int)bw;
+    msg_size = request->msg_size = (int)bw;
+    DEBUG1("Saturate with packets of %d bytes",request->msg_size);
   }
    
   /* Launch the saturation */
@@ -198,7 +199,7 @@ void amok_bw_saturate_begin(const char* to_name,unsigned int to_port,
 
     /* Check whether the experiment has to be terminated by now */
     elapsed=gras_os_time()-start;
-    DEBUG2("elapsed %f duration %f",elapsed, duration);
+    DEBUG3("elapsed %f duration %f (msg_size=%d)",elapsed, duration,msg_size);
 
   } while (saturate_further && (duration==0 || elapsed < duration));