Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Increase the frequency of chord's getrequest operations when running the mc.
[simgrid.git] / examples / msg / chord / chord.c
index 08698f6..f7f145a 100644 (file)
@@ -250,6 +250,13 @@ static void set_predecessor(node_t node, int predecessor_id)
  */
 int node(int argc, char *argv[])
 {
+  /* Reduce the run size for the MC */
+  if(MC_IS_ENABLED){
+    periodic_stabilize_delay = 3;
+    periodic_fix_fingers_delay = 3;
+    periodic_check_predecessor_delay = 3;
+  }
+
   double init_time = MSG_get_clock();
   m_task_t task_received = NULL;
   msg_comm_t comm_send = NULL;
@@ -330,7 +337,7 @@ int node(int argc, char *argv[])
        }
         else {
           // nothing to do: sleep for a while
-          MSG_process_sleep(5);
+          MSG_process_sleep(3);
         }
       }
       else {