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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,601 次查看
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 项奖励
3 回复数

1,257 次查看
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 项奖励

1,257 次查看
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,257 次查看
b36401
NXP Employee
NXP Employee

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

Please try the binary I attached.