PoiNtEr->: CPU Architecture Information On Ubuntu(Linux)

                             Difference between a dream and an aim. A dream requires soundless sleep, whereas an aim requires sleepless efforts.

Search This Blog

Tuesday, June 14, 2011

CPU Architecture Information On Ubuntu(Linux)


How do I find out my CPU architecture information under Linux operating systems?

You can use /proc/cpuinfo file or use the lscpu command to get info about CPU architecture. It will display information like:
  • Number of CPUs
  • Threads
  • Cores
  • Sockets
  • NUMA nodes
  • Information about CPU caches,
  • CPU family, model and stepping.
  • in human-readable format. Alternatively, it can print out in parsable
  • format including how different caches are shared by different CPUs,
  • which can also be fed to other programs.
Open a terminal and type the following command:
$ less /proc/cpuinfo




Output:

processor        : 0
vendor_id        : GenuineIntel
cpu family       : 6
model              : 15
model name     : Intel(R) Core(TM)2 Duo CPU     T5800  @ 2.00GHz
stepping           : 13
cpu MHz          : 2000.000
cache size        : 2048 KB
physical id       : 0
siblings            : 2
core id             : 0
cpu cores        : 2
apicid              : 0
initial apicid    : 0
fdiv_bug          : no
hlt_bug            : no
f00f_bug          : no
coma_bug        : no
fpu                   : yes
fpu_exception   : yes
cpuid level        : 10
wp                   : yes
flags               : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_
perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm dts
bogomips        : 3989.62
clflush size      : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 Duo CPU     T5800  @ 2.00GHz
stepping        : 13
cpu MHz         : 2000.000
cache size      : 2048 KB
physical id     : 0





OR
 


$ lscpu
Sample outputs:
Architecture:              i686
CPU op-mode(s):        32-bit, 64-bit
CPU(s):                       2
Thread(s) per core:    1
Core(s) per socket:    2
CPU socket(s):           1
Vendor ID:                 GenuineIntel
CPU family:                6
Model:                       15
Stepping:                   13
CPU MHz:                  800.000
L1d cache:                32K
L1i cache:                 32K
L2 cache:              2048K

1 comment: