Hi Arne / Didi / other green coding folks,
Thanks for publishing this project - I have a couple of questions about using this to turn utilisation figures into power figures in watts, to turn into carbon figures later, and I hope you can help.
I'm looking at coming up with some numbers for a few VMs on Hetzner to work out some better figures for the green web platform. We mainly a mix of the following instance types:
I believe these run on a mixture of Intel® Xeon® Gold or AMD EPYC™ 7002 processors.
If it helps provide some useful context, you can see a sketch below of the setup. The db server is a cx51, we have a scalable pool of cpx21s as app server workers, and a monitoring box is a cx21.

Here are the things I'd appreciate pointers on.
Working out the threads and cores, and frequency
I think I can use lscpu used to query the underlying cpu for each machine
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 40 bits physical, 48 bits virtual
CPU(s): 3
On-line CPU(s) list: 0-2
Thread(s) per core: 1
Core(s) per socket: 3
Socket(s): 1
NUMA node(s): 1
Vendor ID: AuthenticAMD
CPU family: 23
Model: 49
Model name: AMD EPYC Processor
Stepping: 0
CPU MHz: 2445.404
BogoMIPS: 4890.80
Hypervisor vendor: KVM
Virtualization type: full
L1d cache: 96 KiB
L1i cache: 96 KiB
L2 cache: 1.5 MiB
L3 cache: 16 MiB
From here, I'm assuming I'd use these values, as inputs for the spec power model, right?
Thread(s) per core: 1
Core(s) per socket: 3
CPU MHz: 2445.404
Working out the vhost ratio
vHost Ratio [float (0,1])
- The vHost ratio on the system you are on. If you are on a bare metal machine this is 1
- If you are a guest and have e.g. 24 of the 96 Threads than the ratio would be 0.25
- Currently the model cannot account for non-balanced CPU and memory ratios.
This I'm less confident about - I was under the impression the virtualisation / overcommitment ratio was usually obscured by cloud providers, and while companies like Hetzner have both dedicated VCPU variants as well as dedicated VCPU variants of virtual machines, I'm not sure how to represent this in when running this tool to turn utilisation figures into energy.
Do you have an example you have worked on before that I can use as a reference, or any pointers on how I'd estimate or otherwise account for the level of overcommitment of virtual CPUs to physical CPUs on a box?
Thanks and hope the eco-compute conference went well 👍
Hi Arne / Didi / other green coding folks,
Thanks for publishing this project - I have a couple of questions about using this to turn utilisation figures into power figures in watts, to turn into carbon figures later, and I hope you can help.
I'm looking at coming up with some numbers for a few VMs on Hetzner to work out some better figures for the green web platform. We mainly a mix of the following instance types:
I believe these run on a mixture of Intel® Xeon® Gold or AMD EPYC™ 7002 processors.
If it helps provide some useful context, you can see a sketch below of the setup. The db server is a cx51, we have a scalable pool of cpx21s as app server workers, and a monitoring box is a cx21.
Here are the things I'd appreciate pointers on.
Working out the threads and cores, and frequency
I think I can use
lscpuused to query the underlying cpu for each machineFrom here, I'm assuming I'd use these values, as inputs for the spec power model, right?
Working out the vhost ratio
This I'm less confident about - I was under the impression the virtualisation / overcommitment ratio was usually obscured by cloud providers, and while companies like Hetzner have both dedicated VCPU variants as well as dedicated VCPU variants of virtual machines, I'm not sure how to represent this in when running this tool to turn utilisation figures into energy.
Do you have an example you have worked on before that I can use as a reference, or any pointers on how I'd estimate or otherwise account for the level of overcommitment of virtual CPUs to physical CPUs on a box?
Thanks and hope the eco-compute conference went well 👍