Linux: How to see dual Core AMD or Intel CPU statistics

last updated in Categories FAQ, Howto, Linux

Many new Linux sysadmin do not have idea about how to see dual core CPU (AMD or Intel D processor) statistics. You need to use following commands to see dual core stats.


The top program provides a dynamic real-time view of a running system. It can display system summary information as well as a list of tasks currently being managed by the Linux kernel. The types of system summary information shown and the types, order and size of information displayed for tasks are all user configurable and that configuration can be made persistent across restarts.

Task: Verify that you have dual core cpu

$ grep -i core /proc/cpuinfo

model name      : Dual Core AMD Opteron(tm) Processor 170
core id         : 0
cpu cores       : 2
model name      : Dual Core AMD Opteron(tm) Processor 170
core id         : 1
cpu cores       : 2

Task: Verify that you are running Linux smp kernel

$ uname -r

Task: See dual core CPU statistics using top command

Type top command:
$ top

Now you will see top but with core only. To enable or display stats press the number 1 and you should see individual CPU core stats:
Linux top command dual core stats
(Click to enlarge image)

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.


13 comment

  1. I tried grep -i core /proc/cpuinfo
    the system didnt output anything
    It just accepted the command without prompting an error.

  2. I looked all over for the command to display all CPU’s at once and finally found it,

    Im running 2 quad core processors and 64g of ram on a workstation, so I wanted to veryify both quadcores were working as they should be

  3. Hi, nice info. But the thing is, i want this output in the batch mode.
    top -n1 b

    So how do i get all cpu in this mode? Till now i’ve been quite unsuccessful.
    Basically i’ve written a script to capture the TOP output for techsupport. So there, interactive mode is not usefull.

  4. First off, thanks a lot for this useful website – extremely helpful info, commands, tips and tricks.
    I discovered, disappointedly though, that the %CPU column is “The percentage of a single CPU usage by the thread/process”. Now, to calculate the average CPU consumption, we need to divide this value by the number of CPUs. Is there a flag or option in “top” to make it show the average CPU consumption across all CPUs? I presume most people look at the column value and usually respond in alarm when a 2 processor machine or 2 core server is running at 100% whereas it is truly only consuming 50% of CPUs.

    1. Virkram,

      The command to switch to total CPU consumption with top running in interactive mode (the usual mode) is ‘I’.
      You might enter ‘I’ you will see the difference.

Leave a Comment