LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-14-2023, 02:09 AM   #1
Ansen
LQ Newbie
 
Registered: Oct 2022
Posts: 17

Rep: Reputation: 0
How to get energy consumption from SOC


I am studying the SOC's energy comsumption.
And how to get the exactly value from ARM, GPU and DSP built in ?
Is there a register to read out the value, or other ways to get it?
 
Old 02-14-2023, 11:50 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,545

Rep: Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608
Quote:
Originally Posted by Ansen View Post
I am studying the SOC's energy comsumption.
And how to get the exactly value from ARM, GPU and DSP built in ?
Is there a register to read out the value, or other ways to get it?
No, there's nothing internal. There should be specs from the manufacturer, and power consumption may be continuously varying.

"Energy" I take to be Wattage. As a cpu is not purely resistive or capacitative, you'd have to measure current. Measuring heat is probably impractical. What you require is probably a ballpark maximum figure which engineers can use for thermal and power supply calculations. I would try to get the smallest series resistor possible in series with the highest voltage supply possible and measure voltage drop. I don't think magnetic current measurement is practical. In practise, round figures are used, e.g. 5W, not 4.8952W. Measuring parts of the SoC is only possible if you can externally disconnect them. Sometimes, the manufacturer helps. For instance:
  • i3-3110m, twin core & hd4000 graphics: Specified Wattage = 35W
  • Equivalent 4 core device with same graphics: Specified Wattage = 65W
Therefore we can estimate 15W per core & 5W for the sucky GPU.

With a good lab PSU and two multimeters, you should be able to get your small resistor along some length of pcb track, but be sure to calibrate and mark it accurately. The limiting factor is likely how small of a voltage drop can you measure. Set the voltage low, current limit the supply with am ammeter in series, and measure the voltage drop.
 
1 members found this post helpful.
Old 02-14-2023, 09:09 PM   #3
Ansen
LQ Newbie
 
Registered: Oct 2022
Posts: 17

Original Poster
Rep: Reputation: 0
Yes the "Energy" means Wattage.

I am going to make a app to get a power consumption of each thread of any app.
My way is to get a power consumption in a interval which the cpu's frequency changes from one to another.
Then the total of these power sonsumptions in each interval is what we want.

So how to get the each power consumption is the key.

But the information as I got is a different way for different SoC,eg: device tree for arm, rapl for intel x86, and others.
Is there a framework or a way for all SoC ?
 
Old 02-15-2023, 05:09 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,545

Rep: Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608
You won't do it. The power is part DC, part AC. Re Read my last post when you give up on a software solution. Oh, I'm sure you'll come up with a figure, but it will be rubbish.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Measure energy consumption sunita Linux - Newbie 1 03-07-2016 01:44 PM
an awk script to calculate energy consumption Faiza Al-Salti Linux - Networking 1 07-17-2014 12:20 PM
Optimizing nodes energy consumption for Mobile Ad Hoc Networks (MANET) Using Fuzzy lo must Linux - Wireless Networking 0 03-06-2014 06:45 PM
controlling energy consumption ns2 MounaRM Linux - Networking 2 04-21-2011 04:45 AM
Reducing Computer Energy Consumption Woodsman Slackware 1 10-04-2008 03:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration