This section describes the host structure of MSG.
More...
|
typedef xbt_dictelm_t | msg_host_t |
| Host datatype.A location (or host) is any possible place where a process may run. Thus it is represented as a physical resource with computing capabilities, some mailboxes to enable running process to communicate with remote ones, and some private data that can be only accessed by local process.
|
|
This section describes the host structure of MSG.
(
msg_host_t) and the functions for managing it.
A location (or host) is any possible place where a process may run. Thus it may be represented as a physical resource with computing capabilities, some mailboxes to enable running process to communicate with remote ones, and some private data that can be only accessed by local process.
- See Also
- msg_host_t
Set the user data of a msg_host_t.
This functions checks whether some data has already been associated to host or not and attach data to host if it is possible.
Return the user data of a msg_host_t.
This functions checks whether host is a valid pointer or not and return the user data associated to host if it is possible.
Return the name of the msg_host_t.
This functions checks whether host is a valid pointer or not and return its name.
Return the number of cores.
- Parameters
-
- Returns
- the number of cores
Return the list of processes attached to an host.
- Parameters
-
- Returns
- a swag with the attached processes
const char* MSG_host_get_property_value |
( |
msg_host_t |
host, |
|
|
const char * |
name |
|
) |
| |
Returns the value of a given host property.
- Parameters
-
host | a host |
name | a property name |
- Returns
- value of a property (or NULL if property not set)
Returns a xbt_dict_t consisting of the list of properties assigned to this host.
- Parameters
-
- Returns
- a dict containing the properties
void MSG_host_set_property_value |
( |
msg_host_t |
host, |
|
|
const char * |
name, |
|
|
char * |
value, |
|
|
void_f_pvoid_t |
free_ctn |
|
) |
| |
Change the value of a given host property.
- Parameters
-
host | a host |
name | a property name |
value | what to change the property to |
free_ctn | the freeing function to use to kill the value on need |
double MSG_get_host_power_peak_at |
( |
msg_host_t |
host, |
|
|
int |
pstate_index |
|
) |
| |
Return the speed of the processor (in flop/s) at a given pstate.
- Parameters
-
host | host to test |
pstate_index | pstate to test |
- Returns
- Returns the processor speed associated with pstate_index
double MSG_get_host_current_power_peak |
( |
msg_host_t |
host) | |
|
Return the current speed of the processor (in flop/s)
- Parameters
-
- Returns
- Returns the current processor speed
Return the number of pstates defined for a host.
- Parameters
-
void MSG_set_host_power_peak_at |
( |
msg_host_t |
host, |
|
|
int |
pstate_index |
|
) |
| |
Sets the speed of the processor (in flop/s) at a given pstate.
- Parameters
-
host | host to test |
pstate_index | pstate to switch to |
double MSG_get_host_consumed_energy |
( |
msg_host_t |
host) | |
|
Return the total energy consumed by a host (in Joules)
- Parameters
-
- Returns
- Returns the consumed energy
Return the list of mount point names on an host.
- Parameters
-
- Returns
- a dict containing all mount point on the host (mount_name => msg_storage_t)