Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
VM migration: do not precompute dp_rate
[simgrid.git] / include / simgrid / datatypes.h
index 035a6af..815e937 100644 (file)
@@ -7,9 +7,9 @@
 #ifndef SIMGRID_DATATYPES_H_
 #define SIMGRID_DATATYPES_H_
 
-#include <simgrid/forward.h>
+#include "simgrid/forward.h"
 
-typedef struct vm_params {
+struct vm_params {
   int ncpus;
   sg_size_t ramsize;
   int overcommit;
@@ -21,11 +21,13 @@ typedef struct vm_params {
   int skip_stage2;
   double max_downtime;
 
-  double dp_rate;
+  double dp_intensity; // Percentage of pages that get dirty compared to netspeed [0;1]
   double dp_cap; /* bytes per 1 flop execution */
 
   /* set migration speed */
   double mig_speed;
-} s_vm_params_t, *vm_params_t;
+};
+typedef struct vm_params  s_vm_params_t;
+typedef struct vm_params* vm_params_t;
 
 #endif /* SIMGRID_DATATYPES_H_ */