I am using freescale IMX6 quad processor. I want to know if the top
command lists the CPU usage of all 4 cores or of a single core. I am seeing an application's CPU usage being the same with 4 cores and with a single core. I was guessing the CPU usage by the application will increase on a single core and decrease on 4 cores but it has not changed.
Linux – top command on multi core processor
cpu usagelinuxparallelismtop
Best Answer
I'm not entirely sure what you're asking here. Yes,
top
shows CPU usage as a percentage of a single CPU by default. That's why you can have percentages that are >100. On a system with 4 cores, you can see up to 400% CPU usage.You can change this behavior by pressing I (that's Shift + i and toggles "Irix mode") while
top
is running. That will cause it to show the pecentage of available CPU power being used. As explained inman top
:Alternatively, you can press 1 which will show you a breakdown of CPU usage per CPU: