HongyuHe / energat

🔋🎯 Thread-level, NUMA-aware energy attribution model for multi-tenancy
https://cutt.ly/energat
MIT License
53 stars 5 forks source link

Can I run this repo in a docker container? #2

Open rexxy-sasori opened 1 year ago

rexxy-sasori commented 1 year ago

I am interested in measuring the power consumption of a docker container.

HongyuHe commented 1 year ago

Hi @rexxy-sasori! Yes, you can measure the energy consumption of a docker:

$ sudo energat -basepower
$ sudo energat -pid <PID of your container>

But you can't use it inside a container since the hardware counters aren't propagated into the virtual environment.