How to check if processor is 32 bit or 64 bit?

You can check the long mode processor flag:

# grep lm /proc/cpuinfo
flags : fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nonstop_tsc aperfmperf pni pclmulqdq est ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lm ida arat

 

If you have lm flag (like above) your CPU is at 100% 64 bit


Comments

Demelza

Demelza wrote

You've really impressed me with that awsenr!

Comment