Skip to content

Reduce inefficiencies in the PMT tool RAPL API

Adrien Devresse requested to merge RAC-85-inefficiencies-rapl-tackle into master

Ticket Link

https://jira.skatelescope.org/browse/RAC-85

Problem Current RAPL measurement plugin in the PMT Tool has some inefficiencies.

Files are open/read/closed every second for every measurement A lot of unnecessary memory allocation are done The code logic use iostream for file operation without proper error checking which might return invalid values

Proposed solution The fixes for this are rather straightforward.

Use directly the POSIX API instead of iostream Keep file descriptor opens during the measurement session Remove dependency on iostream.

Merge request reports

Loading