Breakend / experiment-impact-tracker

MIT License
275 stars 31 forks source link

PermissionError #55

Open dimitarsh1 opened 3 years ago

dimitarsh1 commented 3 years ago

Hi all,

I am trying to run some experiments but am getting the following error: PermissionError: [Errno 13] Permission denied: '/sys/class/powercap/intel-rapl/intel-rapl:0/energy_uj'

I am using a remote server that I cannot change the permissions of the /sys/class/powercap/ and the energy_uj is readable only by root.

Any ideas?

NatLun137 commented 3 years ago

I get the same error message....

vgaraujov commented 3 years ago

@dimitarsh1 Were you able to solve the problem? I have the same error.

dimitarsh1 commented 3 years ago

Hi @vgaraujov I didn't solve the problem. It seems that these files are not readable. So, at the end of the day, what I did is just removed those lines of code that collect CPU measures as I was interested in the GPU stats. I can share my "fix" with you if you want.

Cheers, Dimitar

Breakend commented 3 years ago

Hi all, apologies for the delay in following up on this. Currently, we assume that you have permissions to access CPU power readings. We were hesitant about adding automating fallbacks to GPU-only metrics since it might mislead into thinking something is more energy efficient than it is. If there is no way to get permissions for powercap and this is a common problem, we will work on adding an option to omit CPU readings like dimitarsh1 suggests and add warnings the outputs accordingly. If anyone has already done this and wants to submit a pull request, please feel free to do so.

vgaraujov commented 3 years ago

Hi @vgaraujov I didn't solve the problem. It seems that these files are not readable. So, at the end of the day, what I did is just removed those lines of code that collect CPU measures as I was interested in the GPU stats. I can share my "fix" with you if you want.

Cheers, Dimitar

Thanks for your answer @dimitarsh1 . It would really help me if you share the code you used with me. I'm also only interested in GPU measurements. Do you have a repository or can you email me at vgaraujo@uc.cl?

Best,

sohampoddar26 commented 8 months ago

If you have access to a sudo user, you can do chmod +r to all energy_uj files in powercap