Re:CPU-energy-meter: A tool for measuring energy consumption...
by speedgoose on Friday June 07, 2024 @02:29AM
(#40605847)
Are the energy consumption values reported by Intel CPUs accurate? Measuring energy consumption for cheap is hard, so I wonder whether they are big approximations or they have some magic tricks.
[ Parent
| on HN ]
Re:CPU-energy-meter: A tool for measuring energy consumption...
by lastgeniusua on Friday June 07, 2024 @04:47AM
(#40606664)
They've been verified to be fairly accurate:
Re:CPU-energy-meter: A tool for measuring energy consumption...
by ngneer on Friday June 07, 2024 @08:22AM
(#40607992)
Yes. Much earlier architectures (e.g., Sandy Bridge) used event counters as a rough approximation for energy consumption. However, these days, we use calibrated current sensors, not approximations. These are rather accurate. And accurate enough to do a side-channel attack, too. If software opts-in for security, we also add a little bit of randomness to the readings, in order to avoid measurements being too data-dependent to where crypto would be broken (PLATYPUS attack), but not enough to affect accuracy for normal use cases.