SimGrid  3.21
Versatile Simulation of Distributed Systems
simgrid::plugin::dvfs::Governor Class Referenceabstract

Detailed Description

Add this to your host tag:

  • <prop id="plugin/dvfs/governor" value="performance" />

Valid values as of now are: performance, powersave, ondemand, conservative It doesn't matter if you use uppercase or lowercase.

For the sampling rate, use this:

  • <prop id="plugin/dvfs/sampling-rate" value="2" />

This will run the update() method of the specified governor every 2 seconds on that host.

These properties can also be used within the <config> tag to configure these values globally. Using them within the <host> will overwrite this global configuration

Inherited by simgrid::plugin::dvfs::Conservative, simgrid::plugin::dvfs::OnDemand, simgrid::plugin::dvfs::Performance, and simgrid::plugin::dvfs::Powersave.

Public Member Functions

 Governor (simgrid::s4u::Host *ptr)
 
virtual ~Governor ()=default
 
virtual std::string get_name () const =0
 
simgrid::s4u::Hostget_host () const
 
int get_min_pstate () const
 
int get_max_pstate () const
 
void init ()
 
virtual void update ()=0
 
double get_sampling_rate () const
 

Constructor & Destructor Documentation

◆ Governor()

simgrid::plugin::dvfs::Governor::Governor ( simgrid::s4u::Host ptr)
inlineexplicit

◆ ~Governor()

virtual simgrid::plugin::dvfs::Governor::~Governor ( )
virtualdefault

Member Function Documentation

◆ get_name()

virtual std::string simgrid::plugin::dvfs::Governor::get_name ( ) const
pure virtual

◆ get_host()

simgrid::s4u::Host* simgrid::plugin::dvfs::Governor::get_host ( ) const
inline

◆ get_min_pstate()

int simgrid::plugin::dvfs::Governor::get_min_pstate ( ) const
inline

◆ get_max_pstate()

int simgrid::plugin::dvfs::Governor::get_max_pstate ( ) const
inline

◆ init()

void simgrid::plugin::dvfs::Governor::init ( )
inline

◆ update()

virtual void simgrid::plugin::dvfs::Governor::update ( )
pure virtual

◆ get_sampling_rate()

double simgrid::plugin::dvfs::Governor::get_sampling_rate ( ) const
inline

The documentation for this class was generated from the following file: