Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rename the TCP_gamma configuration option to network/TCP_gamma, and document it
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 25 Dec 2011 17:40:47 +0000 (18:40 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 25 Dec 2011 17:40:47 +0000 (18:40 +0100)
ChangeLog
doc/options.doc
src/surf/surf_config.c

index 1b4c255..4356a57 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,7 @@ SimGrid (3.7) NOT RELEASED; urgency=low
     --help-models for the list of all models and optimization modes.
   * The CLM03 workstation model were dropped for simplicity because it
     used the deprecated CM02 network model. Use default instead.
+  * Rename the TCP_gamma configuration option to network/TCP_gamma
   * Use now crosstraffic keyword instead of the terribly missleading 
     fullduplex keyword. Use --cfg=network/crosstraffic:1. This is
     activated by default now in the current default model.
index 74ae3e8..339fe72 100644 (file)
@@ -137,7 +137,22 @@ variables). The accepted values are (both default to 'Lazy'):
     useful when debugging.
 
 
-\subsection options_simgrid_configuration_fullduplex Simulating cross-traffic
+\subsection options_model_network Configuring the Network model
+
+\subsubsection options_model_network_gamma Maximal TCP window size (network/TCP_gamma)
+
+The analytical models need to know the maximal TCP window size to take
+the TCP congestion mechanism into account. This is set to 20000 by
+default, but can be changed using the network/TCP_gamma variable.
+
+On linux, this value can be retrieved using the following
+commands. Both give a set of values, and you should use the last one,
+which is the maximal size.\verbatim
+cat /proc/sys/net/ipv4/tcp_rmem # gives the sender window
+cat /proc/sys/net/ipv4/tcp_wmem # gives the receiver window
+\endverbatim
+
+\subsubsection options_model_network_crosstraffic Simulating cross-traffic (network/crosstraffic)
 
 As of SimGrid v3.7, cross-traffic effects can be taken into account in
 analytical simulations. It means that ongoing and incoming
index 733ff2b..d7c02d1 100644 (file)
@@ -379,14 +379,14 @@ void surf_config_init(int *argc, char **argv)
                      "Model to use to store the routing information",
                      xbt_cfgelm_string, &default_value, 1, 1, NULL, NULL);
 
-    xbt_cfg_register(&_surf_cfg_set, "TCP_gamma",
+    xbt_cfg_register(&_surf_cfg_set, "network/TCP_gamma",
                      "Size of the biggest TCP window (cat /proc/sys/net/ipv4/tcp_[rw]mem for recv/send window; Use the last given value, which is the max window size)",
                      xbt_cfgelm_double, NULL, 1, 1,
                      _surf_cfg_cb__tcp_gamma, NULL);
-    xbt_cfg_setdefault_double(_surf_cfg_set, "TCP_gamma", 20000.0);
+    xbt_cfg_setdefault_double(_surf_cfg_set, "network/TCP_gamma", 20000.0);
 
     xbt_cfg_register(&_surf_cfg_set, "maxmin/precision",
-                     "Minimum retained action value when updating simulation",
+                     "Minimum retained action value when updating simulation (similar to numerical precision)",
                      xbt_cfgelm_double, NULL, 1, 1, _surf_cfg_cb__maxmin_precision, NULL);
     xbt_cfg_setdefault_double(_surf_cfg_set, "maxmin/precision", 0.00001); // FIXME use setdefault everywhere here!