SimGrid  3.21
Versatile Simulation of Distributed Systems
host_energy.cpp File Reference
#include "simgrid/plugins/energy.h"
#include "simgrid/s4u/Engine.hpp"
#include "src/kernel/activity/ExecImpl.hpp"
#include "src/include/surf/surf.hpp"
#include "src/plugins/vm/VirtualMachineImpl.hpp"
#include "src/surf/cpu_interface.hpp"
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp>

Classes

class  simgrid::plugin::PowerRange
 
class  simgrid::plugin::HostEnergy
 

Namespaces

 simgrid
 
 simgrid::plugin
 

Functions

 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (surf_energy, surf, "Logging specific to the SURF energy plugin")
 
static void on_simulation_end ()
 
static void on_creation (simgrid::s4u::Host &host)
 
static void on_action_state_change (simgrid::surf::CpuAction *action, simgrid::kernel::resource::Action::State)
 
static void on_host_change (simgrid::s4u::Host &host)
 
static void on_host_destruction (simgrid::s4u::Host &host)
 
void sg_host_energy_plugin_init ()
 Enable host energy plugin. More...
 
void sg_host_energy_update_all ()
 updates the consumption of all hosts More...
 
double sg_host_get_consumed_energy (sg_host_t host)
 Returns the total energy consumed by the host so far (in Joules) More...
 
double sg_host_get_idle_consumption (sg_host_t host)
 Get the amount of watt dissipated when the host is idling. More...
 
double sg_host_get_wattmin_at (sg_host_t host, int pstate)
 Get the amount of watt dissipated at the given pstate when the host is idling. More...
 
double sg_host_get_wattmax_at (sg_host_t host, int pstate)
 Returns the amount of watt dissipated at the given pstate when the host burns CPU at 100%. More...
 
double sg_host_get_current_consumption (sg_host_t host)
 Returns the current consumption of the host. More...
 

Function Documentation

◆ XBT_LOG_NEW_DEFAULT_SUBCATEGORY()

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( surf_energy  ,
surf  ,
"Logging specific to the SURF energy plugin"   
)

◆ on_simulation_end()

static void on_simulation_end ( )
static

◆ on_creation()

static void on_creation ( simgrid::s4u::Host host)
static

◆ on_action_state_change()

static void on_action_state_change ( simgrid::surf::CpuAction *  action,
simgrid::kernel::resource::Action::State   
)
static

◆ on_host_change()

static void on_host_change ( simgrid::s4u::Host host)
static

◆ on_host_destruction()

static void on_host_destruction ( simgrid::s4u::Host host)
static