Number of CPU in LINUX server

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Number of CPU in LINUX server
# 1  
Old 04-26-2010
Number of CPU in LINUX server

I want to find number of CPU and number NIC card in Linux server.

I have below content in /proc/cpuinfo. I have from processor 0 - 15. It means, i have 15 similar entries in that file. How many CPU we have on this server? also how do find how many NIC card on this?

Code:
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 6
model name      :                   Intel(R) Xeon(TM) CPU 3.20GHz
stepping        : 8
cpu MHz         : 3192.180
cache size      : 8192 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 6
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall lm pni monitor ds_cpl est tm2 cid cx16 xtpr lahf_lm
bogomips        : 6393.99
clflush size    : 64
cache_alignment : 128
address sizes   : 40 bits physical, 48 bits virtual


Last edited by pludi; 04-26-2010 at 12:43 PM.. Reason: code tags, please...
# 2  
Old 04-26-2010
0 - 15 means 16 CPU cores.
# 3  
Old 04-26-2010
thanks,
# 4  
Old 04-26-2010
You may not have 16 CPU cores. With technologies like hyperthreading, you may have fewer total CPU cores however you will have 16 logical cores (The difference is that the logical cores may share resources and may not be real CPU cores).

Your best bet would be to find the type of CPU in your system. Here is one way to do so:
Code:
dmidecode | grep -i CPU
        Version: Intel(R) Xeon(R) CPU           E5530  @ 2.40GHz
        Version: Intel(R) Xeon(R) CPU           E5530  @ 2.40GHz

Compare that to:
Code:
cat /proc/cpuinfo | grep -i proc
processor       : 0
processor       : 1
processor       : 2
processor       : 3
processor       : 4
processor       : 5
processor       : 6
processor       : 7
processor       : 8
processor       : 9
processor       : 10
processor       : 11
processor       : 12
processor       : 13
processor       : 14
processor       : 15

I know for a fact that I have only 8 discrete CPU cores, 4 on each of 2 sockets.

Now, to find out how many ethernet cards you have:
Code:
ifconfig -a | grep -i eth
eth0      Link encap:Ethernet  HWaddr 00:08:74:XX:XX:XX (X to block out my real MAC address)

# 5  
Old 04-27-2010
You may also use lshw command to list out hardware details in more user friendly manner.
# 6  
Old 05-09-2010
use lspci to list all pci on your box
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Is it possible to combine multiple CPU to act as a single CPU on the same server?

We have a single threaded application which is restricted by CPU usage even though there are multiple CPUs on the server, hence leading to significant performance issues. Is it possible to merge / combine multiple CPUs at OS level so it appear as a single CPU for the application? (6 Replies)
Discussion started by: Dissa
6 Replies

2. Red Hat

CPU high - apache real server OK, virtual server not

Got two RHEL servers - one real and one virtual/cloud. Both run apache web server. When traffic is applied, CPU seems to go quite high on virtual one (20%) but real is not really affected. Worry is that a further increase in traffic will see a problem. Experience of RHEL is limited. Whats... (2 Replies)
Discussion started by: psychocandy
2 Replies

3. AIX

Number of CPU & Number of Core

root:/> # lscfg -vp|grep -c -E 'proc.*Processor' 8 root:/> # lscfg -vpl sysplanar0 | grep -i way 8 WAY PROC CUOD : 8 WAY PROC CUOD : 8 WAY PROC CUOD : 8 WAY PROC CUOD : 8 WAY PROC CUOD : 8 WAY PROC CUOD : I have this output and need to know how... (3 Replies)
Discussion started by: Daniel Gate
3 Replies

4. Shell Programming and Scripting

Identify CPU usage on the Linux server

We are using linux server. We have below script running on the crontab and it send the alert if the cpu usage is above 90%. My question is, the below script tells the CPU usage for one CPU or all CPU in the server? sar 1 1 | sed '$!d' | awk '{printf("%d", $8)}' > $SAR_LOG Please let me... (4 Replies)
Discussion started by: govindts
4 Replies

5. Solaris

Number of CPU and Memory information in SunOS server?

I have SunOS and here is the version details SunOS chfdalsun003 5.10 Generic_138888-03 sun4u sparc SUNW,Sun-Fire-V890 I have couple of questions. How do i see number of CPU's in the server? How can i see the Server memory(RAM)? The detail memory information like(total, used, free etc).... (6 Replies)
Discussion started by: govindts
6 Replies

6. Red Hat

Number of CPU in linux server

I am using linux server.. how do i see number of CPU's in the server? TOP command is not providing result.. Any help is highly appreciated. (8 Replies)
Discussion started by: govindts
8 Replies

7. Solaris

Number of CPU

Hi Experts, with the help of which command we can see the Number of cpu in a solaris solaris5.10.Also how we know the total disk & free disk space size in this system. Kind regards ---------- Post updated at 12:25 PM ---------- Previous update was at 12:25 PM ---------- Command... (10 Replies)
Discussion started by: rafiassam
10 Replies

8. UNIX for Dummies Questions & Answers

how to get persistant cpu utilization values per process per cpu in linux (! top,ps)

hi, i want to know cpu utilizatiion per process per cpu..for single processor also if multicore in linux ..to use these values in shell script to kill processes exceeding cpu utilization.ps (pcpu) command does not give exact values..top does not give persistant values..psstat,vmstat..does njot... (3 Replies)
Discussion started by: pankajd
3 Replies

9. Solaris

How to down a particular CPU in a server, witch is having 16 CPU's

Hi.., my dout is a solaris server is having 16 cpu's. in tht one cpu running some error process, accupaying more space. I wanna down tht particular CPU only with out interrupting the other 15 CPU's. how can i do this. is there any command for this ?? (5 Replies)
Discussion started by: b.janardhanguru
5 Replies

10. Solaris

number of cpu's

How can I tell how many cpu's are on a solaris 9 sunfire? (3 Replies)
Discussion started by: csaunders
3 Replies
Login or Register to Ask a Question