A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Increase the frequency of chord's getrequest operations when running the mc.
[simgrid.git]
/
examples
/
msg
/
chord
/
chord.c
diff --git
a/examples/msg/chord/chord.c
b/examples/msg/chord/chord.c
index
08698f6
..
f7f145a
100644
(file)
--- a/
examples/msg/chord/chord.c
+++ b/
examples/msg/chord/chord.c
@@
-250,6
+250,13
@@
static void set_predecessor(node_t node, int predecessor_id)
*/
int node(int argc, char *argv[])
{
*/
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;
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
}
else {
// nothing to do: sleep for a while
- MSG_process_sleep(
5
);
+ MSG_process_sleep(
3
);
}
}
else {
}
}
else {