Background
Let us figure out the bitness of our Linux OS.
Outline
- Commands
- lscpu
Commands
lscpu
Syntax
lscpu
Sample
lscpu
Output
Output – Image
Output – Textual
>lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 1 Core(s) per socket: 4 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 42 Model name: Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz Stepping: 7 CPU MHz: 3294.833 CPU max MHz: 3400.0000 CPU min MHz: 1600.0000 BogoMIPS: 6186.10 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 6144K NUMA node0 CPU(s): 0-3 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 rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm epb pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm ida arat pln pts md_clear flush_l1d >
Explanation
- Architecture
- Meaning:- Processor ( Hardware )
- Common Values
- x86_64
- 64-bit CPU
- x86_64
- CPU op-mode(s)
- Meaning:-
- Based on OS Installed, CPU Operating Mode ( Software )
- Common Values
- 32-bit, 64-bit
- Supports both 32 and 64-bits applications
- 32-bit, 64-bit
- Meaning:-
- CPU(s)
- Meaning
- Number of CPUs
- Common Values
- 4
- Meaning
- Cores Per Socket
- Meaning
- Number of Cores on each CPU Socket
- Common Values
- 4
- Meaning
- Sockets
- Meaning
- Number of Sockets
- Common Values
- 1
- Meaning
- NUMA Node
- Meaning
- Number of NUMA Nodes
- Common Values
- 1
- Meaning
Linux OS – Test Bed
Here is the Linux OS that we tried against:-
- CentOS
- Versions:- 8
References
- HowToGeek
- Lori Kaufman
- How to Check if Your Linux System Is 32-bit or 64-bit
Link
- How to Check if Your Linux System Is 32-bit or 64-bit
- Lori Kaufman