SimGrid  3.16
Versatile Simulation of Distributed Systems
msg_host.cpp File Reference

Functions

 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY (msg)
 
msg_host_t MSG_host_by_name (const char *name)
 Finds a msg_host_t using its name. More...
 
msg_error_t MSG_host_set_data (msg_host_t host, void *data)
 Set the user data of a msg_host_t. More...
 
voidMSG_host_get_data (msg_host_t host)
 Return the user data of a msg_host_t. More...
 
msg_host_t MSG_host_self ()
 Return the location on which the current process is executed. More...
 
void MSG_host_on (msg_host_t host)
 Start the host if it is off. More...
 
void MSG_host_off (msg_host_t host)
 Stop the host if it is on. More...
 
int MSG_get_host_number ()
 Return the current number MSG hosts. More...
 
xbt_dynar_t MSG_hosts_as_dynar ()
 Return a dynar containing all the hosts declared at a given point of time (including VMs) More...
 
double MSG_host_get_speed (msg_host_t host)
 Return the speed of the processor (in flop/s), regardless of the current load on the machine. More...
 
double MSG_get_host_speed (msg_host_t host)
 Return the speed of the processor (in flop/s), regardless of the current load on the machine. More...
 
int MSG_host_get_core_number (msg_host_t host)
 Return the number of cores. More...
 
void MSG_host_get_process_list (msg_host_t host, xbt_dynar_t whereto)
 Return the list of processes attached to an host. More...
 
const char * MSG_host_get_property_value (msg_host_t host, const char *name)
 Returns the value of a given host property. More...
 
xbt_dict_t MSG_host_get_properties (msg_host_t host)
 Returns a xbt_dict_t consisting of the list of properties assigned to this host. More...
 
void MSG_host_set_property_value (msg_host_t host, const char *name, char *value)
 Change the value of a given host property. More...
 
int MSG_host_is_on (msg_host_t host)
 Determine if a host is up and running. More...
 
int MSG_host_is_off (msg_host_t host)
 Determine if a host is currently off. More...
 
double MSG_host_get_power_peak_at (msg_host_t host, int pstate_index)
 Return the speed of the processor (in flop/s) at a given pstate. More...
 
int MSG_host_get_nb_pstates (msg_host_t host)
 Return the total count of pstates defined for a host. More...
 
xbt_dict_t MSG_host_get_mounted_storage_list (msg_host_t host)
 Return the list of mount point names on an host. More...
 
xbt_dynar_t MSG_host_get_attached_storage_list (msg_host_t host)
 Return the list of storages attached to an host. More...
 
xbt_dict_t MSG_host_get_storage_content (msg_host_t host)
 Return the content of mounted storages on an host. More...
 

Variables

int sg_storage_max_file_descriptors = 1024
 

Function Documentation

◆ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY()

XBT_LOG_EXTERNAL_DEFAULT_CATEGORY ( msg  )

Variable Documentation

◆ sg_storage_max_file_descriptors

int sg_storage_max_file_descriptors = 1024