Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
isolate VM migration parameters from others
[simgrid.git] / include / simgrid / datatypes.h
1 /* Copyright (c) 2013-2015. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #ifndef SIMGRID_DATATYPES_H_
8 #define SIMGRID_DATATYPES_H_
9
10 #include "simgrid/forward.h"
11
12 struct vm_params {
13   /* The size of other states than memory pages, which is out-of-scope of dirty page tracking. */
14   sg_size_t devsize;
15   int skip_stage1;
16   int skip_stage2;
17   double max_downtime;
18
19   double dp_intensity; // Percentage of pages that get dirty compared to netspeed [0;1]
20   double dp_cap; /* bytes per 1 flop execution */
21
22   /* set migration speed */
23   double mig_speed;
24 };
25 typedef struct vm_params  s_vm_params_t;
26 typedef struct vm_params* vm_params_t;
27
28 #endif /* SIMGRID_DATATYPES_H_ */