Howto: Linux detect or find out a dual-core cpu

by Vivek Gite on August 29, 2006 · 4 comments

Q. How do I find out my cpu is a dual-core cpu on Cent Os Linux?

A. Following are are few tips for identifying whether a cpu is dual-core or not. Please note there are few factors that might give your wrong result. For example wrong kernel image installed.

Task: Display CPU information

Type the following command to get overall cpu info:
$ less /proc/cpuinfo

Task: Identif whether a cpu is dual-core or not

$ grep cores /proc/cpuinfo
Output:

cpu cores       : 2

Or type following command:
$ grep "core id" /proc/cpuinfo

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 4 comments… read them below or add one }

1 Girish June 25, 2007

Hi.. Can u plz say how to find the details in windows too??

Reply

2 smuck February 25, 2009

yawn….
my computer properties

Reply

3 demonhill June 16, 2009

Hi,
I got this (below) in my dual cores… does the result is correct
executed this grep cores /proc/cpuinfo and it produces below two lines …

cpu cores : 1
cpu cores : 1

:)
Demonhill

Reply

4 bianggio22 October 19, 2009

I have a Dell power edge 2650 intel xeon dual-core server, i’ve runned these commands and i’ve got these, my question is these output command is OK?

root@shadow:~# grep -i core /proc/cpuinfo
core id : 0
cpu cores : 1
core id : 0
cpu cores : 1
core id : 0
cpu cores : 1
core id : 0
cpu cores : 1
root@shadow:~# grep cores /proc/cpuinfo
cpu cores : 1
cpu cores : 1
cpu cores : 1
cpu cores : 1
root@shadow:~# grep “core id” /proc/cpuinfo
core id : 0
core id : 0
core id : 0
core id : 0

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 9 + 3 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.



Previous post:

Next post: