Reading CPU Power draw

Is there any way to read the power draw of the CPU from within Linux (something along the lines of Intel RAPL)?

I would like to get some real time power draw data of the CPU package (or more granular if possible) without reading from an external PSU.

Hi @vielster

Is there any way to read the power draw of the CPU from within Linux (something along the lines of Intel RAPL)?

For Intel CPUs, you can use the Perf Tool, which has support for RAPL. For ARM Processors, we don’t know if soemthing similar exists.

Further you can find the Power Consumption Measurement of iMX8MQ done by NXP here.

What is your use-case? Why cannot you just check for the power drawn form a external PSU?

Best regards,
Jaski

Best regards, Jaski

Yeah, you should do this. I am not aware if iMX8 has anything integrated to measure its own power draw. Further I think also for Intel RAPL, you need to have intel hardware around the CPU to measure the Power Consumption.

Best regards,
Jaski

We do have an external PSU we can use to check power draw, and that’s probably the route we’ll end up going. I was just curious to see if there was anything we could read from to get the power draw of the CPU itself.

Thanks