hongyuhe / energat Goto Github PK
View Code? Open in Web Editor NEW๐๐ฏ Thread-level, NUMA-aware energy attribution model for multi-tenancy
Home Page: https://cutt.ly/energat
License: MIT License
๐๐ฏ Thread-level, NUMA-aware energy attribution model for multi-tenancy
Home Page: https://cutt.ly/energat
License: MIT License
I am interested in measuring the power consumption of a docker container.
tracer.py logs a critical error if rapl_interval_sec < 0.05.
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):
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.
#asked for password
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
To Reproduce
Steps to reproduce the behavior:
Thank you for your help!
Have a nice day :)
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.