lscpu

All

Intro

Stackoverflow can be source of great knowledge ~ with some reading. I was doing some tests with thread dumps in EAP JBoss, analyzing some here and there. Then I came to this tool: lscpu.

lscpu

Lscpu man page displays the information about the CPU, as below:

~~~
[fdemeloj@fdemeloj home]$ 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:    2
Core(s) per socket:    4
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 142
Model name:            Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
Stepping:              10
CPU MHz:               797.497
CPU max MHz:           4200.0000
CPU min MHz:           400.0000
BogoMIPS:              4224.00
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              8192K
NUMA node0 CPU(s):     0-7
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 pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 ibpb ibrs stibp dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp spec_ctrl intel_stibp
~~~

The information

CPU The logical CPU number of a CPU as used by the Linux kernel.

CORE The logical core number. A core can contain several CPUs.

SOCKET The logical socket number. A socket can contain several cores.

BOOK The logical book number. A book can contain several sockets.

NODE The logical NUMA node number. A node may contain several books.

CACHE Information about how caches are shared between CPUs.

ADDRESS The physical address of a CPU.

ONLINE  Indicator that shows whether the Linux instance currently makes use of the CPU.

REFs

   Original question Stackoverflow

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s