CPU - Linux

About

CPU in a Linux context

How to

monitor

You can use the top or htop command line to get CPU monitoring metrics.

get information on the CPU ?

lscpu

lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                8
On-line CPU(s) list:   0-7
Thread(s) per core:    1
Core(s) per socket:    8
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 63
Model name:            Intel(R) Xeon(R) CPU E5-2673 v3 @ 2.40GHz
Stepping:              2
CPU MHz:               2394.462
BogoMIPS:              4788.92
Hypervisor vendor:     Microsoft
Virtualization type:   full
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              30720K
NUMA node0 CPU(s):     0-7

where:

cpuinfo

1 block of information by core

cat  /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 63
model name      : Intel(R) Xeon(R) CPU E5-2673 v3 @ 2.40GHz
stepping        : 2
microcode       : 0xffffffff
cpu MHz         : 2394.462
cache size      : 30720 KB
physical id     : 0
siblings        : 8
core id         : 0
cpu cores       : 8
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 15
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm fsgsbase bmi1 avx2 smep bmi2 erms xsaveopt
bogomips        : 4788.92
clflush size    : 64
cache_alignment : 64
address sizes   : 44 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 63
model name      : Intel(R) Xeon(R) CPU E5-2673 v3 @ 2.40GHz
stepping        : 2
microcode       : 0xffffffff
cpu MHz         : 2394.462
cache size      : 30720 KB
physical id     : 0
siblings        : 8
core id         : 1
cpu cores       : 8
apicid          : 1
initial apicid  : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 15
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm fsgsbase bmi1 avx2 smep bmi2 erms xsaveopt
bogomips        : 4788.92
clflush size    : 64
cache_alignment : 64
address sizes   : 44 bits physical, 48 bits virtual
power management:

..................
.................

You can see the cpu cache

Querying this output:

  • processor and core id
egrep 'processor|core id' /proc/cpuinfo

The number of processor ? (Core)

To display the number of existing CPUs, enter the following command:

grep processor /proc/cpuinfo | wc -l

or

grep -c ^processor /proc/cpuinfo

With:

The architecture

You can determine the architecture and the word size with the uname command

uname -p
x86_64
i686

where: where x86_64

If the command return unknown:

uname -a
Linux ssh1.60gp.ha.ovh.net 3.14.51-grsec-hosting-3.14-grsec-ipv6-64-vps #1 
SMP Mon Sep 28 15:14 UTC 2015 x86_64 GNU/Linux





Discover More
Cpu Moore Law Transistor
CPU - Word size (8, 16, 32 and 64-bit)

The bits number of a processor represents the size of a word. The number of bits in a word (the word size, word width, or word length) is an important characteristic of any specific computer architecture....
Card Puncher Data Processing
Instruction Set Architecture (ISA)

An describe the computer architecture at the highest level. It's the design of an environment that implements an instruction set. An ISA is implemented by a programmable device, the most common being...
Linux - Hostname (Kernel, Static)

How to manage the hostname under Linux. FQDN The static hostname is stored in /etc/hostname. Historically this file was supposed to only contain the hostname and not the full canonical FQDN....
Obi Edition
OBIEE 11G - Upgrade From OBIEE 11.1.1.7 To OBIEE 11.1.1.9

When you move from one 11g release to another, you do not use the Oracle Fusion Middleware Upgrade Assistant. Instead, you use various other tools including the Patch Set Assistant. Whereas upgrading...
Cpu Moore Law Transistor
What does x86_64 mean ?

When searching the type of cpu that your computer has, the output may gives x86_64 x86_64 means that you have a CPU with: * a X86 architecture * and a 64 bit word size With the uname linux command...
Cpu Moore Law Transistor
What is a CPU, the Central processing unit?

A CPU is just a device name that indicate a device that controls a computer system. A CPU is also known as: a or The fundamental operation of most CPUs, regardless of the physical form they take,...



Share this page:
Follow us:
Task Runner