Linux Command To Find the System Configuration And Hardware Information

Hello guys.
I wanted to find the System Configuration and Hardware Information on one of my servers. Here is part of the cpu info:

  CPU core info:
  processor       : 0
  vendor_id       : GenuineIntel
  cpu family      : 6
  model           : 44
  model name      : Intel(R) Xeon(R) CPU           X5675  @ 3.07GHz
  stepping        : 2
  cpu MHz         : 3065.958
  cache size      : 12288 KB
  physical id     : 0
  siblings        : 1
  core id         : 255
  cpu cores       : 1
  fpu             : yes
  fpu_exception   : yes
  cpuid level     : 11
  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 nx pdpe1gb rdtscp                                                                               lm pni monitor ds_cpl est tm2 cx16 xtpr popcnt lahf_lm
  bogomips        : 6135.94
  clflush size    : 64
  cache_alignment : 64
  address sizes   : 40 bits physical, 48 bits virtual
  power management:
   
  number of CPU cores:
  cat /proc/cpuinfo | grep processor | wc -l
  8
  

then I googled the server type(ProLiant DL380 G7) and found this document:
HP ProLiant DL380 Generation 7 '('G7')' '('QuickSpecs'/'c04286665.pdf')'
If you take a look at it you'll see a conflict in number of cpu cores!!
Can you explain why this happened?
Someone told me it's because of the kernel version but I kind of doubt about it! Here is some info about our server:

Linux 2.6.9-89.0.0.0.1.ELsmp x86_64
Red Hat Enterprise Linux AS release 4 (Nahant Update 8)

So according the docs you would expect 12 cores? Can you verify this in the bios?

Anyway, you could check if it is a case of cores being offline to save power:

cat /sys/devices/system/cpu/online
cat /sys/devices/system/cpu/offline

To check if the kernel was compiled to support less cores do a:

grep NR_CPUS /boot/config-`uname -r`
1 Like

yes exactly. i expected 12 cores.
unfortunately these command dosnt work:

cat /sys/devices/system/cpu/online
cat /sys/devices/system/cpu/offline

here is the output:

cat /sys/devices/system/cpu/online
cat: /sys/devices/system/cpu/online: No such file or directory
cat /sys/devices/system/cpu/offline
cat: /sys/devices/system/cpu/offline: No such file or directory
 grep NR_CPUS /boot/config-`uname -r`
CONFIG_NR_CPUS=8

thank you.