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,604件の閲覧回数
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,260件の閲覧回数
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,260件の閲覧回数
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,260件の閲覧回数
b36401
NXP Employee
NXP Employee

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

Please try the binary I attached.