Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Number of CPU cores 1

Status
Not open for further replies.

ddrillich

Technical User
Jun 11, 2003
546
0
0
US
Good Day,

How can I tell how many cores the servers has?

Many thanks.

Regards,
Dan
 
Thank you. I see the following -

[autonomy@sbkj2ksrchstp01 dan]$ grep "model name" /proc/cpuinfo
model name : Intel(R) Xeon(R) CPU E5410 @ 2.33GHz
model name : Intel(R) Xeon(R) CPU E5410 @ 2.33GHz
model name : Intel(R) Xeon(R) CPU E5410 @ 2.33GHz
model name : Intel(R) Xeon(R) CPU E5410 @ 2.33GHz
model name : Intel(R) Xeon(R) CPU E5410 @ 2.33GHz
model name : Intel(R) Xeon(R) CPU E5410 @ 2.33GHz
model name : Intel(R) Xeon(R) CPU E5410 @ 2.33GHz
model name : Intel(R) Xeon(R) CPU E5410 @ 2.33GHz

Regards,
Dan
 
Khalid,

Got the following -

[autonomy@sbkj2ksrchdihp01 logs]$ prtconf
bash: prtconf: command not found

Regards,
Dan
 
Sorry Dan! I'm coming from an AIX backgroud that's why!

Why don't you try dmidecode command? It has lots of nice HW listing.

Yet a more powerful tool is lshw which you will have to install! It has an option of creating a web page of your configuration!

Have a look here for more info:


Regards,
Khalid
 
The only other thing you can do to improve BadBigBen code is to add '| wc -l' at the end which will count the number of rows grep returns.

--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
I use "cat /proc/cpuinfo".

This shows you a lot more info on the cpu, and it gives a count on the processors starting at 0.

Sample output............
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 11
model name : Intel(R) Pentium(R) III CPU family 1266MHz
stepping : 1
cpu MHz : 1258.509
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse
bogomips : 2520.35

 
I do it the way happylinuxguy illustrated.

One other aside, depending on what level of "production" your server is in - the data on all the CPUs will usually appear in /var/log/syslog immediately after the system comes up from boot - there's usually a lot of interesting information in there right after boot.... So if it gets rebooted fairly often just check the log after.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top