marmelab / greenframe-cli

Estimate the carbon footprint of a user scenario on a web application
https://greenframe.io
Other
220 stars 9 forks source link

Unclear syntax in calculation formulas in scientific model. #38

Closed cuvar closed 1 year ago

cuvar commented 1 year ago

I've been reading through your scientific model and I came across some irritating syntax. So the following paragraph

  • cpuWh = pue avg(cpu.totalUsageInUserMode + cpu.totalUsageInKernelMode) config.CPU / 3600
  • memWh = pue avg(memory.usage) config.MEM * totalTime / 3600
  • diskWh = pue avg(io.totalByte) config.DISK
  • networkWh = avg(network.totalReceived + network.totalTransmitted) * config.NETWORK / 2
  • screenWh = avg(userTime) * config.SCREEN / 3600

contains this specific expressions:

pue _ ...

I'm unsure what this expression should be saying. E.g. is it a multiplication or division? However, this might as well be missing knowledge on my side for scientific maths. I would appreciate some clarification here! Thanks

guilbill commented 1 year ago

The PUE is the Power Usage Effectiveness : https://en.wikipedia.org/wiki/Power_usage_effectiveness

fzaninotto commented 1 year ago

Sorry for the unclear syntax, I've just fixed it.