• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 243
  • Last Modified:

cpu

i need to know the command to find    the numer of  cpu in the server I mean how many cpus are there in a server running  unix, linux

thnks
0
taaz
Asked:
taaz
3 Solutions
 
fosiul01Commented:
top command wills how you how many cpu you got
there is another one

i will give you the name 5 min
0
 
edster9999Commented:
cat /proc/cpuinfo | grep processor | awk '{count++} END {print count}'

This will give the CPU count but it will list dual core type processors as '2' as that is sort of what they are inside.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
fosiul01Commented:
sorry, some one already said this before me
0
 
Deepak KosarajuCommented:
use lshw -class processor
0
 
Deepak KosarajuCommented:

[root@pro02 ~]# lshw -class processor 
  *-cpu                   
       description: CPU
       product: Genuine Intel(R) CPU            1500  @ 2.00GHz
       vendor: Intel Corp.
       physical id: 1
       bus info: cpu@0
       version: 6.14.8
       serial: 0000-06E8-0000-0000-0000-0000
       slot: CPU Socket #0
       size: 1996MHz
       capacity: 1996MHz
       width: 32 bits
       clock: 133MHz
       capabilities: fpu fpu_exception wp pse tsc msr mce cx8 mtrr pge cmov mmx fxsr sse sse2 ss constant_tsc up pni
[root@pro02 ~]# lshw -class processor | grep -i "bus info"
       bus info: cpu@0    
[root@pro02 ~]# 

Open in new window

0
 
taazAuthor Commented:
thanks all
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now