/proc/cpuinfo is a virtual file which displays technical details about your processor.

->Is this a 64-bit processor ?
Among the flags, if you find the “lm” one (lm stands for long mode), your processor is 64-bit.

Let’s take an example :

fool@localhost:~$ cat /proc/cpuinfo

processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Xeon(TM) CPU 2.40GHz
stepping : 7
cpu MHz : 2392.371
cache size : 512 KB
physical id : 0
siblings : 2
runqueue : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
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
bogomips : 4771.02

->What about virtual processors?

Just issue the following command :

grep ‘^processor’ /proc/cpuinfo |wc -l

->What about siblings?

It displays  the number of sibling CPUs on the same physical CPU for architectures which use hyper-threading.

Hyper_threading-enabled processor has its own flag : ht

The flag fpu stands for floating point unit.


Leave a Reply

Fill in your details below or click an icon to log in:

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.