Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Simplify the code taking Cpu::m_speedPeak changes into account
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 4 Jan 2016 10:31:42 +0000 (11:31 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 4 Jan 2016 10:31:42 +0000 (11:31 +0100)
commitb35d70d6818026204833410d2e3917252fa35127
treeb587a3c5f60dfecc9a1a33d4494fb15442182399
parent20b076334ae1f2b08b294022ed73aad39a7eb934
Simplify the code taking Cpu::m_speedPeak changes into account

The DVFS change set failed to do the right thing and instead added the
current speed as a bound to any execution action (in addition, this
code was in simix while this performance modeling clearly belongs to
surf). I guess that this was not playing well with availability
changes due to a trace, since that extra bound was not recomputed
correctly.

Instead, factorize the code of trace availability events with the
m_speedPeak changes created by DVFS. This creates a new Cpu event
called onSpeedChange, which is still to be exported properly. For now,
only the tracing code listen to that event (it's hardcoded).
src/simix/smx_host.cpp
src/surf/cpu_cas01.cpp
src/surf/cpu_cas01.hpp
src/surf/cpu_interface.cpp
src/surf/cpu_interface.hpp