Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Actually use the autocomputed saturation size, too
[simgrid.git] / 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));