and probably not really working) was deceiving what most users
would have hoped here.
* xbt_os_sem_get_value: unused internally, deprecated on OS X El Capitan
+ * Option network/coordinates is now useless and should be dropped.
XML:
* Add Exa- and Peta- units such as EiB, EB, Eib, Eb for size, and
Note that with the default host model this option is activated by default.
-\subsubsection options_model_network_coord Coordinated-based network models
-
-When you want to use network coordinates, as it happens when you use
-an \<AS\> in your platform file with \c Vivaldi as a routing (see also
-Section \ref pf_routing_model_vivaldi "Vivaldi Routing Model"), you must
-set the \b network/coordinates to \c yes so that all mandatory
-initialization are done in the simulator.
-
\subsubsection options_model_network_sendergap Simulating sender gap
(this configuration item is experimental and may change or disapear)
- \c model-check/visited: \ref options_modelchecking_visited
- \c network/bandwidth-factor: \ref options_model_network_coefs
-- \c network/coordinates: \ref options_model_network_coord
- \c network/crosstraffic: \ref options_model_network_crosstraffic
- \c network/latency-factor: \ref options_model_network_coefs
- \c network/maxmin-selective-update: \ref options_model_optim
to describe a platform. The main concept is that you have some peers
that are located somewhere: this is the function of the
<b>coordinates</b> of the \<peer\> or \<host\> tag. There's nothing
-complicated in using it, here is an example of it:
+complicated in using it, here is an example:
\verbatim
<?xml version='1.0'?>
<!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid.dtd">
<platform version="4">
-<config id="General">
- <prop id="network/coordinates" value="yes"></prop>
-</config>
<AS id="AS0" routing="Vivaldi">
<host id="100030591" coordinates="25.5 9.4 1.4" speed="1.5Gf" />
<host id="100036570" coordinates="-12.7 -9.9 2.1" speed="7.3Gf" />
<!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid.dtd">
<platform version="4">
-<config id="General">
- <prop id="network/coordinates" value="yes"></prop>
-</config>
<AS id="AS0" routing="Vivaldi">
<peer id="peer-0" coordinates="173.0 96.8 0.1" speed="730Mf" bw_in="13.38MBps" bw_out="1.024MBps" lat="500us"/>
<peer id="peer-1" coordinates="247.0 57.3 0.6" speed="730Mf" bw_in="13.38MBps" bw_out="1.024MBps" lat="500us" />
$ java -classpath ${classpath:=.} app/tokenring/Main ${srcdir:=.}/../platforms/two_peers.xml '--log=root.fmt:[%12.6r]%e(%i:%P@%h)%e%m%n'
> [ 0.000000] (0:maestro@) Using regular java threads.
-> [ 0.000000] (0:maestro@) Configuration change: Set 'network/coordinates' to 'yes'
> [ 0.000000] (0:maestro@) Number of hosts '2'
> [ 0.000000] (1:0@peer_100030591) Host '0' send 'Token' to Host '1'
> [ 0.637910] (2:1@peer_100036570) Host '1' received 'Token'
$ $SG_TEST_EXENV ./app-masterworker/app-masterworker ${srcdir:=.}/../platforms/vivaldi.xml ${srcdir:=.}/app-masterworker/app-masterworker-vivaldi_d.xml --cfg=network/latency-factor:1.0 --cfg=network/bandwidth-factor:1.0 "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
> [ 0.000000] (0:maestro@) Configuration change: Set 'network/latency-factor' to '1.0'
> [ 0.000000] (0:maestro@) Configuration change: Set 'network/bandwidth-factor' to '1.0'
-> [ 0.000000] (0:maestro@) Configuration change: Set 'network/coordinates' to 'yes'
> [ 0.000000] (1:master@100030591) Got 15 workers and 10 tasks to process
> [ 0.000000] (1:master@100030591) Sending "Task_0" (of 10) to mailbox "worker-0"
> [ 0.046299] (1:master@100030591) Sending "Task_1" (of 10) to mailbox "worker-1"
> [ 0.131796] (0:maestro@) Simulation time 0.131796
$ $SG_TEST_EXENV ${bindir:=.}/app-token-ring ${srcdir:=.}/two_peers.xml "--log=root.fmt:[%12.6r]%e(%i:%P@%h)%e%m%n"
-> [ 0.000000] (0:maestro@) Configuration change: Set 'network/coordinates' to 'yes'
> [ 0.000000] (0:maestro@) Number of hosts '2'
> [ 0.000000] (1:0@peer_100030591) Host "0" send 'Token' to Host "1"
> [ 0.637910] (2:1@peer_100036570) Host "1" received "Token"
<?xml version='1.0'?>
<!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid/simgrid.dtd">
<platform version="4">
- <config id="General">
- <prop id="network/coordinates" value="yes"/>
- </config>
-
<AS id="AS0" routing="Vivaldi">
<AS id="AS1_dc1" routing="Full">
<!--small tier-1 datacenter, according to TIA-942 annex G tiers notation -->
<?xml version='1.0'?>
<!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid/simgrid.dtd">
<platform version="4">
- <config id="General">
- <prop id="network/coordinates" value="yes"/>
- </config>
<AS id="AS0" routing="Vivaldi">
<AS id="dataCenter1" routing="Full">
<!-- 3 cabinets, no zone dist area, 1 horiz dist area, no multi-homing, telecom and operation rooms omitted -->
<?xml version='1.0'?>
<!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid/simgrid.dtd">
<platform version="4">
- <config id="General">
- <prop id="network/coordinates" value="yes"></prop>
- </config>
<AS id="AS0" routing="Vivaldi">
<peer id="100030591" coordinates="25.5 9.4 1.4" speed="1.5Gf" bw_in="2.25GBps" bw_out="2.25GBps" lat="500us" />
<peer id="100036570" coordinates="-12.7 -9.9 2.1" speed="730Mf" bw_in="2.25GBps" bw_out="2.25GBps" lat="500us" />
<?xml version='1.0'?>
<!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid/simgrid.dtd">
<platform version="4">
- <config id="General">
- <prop id="network/coordinates" value="yes"></prop>
- </config>
<AS id="AS0" routing="Vivaldi">
<host id="100030591" coordinates="25.5 9.4 1.4" speed="1.5Gf" />
<host id="100036570" coordinates="-12.7 -9.9 2.1" speed="730Mf" />
}
}
-static void _sg_cfg_cb__surf_network_coordinates(const char *name)
-{
- static int already_set = 0;
- int val = xbt_cfg_get_boolean(name);
- if (val) {
- already_set = 1;
- } else
- if (already_set)
- xbt_die("Setting of whether to use coordinate cannot be disabled once set.");
-}
-
static void _sg_cfg_cb__surf_network_crosstraffic(const char *name)
{
sg_network_crosstraffic = xbt_cfg_get_boolean(name);
"Synchronization mode to use when running contexts in parallel (either futex, posix or busy_wait)");
#endif
- xbt_cfg_register_boolean("network/coordinates", "no", _sg_cfg_cb__surf_network_coordinates,
- "Whether we use a coordinate-based routing (as Vivaldi)");
-
xbt_cfg_register_boolean("network/crosstraffic", "yes", _sg_cfg_cb__surf_network_crosstraffic,
"Activate the interferences between uploads and downloads for fluid max-min models (LV08, CM02)");