SimGrid  3.12
Versatile Simulation of Distributed Systems
Host Management Functions

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...
 

Detailed Description

Enumeration Type Documentation

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.

See also
Host Management Functions

Function Documentation

const char* simcall_host_get_name ( sg_host_t  host)

Returns the name of a host.

Parameters
hostA SIMIX host
Returns
The name of this host
void simcall_host_on ( sg_host_t  host)

Start the host if it is off.

Parameters
hostA SIMIX host
void simcall_host_off ( sg_host_t  host)

Stop the host if it is on.

Parameters
hostA SIMIX host
xbt_dict_t simcall_host_get_properties ( sg_host_t  host)

Returns a dict of the properties assigned to a host.

Parameters
hostA host
Returns
The properties of this host
xbt_dict_t simcall_asr_get_properties ( const char *  name)

Returns a dict of the properties assigned to a router or AS.

Parameters
nameThe name of the router or AS
Returns
The properties
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.

Parameters
hostA SIMIX host
Returns
The speed of this host (in Mflop/s)
int simcall_host_get_core ( sg_host_t  host)

Returns the number of core of the processor.

Parameters
hostA SIMIX host
Returns
The number of core
xbt_swag_t simcall_host_get_process_list ( sg_host_t  host)

Returns the list of processes attached to the host.

Parameters
hostA SIMIX host
Returns
the swag of attached processes
double simcall_host_get_available_speed ( sg_host_t  host)

Returns the available speed of the processor.

Returns
Speed currently available (in Mflop/s)
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.

Parameters
hostA SIMIX host
Returns
1 if the host is available, 0 otherwise
double simcall_host_get_current_power_peak ( sg_host_t  host)

Returns the power peak of a host.

Parameters
hostA SIMIX host
Returns
the current power peak value (double)
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.

Parameters
hostA SIMIX host
pstate_indexpstate to test
Returns
the current power peak value (double) for pstate_index
int simcall_host_get_nb_pstates ( sg_host_t  host)

Returns the number of power states for a host.

Parameters
hostA SIMIX host
Returns
the number of power states
void simcall_host_set_pstate ( sg_host_t  host,
int  pstate_index 
)

Sets the pstate at which the host should run.

Parameters
hostA SIMIX host
pstate_indexThe 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.

Parameters
hostA SIMIX host
double simcall_host_get_consumed_energy ( sg_host_t  host)

Returns the total energy consumed by the host (in Joules)

Parameters
hostA SIMIX host
Returns
the energy consumed by the host (double)
e_smx_state_t simcall_process_execution_wait ( smx_synchro_t  execution)

Waits for the completion of an execution synchro and destroy it.

Parameters
executionThe execution synchro