Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add a description of energy-pstate to s4u and msg readmes
authorTakishipp <toufik.boubehziz@gmail.com>
Wed, 22 Nov 2017 16:13:14 +0000 (17:13 +0100)
committerTakishipp <toufik.boubehziz@gmail.com>
Wed, 22 Nov 2017 16:13:14 +0000 (17:13 +0100)
examples/msg/README.doc
examples/s4u/README.doc

index 0e5654a..66e557c 100644 (file)
@@ -95,6 +95,12 @@ shipped in the archive:
     You can specify a start time and a kill time in the deployment
     file. See all *_d.xml files in this directory.
 
+  - <b>Using Pstates on a host</b>
+    @ref examples/msg/energy-pstate/energy-pstate.c\n
+    Show how define a set of pstates for a host and how the current
+    pstate can be accessed/changed with @ref MSG_get_host_current_power_peak and @ref  MSG_set_host_pstate.
+    See also the platform XML file for have a details on how to declare the CPU capacity for each pstate.
+
 @section msg_ex_tracing Tracing and visualization features
 
 Tracing can be activated by various configuration options which
@@ -135,8 +141,8 @@ options to see the task executions:
     displayed as arrows in a Gantt-chart visualization. Recommanded
     options to that extend:
     @verbatim -cfg=tracing:yes --cfg=tracing/msg/process:yes
-    @endverbatim     
-
+    @endverbatim 
+    
 TODO: These tracing examples should be integrated in the examples to
 not duplicate the C files. A full command line to see the result in
 the right tool (viva/vite/FrameSoc) should be given along with some
index 96691c5..20c2aa3 100644 (file)
@@ -101,6 +101,12 @@ documentation, but it should remain readable directly.
     @ref examples/s4u/actor-migration/s4u-actor-migration.cpp \n
     Actors can move or be moved from a host to another with the @ref migrate method.
 
+  - <b>Using Pstates on a host</b>
+    @ref examples/s4u/energy-pstate/s4u-energy-pstate.c\n
+    Show how define a set of pstates for a host and how the current
+    pstate can be accessed/changed with @ref getPstateSpeed and @ref  sg_host_set_pstate.
+    See also the platform XML file for have a details on how to declare the CPU capacity for each pstate.
+
 @section s4u_ex_synchro Inter-Actor Synchronization 
 
  - <b>Mutex: </b> @ref examples/s4u/mutex/s4u-mutex.cpp \n