SimGrid
3.12
Versatile Simulation of Distributed Systems
|
Functions | |
const char * | simcall_host_get_name (sg_host_t host) |
Returns the name of a host. More... | |
void | simcall_host_on (sg_host_t host) |
Start the host if it is off. More... | |
void | simcall_host_off (sg_host_t host) |
Stop the host if it is on. More... | |
xbt_dict_t | simcall_host_get_properties (sg_host_t host) |
Returns a dict of the properties assigned to a host. More... | |
xbt_dict_t | simcall_asr_get_properties (const char *name) |
Returns a dict of the properties assigned to a router or AS. More... | |
double | simcall_host_get_speed (sg_host_t host) |
Returns the speed of the processor. More... | |
int | simcall_host_get_core (sg_host_t host) |
Returns the number of core of the processor. More... | |
xbt_swag_t | simcall_host_get_process_list (sg_host_t host) |
Returns the list of processes attached to the host. More... | |
double | simcall_host_get_available_speed (sg_host_t host) |
Returns the available speed of the processor. More... | |
int | simcall_host_get_state (sg_host_t host) |
Returns the state of a host. More... | |
double | simcall_host_get_current_power_peak (sg_host_t host) |
Returns the power peak of a host. More... | |
double | simcall_host_get_power_peak_at (sg_host_t host, int pstate_index) |
Returns one power peak (in flops/s) of a host at a given pstate. More... | |
int | simcall_host_get_nb_pstates (sg_host_t host) |
Returns the number of power states for a host. More... | |
void | simcall_host_set_pstate (sg_host_t host, int pstate_index) |
Sets the pstate at which the host should run. More... | |
int | simcall_host_get_pstate (sg_host_t host) |
Gets the pstate at which that host currently runs. More... | |
double | simcall_host_get_consumed_energy (sg_host_t host) |
Returns the total energy consumed by the host (in Joules) More... | |
double | simcall_host_get_wattmin_at (msg_host_t host, int pstate) |
Returns the amount of watt dissipated at the given pstate when the host is idling. | |
double | simcall_host_get_wattmax_at (msg_host_t host, int pstate) |
Returns the amount of watt dissipated at the given pstate when the host burns CPU at 100%. | |
e_smx_state_t | simcall_process_execution_wait (smx_synchro_t execution) |
Waits for the completion of an execution synchro and destroy it. More... | |
enum e_smx_state_t |
Host datatypeA 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.
const char* simcall_host_get_name | ( | sg_host_t | host | ) |
Returns the name of a host.
host | A SIMIX host |
void simcall_host_on | ( | sg_host_t | host | ) |
Start the host if it is off.
host | A SIMIX host |
void simcall_host_off | ( | sg_host_t | host | ) |
Stop the host if it is on.
host | A SIMIX host |
xbt_dict_t simcall_host_get_properties | ( | sg_host_t | host | ) |
Returns a dict of the properties assigned to a host.
host | A host |
xbt_dict_t simcall_asr_get_properties | ( | const char * | name | ) |
Returns a dict of the properties assigned to a router or AS.
name | The name of the router or AS |
double simcall_host_get_speed | ( | sg_host_t | host | ) |
Returns the speed of the processor.
The speed returned does not take into account the current load on the machine.
host | A SIMIX host |
int simcall_host_get_core | ( | sg_host_t | host | ) |
Returns the number of core of the processor.
host | A SIMIX host |
xbt_swag_t simcall_host_get_process_list | ( | sg_host_t | host | ) |
Returns the list of processes attached to the host.
host | A SIMIX host |
double simcall_host_get_available_speed | ( | sg_host_t | host | ) |
Returns the available speed of the processor.
int simcall_host_get_state | ( | sg_host_t | host | ) |
Returns the state of a host.
Two states are possible: 1 if the host is active or 0 if it has crashed.
host | A SIMIX host |
double simcall_host_get_current_power_peak | ( | sg_host_t | host | ) |
Returns the power peak of a host.
host | A SIMIX host |
double simcall_host_get_power_peak_at | ( | sg_host_t | host, |
int | pstate_index | ||
) |
Returns one power peak (in flops/s) of a host at a given pstate.
host | A SIMIX host |
pstate_index | pstate to test |
int simcall_host_get_nb_pstates | ( | sg_host_t | host | ) |
Returns the number of power states for a host.
host | A SIMIX host |
void simcall_host_set_pstate | ( | sg_host_t | host, |
int | pstate_index | ||
) |
Sets the pstate at which the host should run.
host | A SIMIX host |
pstate_index | The pstate to which the CPU power will be set |
int simcall_host_get_pstate | ( | sg_host_t | host | ) |
Gets the pstate at which that host currently runs.
host | A SIMIX host |
double simcall_host_get_consumed_energy | ( | sg_host_t | host | ) |
Returns the total energy consumed by the host (in Joules)
host | A SIMIX host |
e_smx_state_t simcall_process_execution_wait | ( | smx_synchro_t | execution | ) |
Waits for the completion of an execution synchro and destroy it.
execution | The execution synchro |