How To Know If You Have a 64-bit Processor

If you have asked yourself, “Do I have a 64-bit processor?”, then here are several ways to find out:
uname

# uname -p
x86_64

cpuinfo

# cat /proc/cpuinfo
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 syscall lm constant_tsc arch_perfmon pebs bts rep_good pni
dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm tpr_shadow
bogomips	: 4255.87
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual

The “lm” flag stands for Long Mode.

You can read more in this file:
/usr/src/kernels/#.#.#-#.#.fc11.x86_64/arch/x86/include/asm/cpufeature.h

#define X86_FEATURE_LM (1*32+29) /* Long Mode (x86-64) */

lshw

# lshw
     *-cpu
          description: CPU
          product: Intel(R) Core(TM)2 CPU          6420  @ 2.13GHz
          width: 64 bits

From the lshw manpage:

lshw is a small tool to extract detailed information on the hardware configuration of the machine. It can report exact memory configuration, firmware version, mainboard configuration, CPU version and speed, cache configuration, bus speed, etc. on DMI-capable x86 or IA-64 systems and on some PowerPC machines (PowerMac G4 is known to work).

This entry was posted in Hardware, Linux. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>