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

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
Output:

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
2.6.9-42.0.2.ELsmp

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)

Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!

{ 6 comments… read them below or add one }

1 Arun 09.20.06 at 1:10 pm

Useful tips. Thanks.

2 Sonali 05.21.07 at 12:14 pm

Vivek,

It’s a very usefull link for me, thanks!

3 Javantea 10.03.07 at 5:55 pm

Useful information. I didn’t see that you say to press the number 1 until I looked a second time. Thanks.

4 Praveen Kannan 06.17.08 at 1:14 am

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

5 justin 08.14.08 at 3:43 am

It’s useful for me.

Thanks.

6 whocarez 09.24.08 at 9:31 am

Thanks. Googled for it and this is just what I needed.

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post: Linux: How to write a System V init script to start, stop, and restart my own application or service

Next post: How to: Backup Up and Restore the Solaris OS With ufsdump