-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find the application's PID, "Baseline power hasn't been estimated", "Tracer was stopped" #1
Comments
Hi @mesld, Thanks for the feedback! First, when you are using the python API, you don't need to run In addition, the reason you can't find the PID of Lastly, for the base power estimation, currently you have to use Hope this clears things up a bit. |
Hi @HongyuHe, Thank you for your answer and your help! I am using energat directly in my program. Indeed, I modified the application a bit (changed the range of the for loop from 100 to 1000). You can see the output in the pictures after Steps. Regarding the issue with the directory, I now have removed the directory and placed directly the python application in the energat directory. Steps:
In order for it to stop the execution, I pressed ctrl+c (otherwise it was stuck in the same state). After pressing ctlr+c, I saw the following: I also tried the same steps all in the energat directory and it displayed the same. Thank you and have a nice day! :) |
Hi @mesld, Thanks for asking! For the missing baseline power, I'm sorry but I failed to reproduce it on a clean-slate server in the cloud. Could you check the following please?
For the keyboard interrupt, yes, the output is expected since you interrupt the running program. The point here is that energy traces will be saved even your program is crashed by the interrupt. Also, given your output, it seems that the energy tracing is working. Could you also check the output please? Let me know if you still have issues with it. |
Hi @HongyuHe, Thanks for your response! The following seems to have worked in home directory:
And there was no interrupt this time. Is this the correct output? Also in the final results, what is the 'p' in 'pkg'? Thank you and have a good evening :) |
Hi @mesld! Yes, that's the correct output. Glad to see it works for you now!
|
Hi @HongyuHe! Great :) Thank you! |
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 text was updated successfully, but these errors were encountered: