GithubHelp home page GithubHelp logo

hongyuhe / energat Goto Github PK

View Code? Open in Web Editor NEW
52.0 1.0 6.0 7.48 MB

๐Ÿ”‹๐ŸŽฏ Thread-level, NUMA-aware energy attribution model for multi-tenancy

Home Page: https://cutt.ly/energat

License: MIT License

Python 30.40% Shell 22.18% C++ 29.84% C 17.58%
energy-consumption energy-efficiency energy-monitor power-management power-monitor sustainable-computing

energat's People

Contributors

hongyuhe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

energat's Issues

Cannot find the application's PID, "Baseline power hasn't been estimated", "Tracer was stopped"

Problem
I installed EnergAt, and both finding the baseline power and checking the system worked (please see the output from the terminal in the attached pictures in the section "To Reproduce").
Then I created a directory named "my_directory" in the "energat" directory (the cloned one), and created a Python file named "first.py" with the proposed application from the EnergAt README.md file (see below):
image

However, in order to run this application, I need its PID, and I could not find it.
Thus I tried to run the application directly in the terminal (by only entering "..energat/my_directory/first.py") but it first claimed that the baseline was not estimated, then asked for password (even though I did not run with "sudo" in the command), and then continued to run and finally displayed a Warning saying that the tracer was stopped. The following pictures illustrate what I am describing.
image
#asked for password
image

You can see it also displays different PIDs but I do not know what to do with them.
Could you please help me find the application's PID for the command "sudo energat -pid " to make the application run?

System

  • EnergAt version: 1.0.6
  • OS version: Ubuntu 22.04.2

To Reproduce
Steps to reproduce the behavior:

  1. I first cloned the git repository, then went into "./scripts/setup/" and configured the host system by running the file "init_system.sh".
  2. After having run init_system.sh, I entered "sudo python -m pip install energat" in the terminal.
  3. I entered "sudo energat -basepower" and it displayed the following:
    image
  4. Then I entered "sudo energat -check" and it displayed the following:
    image
  5. Created a directory "my_directory" in the cloned energat directory
  6. Created a file "first.py" in "my_directory" and copy-pasted the proposed application
  7. I could not find the pid and tried to run the application directory from the terminal. It did not seem to work.

Thank you for your help!
Have a nice day :)

AttributeError: module 'os' has no attribute 'sysconf'

the line number 60 in common.py file raises an error for my system and says "os has no attribute 'sysconf'"
"""Number of clock ticks per second."""
CLK_TCK_PER_SEC: int = os.sysconf(os.sysconf_names["SC_CLK_TCK"])

File "D:\Job\Expermient\AI_tools_to_track_the_emission\venv\lib\site-packages\energat\common.py", line 60, in
CLK_TCK_PER_SEC: int = os.sysconf(os.sysconf_names["SC_CLK_TCK"])
AttributeError: module 'os' has no attribute'sysconf''

I have installed Python 3.10 on my system.

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.