A VM represents a virtual machine (or a container) that hosts actors.
The total computing power that the contained actors can get is constrained to the virtual machine size.
|
| VirtualMachine (const char *name, s4u::Host *hostPm, int coreAmount) |
|
| VirtualMachine (const char *name, s4u::Host *hostPm, int coreAmount, size_t ramsize) |
|
| VirtualMachine (VirtualMachine const &)=delete |
|
VirtualMachine & | operator= (VirtualMachine const &)=delete |
|
void | start () |
|
void | suspend () |
|
void | resume () |
|
void | shutdown () |
|
bool | isMigrating () |
|
void | getParameters (vm_params_t params) |
|
void | setParameters (vm_params_t params) |
|
simgrid::s4u::Host * | getPm () |
|
size_t | getRamsize () |
|
void | setRamsize (size_t ramsize) |
|
void | setBound (double bound) |
|
e_surf_vm_state_t | getState () |
|
| Host (const char *name) |
|
void | destroy () |
| Fire the required callbacks and destroy the object. More...
|
|
| Host (Host const &)=delete |
|
Host & | operator= (Host const &)=delete |
|
simgrid::xbt::string const & | getName () const |
| Retrieves the name of that host as a C++ string. More...
|
|
const char * | getCname () const |
| Retrieves the name of that host as a C string. More...
|
|
void | actorList (std::vector< ActorPtr > *whereto) |
| Return the list of actors attached to an host. More...
|
|
void | turnOn () |
| Turns that host on if it was previously off. More...
|
|
void | turnOff () |
| Turns that host off. More...
|
|
bool | isOn () |
| Returns if that host is currently up and running. More...
|
|
bool | isOff () |
| Returns if that host is currently down and offline. More...
|
|
double | getSpeed () |
| Get the peak processor speed (in flops/s), at the current pstate. More...
|
|
int | getCoreCount () |
| Returns the number of core of the processor. More...
|
|
std::map< std::string, std::string > * | getProperties () |
| Get the properties assigned to a host. More...
|
|
const char * | getProperty (const char *key) |
| Retrieve the property value (or nullptr if not set) More...
|
|
void | setProperty (std::string key, std::string value) |
|
void | getProcesses (std::vector< ActorPtr > *list) |
| Get the processes attached to the host. More...
|
|
double | getPstateSpeed (int pstate_index) |
| Get the peak processor speed (in flops/s), at the specified pstate. More...
|
|
int | getPstatesCount () const |
|
void | setPstate (int pstate_index) |
| Set the pstate at which the host should run. More...
|
|
int | getPstate () |
| Retrieve the pstate at which the host is currently running. More...
|
|
void | getAttachedStorages (std::vector< const char *> *storages) |
| Returns the list of storages attached to an host. More...
|
|
std::unordered_map< std::string, Storage * > const & | getMountedStorages () |
| Get an associative list [mount point]->[Storage] of all local mount points. More...
|
|
void | routeTo (Host *dest, std::vector< Link *> &links, double *latency) |
| Find a route toward another host. More...
|
|
void | routeTo (Host *dest, std::vector< surf::LinkImpl *> &links, double *latency) |
| Just like Host::routeTo, but filling an array of link implementations. More...
|
|
void | execute (double flops) |
| Block the calling actor on an execution located on the called host. More...
|
|
double | getLoad () |
| Returns the current computation load (in flops per second) More...
|
|
| Extendable () |
|
| ~Extendable () |
|
void * | extension (std::size_t rank) |
|
U * | extension (Extension< Host, U > rank) |
|
U * | extension () |
|
void | extension_set (std::size_t rank, void *value, bool use_dtor=true) |
|
void | extension_set (Extension< Host, U > rank, U *value, bool use_dtor=true) |
|
void | extension_set (U *p) |
|