Coder Social home page Coder Social logo

DRAM consumption output about pyrapl HOT 3 CLOSED

powerapi-ng avatar powerapi-ng commented on August 17, 2024 2
DRAM consumption output

from pyrapl.

Comments (3)

av1m avatar av1m commented on August 17, 2024

I take advantage of this issue to add that the return in seconds seems strange to me.
Indeed, I get results such as [9643.0], [12817.0] for a code that runs in 0.4 seconds

Here is the code

import pyRAPL
pyRAPL.setup()

baz = pyRAPL.Measurement("baz")
baz.begin()
list(range(10000))
baz.end()
print(baz.result.dram)
# [12024.0]

from pyrapl.

smenard avatar smenard commented on August 17, 2024

In the class DramAPI, the file read is energy_uj same name as the one in PkgAPI, guessing that it means energy in micro joule.

from pyrapl.

Andlexex avatar Andlexex commented on August 17, 2024

I would also say, that there is an error in the documentation. The average power that 8gb of RAM require is approx 3W (as a rule of thumb). I ran pyRAPL on just my system for 10 minutes and recorded the energy usage per second into a file.

The results show, that my RAM (of which 0.96GB were allocated at that time) would consume 2063.622961J which corresponds to a power demand of approx 3.439371W.
This would somewhat approve the assumption of the output being displayed in micro Joules for the RAM as well.

from pyrapl.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.