How can I know the cpu usage of all 4 cores of iMX6q?

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

How can I know the cpu usage of all 4 cores of iMX6q?

1,590 Views
raymondman
Contributor II

Hi,

I am using dora/yocto and top shows the overall CPU usage. Pressing '1' does not show the 4 cores' usage. Are there any other tools that I can use?

Thanks in advance!

0 Kudos
3 Replies

1,246 Views
b36401
NXP Employee
NXP Employee

Please make sure that you are running all cores:

root@imx6qsabresd:~# cat /proc/cpuinfo |grep processor

processor       : 0

processor       : 1

processor       : 2

processor       : 3

root@imx6qsabresd:~#

By the way please note that additionally you can toggle irix mode on/off by typing "I" interactively in "top".

When irix mode is off cpu usage is divided by the number of cores. When it in on you see all the sum.

Have a great day,

Victor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,246 Views
raymondman
Contributor II

Hi Victor,

Thanks for your reply.

Yes, 4 cores are running.

"top" on dora/yocto does not perform the same as that on desktop Linux. Pressing "i" or "1" does not change its output.

Do you have further advice?

Thanks a lot.

1,246 Views
b36401
NXP Employee
NXP Employee

Perhaps some simplified /usr/bin/top is included there.

Please try the binary I attached.