Monday 13 April 2015

How to identify 64 bit processor in linux

[root@server Desktop]# grep flags /proc/cpuinfo | grep 'lm'

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm arat epb xsaveopt pln pts dtherm fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid

[Note:- Check Flag Entry in above output "lm" If you see lm flag then you can able to run 64bit Operating System in your machine]

[root@server Desktop]# uname -m
x86_64

uname is a command used to print system information x86_64 means 64bit operating system, i686,i386 means 32 bit.
[ If your CPU is 64 bit machine then it will support both 32bit & 64bit operating system, But If your machine[CPU] is 32bit it will support only 32bit operating system not 64bit  ]

No comments:

Post a Comment