Linux – OS – Bitness

Background

Let us figure out the bitness of our Linux OS.

Outline

  1. Commands
    • lscpu

Commands

lscpu

Syntax


lscpu

Sample


lscpu

Output

Output – Image

lscpu.01.20200519.1020PM

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

  1. Architecture
    • Meaning:- Processor ( Hardware )
    • Common Values
      • x86_64
        • 64-bit CPU
  2. 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
  3. CPU(s)
    • Meaning
      • Number of CPUs
    • Common Values
      • 4
  4. Cores Per Socket
    • Meaning
      • Number of Cores on each CPU Socket
    • Common Values
      • 4
  5. Sockets
    • Meaning
      • Number of Sockets
    • Common Values
      • 1
  6. NUMA Node
    • Meaning
      • Number of NUMA Nodes
    • Common Values
      • 1

 

Linux OS – Test Bed

Here is the Linux OS that we tried against:-

  1. CentOS
    • Versions:- 8

 

References

  1. HowToGeek
    • Lori Kaufman
      • How to Check if Your Linux System Is 32-bit or 64-bit
        Link

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

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

Google photo

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

Twitter picture

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

Facebook photo

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

Connecting to %s