How to calculate the CPU load on IMX8dx processor

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to calculate the CPU load on IMX8dx processor

166 Views
Chandramohan_M
Contributor I

We have custom device, there we are using the imx8dx as processor, Now we have to calculate the cpu load, when we are using uptime command and top command to see the output .

$uptime command ouptut as mentioned below

up  2:55,  load average: 3.68, 3.69, 3.69

load average: 3.96, 3.69, 3.63
load average: 4.59, 4.09, 3.79
load average: 3.61, 3.79, 3.72
load average: 3.91, 3.78, 3.72
load average: 3.51, 3.63, 3.67
load average: 4.19, 3.83, 3.7

For example:

load  average for 1 min : 3.68

load  average for 5 min : 3.69

load  average for 15 min : 3.69

 

Now the question is how to calculate the CPU load on the processor ? 

for example : cpu load = load for 15 min * 100 /2 (Number of processors)

in this case cpu load = 3.69*100/2 = 184.5% , its going beyond 100%

How is it possible ? system can work about 100% ?

responses are welcome and advance thanks ..

 

0 Kudos
Reply
1 Reply

146 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Is better to use command "top".

 

Regards

0 Kudos
Reply